StorageVMware

Setting Storage PSP to Round Robin using esxcli – vSphere 5

Setting all storage PSP to Round Robin using esxcli on vSphere 5

for i in `ls /vmfs/devices/disks/ | grep naa | grep -v “:”`;
do esxcli storage nmp device set –device $i –psp VMW_PSP_RR; done

and this will also work

for i in `esxcli storage nmp device list | grep naa | grep -v Device`;
do esxcli storage nmp device set –device $i –psp VMW_PSP_RR; done

Using esxcli storage nmp device list you could probably play around with the grep to get it to return only paths from a specific array. I only have one array so I didn’t mess around with it, may revisit it later in case I may need it in the future.

To make sure new LUNs added on the same storage array are also configured with the VMW_PSP_RR (Round Robin) Path Selection Policy.

esxcli storage nmp satp set -s SATP_NAME -P VMW_PSP_RR

You can verify the SATP PSP change using this:

esxcli storage nmp satp list

This Yellow-Bricks article Changing the PSP from Fixed to RR got me pointed in the right direction.

Leave a Reply

Your email address will not be published. Required fields are marked *

1 + 6 =