preloader
5 August 2011 / #Powercli

Updating Multipathing policy on PSP

post-thumb

Still in Memento category, here is a onliner in order to update all multipathing policy for a predefined list of datastore available on a predefined list of ESX host (VMHOST01..VMHOST10).

As our newly received storage bay multipathing policy best practice is RoundRobin, we had to change it from Fixed. The main purpose was to get from there :

MultipahtingPSP_rr

Get-VMHost -Name VMHOST* | Get-ScsiLun -LunType "disk" | ?{$_.MultipathPolicy -eq "Fixed" -and $_.Vendor -eq "VENDOR"} | Set-ScsiLun -MultipathPolicy "RoundRobin"

MultipahtingPSP_powercli

At the end, we have a pretty handy script :

MultipahtingPSP_tasks

For further information about vSphere multipathing, here is some links :

All is left for us to do is going on aperitif, and don’t forget :

lggn0056+beer-helping-ugly-people-have-sex-since-1862-retro-spoofs-poster


> Frederic MARTIN