Hi
Is there a PowerCLI script out there that would change multipathing on an ESXi host to Round Robin, but leave the RDM alone.
The one I saw on these forums changes all the datastores to Round Robin including RDM's. I need RDM to remain on fixed multi pathing
Thank you
we use the following script
$Mypolicy = "rr"
Get-Datastore | where {$_.Type -eq "VMFS"} | %{(Get-View $_.ID).Info.Vmfs.Extent[0].DiskName} |%{
$diskname = $_
Get-VMHost | %{Get-View (Get-View $_.ID).configmanager.storageSystem} | %{
$mpathpolicy = New-Object vmware.vim.HostMultipathInfoLogicalUnitPolicy
$mpathpolicy.policy = $Mypolicy
$_.SetMultipathLunPolicy($diskname,$mpathpolicy)
}
}
we use the following script
$Mypolicy = "rr"
Get-Datastore | where {$_.Type -eq "VMFS"} | %{(Get-View $_.ID).Info.Vmfs.Extent[0].DiskName} |%{
$diskname = $_
Get-VMHost | %{Get-View (Get-View $_.ID).configmanager.storageSystem} | %{
$mpathpolicy = New-Object vmware.vim.HostMultipathInfoLogicalUnitPolicy
$mpathpolicy.policy = $Mypolicy
$_.SetMultipathLunPolicy($diskname,$mpathpolicy)
}
}
Thank you, will try it out and give a feedback
Good Troy.