Change vscsi attributes on the fly

If you wanna change the vscsi settings like I had, use this little script to do it faster for many paths :

for i in `lspath | grep vscsi0| awk ‘ {print $2}`; do rmpath -l $i -p vscsi0 ;done
chdev -l vscsi0 -a vscsi_err_recov=fast_fail -a vscsi_path_to=30
cfgmgr

check that all paths are online again

for i in `lspath | grep vscsi1| awk ‘ {print $2}`; do rmpath -l $i -p vscsi1 ;done
chdev -l vscsi1 -a vscsi_err_recov=fast_fail -a vscsi_path_to=30
cfgmgr

Advertisements
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s