Wednesday 26 February 2014

Script - for loop to change MPIO settings



Note all the disk names are in a file

# cat disks
hdisk90 
hdisk91 
hdisk92 
hdisk93 
hdisk94 
hdisk95 
hdisk96 
hdisk97 
hdisk89 


for i in `cat disks`
> do
> chdev -l $i -a algorithm=round_robin -a reserve_policy=no_reserve -a queue_depth=32 -a rw_timeout=180
> done
hdisk90 changed
hdisk91 changed
hdisk92 changed
hdisk93 changed
hdisk94 changed
hdisk95 changed
hdisk96 changed
hdisk97 changed
hdisk89 changed

No comments:

Post a Comment