Quantcast
Channel: VMware Communities: Message List - vSphere™ Storage
Viewing all articles
Browse latest Browse all 5826

Change to Round Robin via PowerCLI?

$
0
0

This may be in the wrong place and if it is, I'm sorry.

 

I'm trying to change all the Datastores on all hosts for a particular cluster to Round Robin, and I came across this PowerCLI script, but I use a lot of RDMs and I think this script will make the RDM LUNS round robin too and I cant have that happen

 

$input | ForEach-Object {
Connect-VIServer VCENTERSERVERNAME
foreach ($ESXhost in get-cluster "ENTER YOUR CLUSTER NAME HERE"| get-vmhost)
{
Get-VMHost $ESXhost |Get-ScsiLun -LunType "disk"|where {$_.MultipathPolicy -ne "RoundRobin"}| Set-ScsiLun -MultipathPolicy "RoundRobin"
}
}

 

Any thought?


Viewing all articles
Browse latest Browse all 5826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>