分类: 虚拟化
2012-07-06 14:58:05
批量更改存储路径选择
esxi4
for disk in $(esxcli storage 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;
esxi 5
for i in `ls /vmfs/devices/disks/ | grep naa | grep -v ":"|grep -v 60`
do esxcli storage nmp device set --device $i --psp VMW_PSP_RR; done