diff --git a/Scripts/SetMultiPathToRoundRobin b/Scripts/SetMultiPathToRoundRobin new file mode 100644 index 0000000..382cbd3 --- /dev/null +++ b/Scripts/SetMultiPathToRoundRobin @@ -0,0 +1,6 @@ +#Check a host for any Fibre Channel devices that are not set to Round Robin. Modify to check clusters if needed. +Get-VMhost VMHOSTNAME | Get-VMHostHba -Type "FibreChannel" | Get-ScsiLun -LunType disk | Where { $_.MultipathPolicy -notlike "RoundRobin" } | Select CanonicalName,MultipathPolicy + +#Set the Multipathing Policy on a host to Round Robin for any Fibre Channel devices that are not Round Robin +$scsilun = Get-VMhost VMHOSTNAME | Get-VMHostHba -Type "FibreChannel" | Get-ScsiLun -LunType disk | Where { $_.MultipathPolicy -notlike "RoundRobin" } +Set-ScsiLun -ScsiLun $scsilun -MultipathPolicy RoundRobin