Sunday, April 27, 2014

Multipathing Policy through PowerCLI

To retrieve Multipath Policy of all devices connected with particular host.
Get-ScsiLun –vmhost esxi01.vclass.local –LunType disk
powerCLI1
To view the Canonical Name of SCSI devices
Get-ScsiLun –VmHost esxi01.vclass.local –LunType disk | select CanonicalName
powerCLI2
copy the Canonical Name of device which need to modify
selectDevice
To change the Multipath Policy of the device to RoundRobin.
Get-ScsiLun –CanonicalName “naa.600003*” –VmHost esxi01.vclass.local | Set-ScsiLun –MultipathPolicy  RoundRobin
RoundRobin
Declare a Variable and store the preferred path available for selected device because this will be required parameter for configuring Fixed path policy.
$pathPreffer = Get-SCSILunPath –SCSIPath (Get-SCSILun –CanonicalName “naa.600003*” –vmhost esxi01.vclass.local)

To change the Multipath Policy of the device to Fixed.
Get-VMhhost esxi01.vclass.local | Get-SCSILun –CanonicalName “naa.600003*” | Set-SCSILun –MultiPathPolicy “Fixed” –PreferredPath $pathPreffer
Variable2
    

0 comments:

Post a Comment