for disk in $(esxcli nmp device list | grep -B2 -e "Storage Array Type: VMW_SATP_SVC" | grep -e "^naa"); do echo "esxcli nmp device setpolicy --device $disk --psp VMW_PSP_RR";done;
Should find all SVC luns and echo the command to change the disk to round robin path policy. If you have identical ESX configs (like most clusters do), you can copy past the output to every esx host. For example
~ # for disk in $(esxcli nmp device list | grep -B2 -e "Storage Array Type: VMW_SATP_SVC" | grep -e "^naa"); do echo "esxcli nmp device setpolicy --device $disk --psp VMW_PSP_RR";done;
esxcli nmp device setpolicy --device naa.600507680181055b18000000000000f6 --psp VMW_PSP_RR
esxcli nmp device setpolicy --device naa.600507680181055b18000000000000f7 --psp VMW_PSP_RR
esxcli nmp device setpolicy --device naa.600507680181055b18000000000000f8 --psp VMW_PSP_RR
esxcli nmp device setpolicy --device naa.600507680181055b18000000000000f9 --psp VMW_PSP_RR
esxcli nmp device setpolicy --device naa.600507680181055b18000000000000fb --psp VMW_PSP_RR
~ #
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.