Hello All,
Today will share small script which tested and used for enabling failed path on AIX client LPAR.
sometime AIX admin needs to take reboot of VIO server for maintenance activity, when AIX admin reboot 1 VIO server out of 2 then 1 VSCSI or FSCSI path become failed. once VIO is up and active sometime AIX admin observe that after VIO up some path still in failed state. AIX admin can try following script to enable those path
Scenario: Script to enable only failed path
for s in `lspath |grep -i failed|awk '{print $2}'`
do
chpath -l $s -p `lspath -l $s |grep -i failed|awk '{print $3}'` -s Enabled
sleep 2
done
To confirm whether any path on VIO server is failed or not
#lspath |grep -i failed
Thanks !!!
:)
No comments:
Post a Comment