VMware Check Path Selection Policy for Datastores

Nimble Storage Storage VMware

The Path Selection Policy is set for devices to determine how the ESXi host will utilise the paths to the storage, for example, you can have “Fixed” or “Round Robin” or “Most Recently Used”, you can also have storage vendor provided ones such as “NIMBLE_PSP_DIRECTED”.

The scripts and commands I’ve found keep mentioning “Multipathing”, if you check for this value you’ll get a different value to what you see for the actual Path Selection Policy (PSP).

As checking each is quite time consuming i’ve created a PowerShell script, that requires PowerCLI installed to query for a particular datastore and then determines the PSP setting for all connected hosts (this is a per host setting rather than a datastore setting), you’ll then know which hosts need remediation.

https://github.com/tristanhself/general/blob/1c95130bea5ac7c2642dd6817b9dc3774affa1bf/vmware/showstoragepsp.ps1

https://github.com/tristanhself/general/blob/00e90f2b1e19986395d77e3b09f0ca9a255e075f/vmware/showstoragepsp-global.ps1

Image Attribution

Leave a Reply

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