Automation

 View Only
  • 1.  Change multipath setting for VM RDM disk

    Posted Jun 21, 2010 01:12 PM

    Hi,

    I'm looking a way to automatically change the multipath setting of all RDM disks (of all VMs)

    Do you know how to acheive this.



  • 2.  RE: Change multipath setting for VM RDM disk
    Best Answer

    Posted Jun 21, 2010 01:33 PM

    You could try this

    # Get all RDMs
    $RDMs = Get-VM | Get-HardDisk | where{$_.DiskType -like "Raw*"} | %{$_.ScsiCanonicalName}
    
    # Set multipath to fixed (can also be RoundRobin or MostRecentlyUsed
    Get-VMHost | Get-ScsiLun | where {$RDMS -contains $_.CanonicalName} | Set-ScsiLun -MultipathPolicy "Fixed"
    

    ____________

    Blog: LucD notes

    Twitter: lucd22