«

»

Dec 01

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.

About the author

vHersey

Hersey Cartwright is an IT professional with extensive experience designing, implementing, managing, and supporting technologies that improve business processes. Hersey is Solutions Architect for SimpliVity covering Virginia, Washington DC, and Maryland. He holds the VMware Certified Design Expert (VCDX-DV #128) certification. Hersey actively participates in the VMware community and was awarded the VMware vExpert title in 2016, 2015, 2014, 2013, and 2012. He enjoys working with, teaching, and writing about virtualization and other data center technologies. Follow Hersey on Twitter @herseyc

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

eight − 1 =