Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230663

Re: Powershell script to change the Path Policy w/o MSCS cluster

$
0
0

Evening,

 

It's all about the logic you want to create.  Using powershell this is all possible.  I do something quick and dirty like this via powershell.  I don't want to change the path policy on my boot from san lun's but I do want to change on my shared lun's so I use a mask like this to do it:

 

Get-Cluster <CLUSTERNAME> | Get-VMhost | Get-ScsiLun -CanonicalName "naa.*" -LunType disk | Set-ScsiLun -MultipathPolicy "RoundRobin"

 

You can just replace the naa.* with the whole name of the lun to set policy.   This will do it for the whole cluster...

 

Now with some powershell variables and if statements you could easily choose not to change policy on all lun's but the MSCS..

 

Just a suggestion.

 

Thanks,


Viewing all articles
Browse latest Browse all 230663

Trending Articles



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