Hi All,
Im in the process of building an environment that will consists of 7 Hosts, and has 2x Windows Cluster with approx 40 RDM Luns. Im looking for a way to bulk set all the PSP to Fixed for all RDM Luns
I tried to mash up a script, which failed with flying colours. Hopefully someone can steer me in the right direction here.
$RDM = Get-Cluster "CLuster1"| Get-VM | Get-HardDisk -DiskType "RawPhysical" |Select ScsiCanonicalName
foreach ($LUN in $RDM) {
Get-VMHost | Set-SCSILun $LUN -MultipathPolicy "Fixed"
}
Thanks in advance to anyone that can help me out here.
Cheers
Ryan
Looks like someone has already done a even better version of this:
Looks like someone has already done a even better version of this: