Saturday, May 10, 2014

VMware: Set Pathing Policy for all devices to Round Robin

If you have a bunch of LUNs that are not set for the correct pathing policy, this script is perfect for you.

This script will iterate through all hosts in a cluster and set the pathing policy to round robin.  Just make sure to set the highlighted areas correctly.

connect-viserver -server VCENTER
get-cluster "CLUSTER-NAME" | get-vmhost | get-scsilun -canonicalname "naa.*"|where {$_.MultipathPolicy -ne "RoundRobin"}|set-scsilun -MultipathPolicy RoundRobin

No comments:

Post a Comment

Featured Post

Remove 3D Objects and other annoying folders on Windows 10

 Microsoft just keeps adding more crap to clutter up the navigation in Windows 10.  Seriously, who needs a 3D Objects folder?  The tiny perc...