To retrieve Multipath Policy of all devices connected with particular host.
Get-ScsiLun –vmhost esxi01.vclass.local –LunType disk
To view the Canonical Name of SCSI devices
Get-ScsiLun –VmHost esxi01.vclass.local –LunType disk | select CanonicalName
copy the Canonical Name of device which need to modify
To change the Multipath Policy of the device to RoundRobin.
Get-ScsiLun –CanonicalName “naa.600003*” –VmHost esxi01.vclass.local | Set-ScsiLun –MultipathPolicy 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
0 comments:
Post a Comment