Changing Datastore Multipath Policy automatically


Using the  right multipath policy is another important point to keep in mind. And RoundRobin makes the difference. Changing this policy manually can be really painful, so once again PowerCli comes to rescue:



Write down your Canonical Name according to your storage appliance and launch it.



For a Specific Host:

Get-VMHost MySpecificHostName | Get-ScsiLun -CanonicalName “naa.50*” | Set-ScsiLun -MultipathPolicy “RoundRobin”

For a specific Cluster:

Get-cluster MySpecificClusterName | Get-VMHost| Get-ScsiLun -CanonicalName “naa.50*” | Set-ScsiLun -MultipathPolicy “RoundRobin”

More accurate approach:

Get-cluster MySpecificClusterName | Get-VMHost| Get-ScsiLun -CanonicalName “naa.50*” | ? {$_.MultipathPolicy -eq “Fixed”} |Set-ScsiLun -MultipathPolicy “RoundRobin”



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s