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

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

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: Logo

You are commenting using your 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.