VMware Cloud Community
Ryzz
Enthusiast
Enthusiast
Jump to solution

Bulk change PSP for RDM's

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

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
Ryzz
Enthusiast
Enthusiast
Jump to solution

Looks like someone has already done a even better version of this:

https://communities.vmware.com/message/2332816

View solution in original post

0 Kudos
1 Reply
Ryzz
Enthusiast
Enthusiast
Jump to solution

Looks like someone has already done a even better version of this:

https://communities.vmware.com/message/2332816

0 Kudos