VMware: Configure Multipath Policy via PowerCLI
May 25th, 2011
14 comments
Tonight I need to configure the Multipath Policy from “Most Recently Used” to “Round Robin (VMware) on our vSphere 4.1 and HP EVA6400 environment. After reading “Configuration best practices for HP StorageWorks Enterprise Virtual Array (EVA) family and VMware vSphere 4” I decided to change the path status
To check the status of the Multipath Policy you can run the following PowerCLI script:
Per host:
Get-VMhost ESXHOST | Get-ScsiLun -LunType disk
Per Cluster:
Get-Cluster CLUSTERNAME| Get-VMHost | Get-ScsiLun -LunType disk
To change the Multipath Policy you can run the following command:
Per Host:
Get-VMHost ESXHOST | Get-ScsiLun -CanonicalName "naa.6005*" | Set-ScsiLun -MultipathPolicy "roundrobin"
Result in vCenter:
Categories: VMware Datastore, EVA, HP, LUN, Multipath, PowerCLI, Round Robin, vCenter Server 4.1, VMware, vSphere 4.1
Recent Comments