precheck
Create directory with name aix_automation
#mkdir aix_automation
#cd aix_automation
Inside this directory create file with name list_hdisk
#touch list_hdisk
#vi list_hdisk
hdisk10
hdisk11
hdisk12
hdisk13
hdisk14
Add hdisk name in this file and save it .
#for i in 'cat list_hdisk'
do
echo $i
chdev -l $i -a algorithm=round_robin -a reserve_policy=no_reserve
sleep 2
lsattr -El $i |egrep -i 'algorithm | reserve_policy'
done
Using this simple script AIX admin can change and display multiple attributes and display.
Thanks !!!
No comments:
Post a Comment