PowerCLI - Getting and setting round-robin pathing policies
The following functions can be used to retrieve (Get-RoundRobin) whether particular LUN IDs are using a Round Robin pathing policy. You can then set (Set-RoundRobin) a round robin pathing policy on the LUN IDs if your storage processor supports it.
Round Robin (RR): Uses an automatic path selection rotating through all available paths, enabling the distribution of load across the configured paths.
For Active/Passive storage arrays, only the paths to the active controller will be used in the Round Robin policy.
For Active/Active storage arrays, all paths will be used in the Round Robin policy.
To run the scripts you will need your Vendor LUN ID or Device Display Name.
A LUN ID looks a bit like this:
To retrieve a list of LUN IDs run the following command from an ESXi host;
Note the Device Display Name for your vendor includes a naa.xxxxxxxx ID. Record the first 12 numbers after ‘naa’ as we will use this in the scripts.
As a bonus, you can also set the IOPS to 1 on the PSP (Path Selection Policy).
Here is a ESXi command line one liner to GET the current iops set on a Round Robin PSP
Here is an ESXi command line one liner to SET the iops to 1 from the default of 1000 (check with your vendor before doing this) on a Round Robin PSP