Script:
Step 1 : create list of server on where u wanted to change disk parameter, create this file
on NIM server from where pass wordless ssh is working.
Example
#vi list
test1
test2
test3
test4
test5
:wq
step 2:
Create script to login on each AIX LPAR using following script:
===========================
for i in `cat list`
do
ssh $i
done
===========================
Above script will connect to each server once you sure that you are host where Hitachi disk
parameter need to change, execute following script.
=======================================================
for i in `lsdev -c disk |grep -i Hitachi |awk '{print $1}'`
do
echo $i
chdev -Pl $i -a hcheck_interval=90 -a timeout_policy=fail_path
done
==============================================================
Once above script executed check parameter changed or not by following script
for i in `lsdev -c disk |grep -i Hitachi |awk '{print $1}'`
do
echo $i
lsattr -El $i -a hcheck_interval,timeout_policy -F attribute=value |xargs
done
Once done type "exit" on AIX LPAR ,then it will prompt for next AIX LPAR.
This way AIX admin can interactively change disk parameter on AIX LPAR
Thanks :)
No comments:
Post a Comment