PowerCLI: Set the Path Selection Policy for every device path of every host in your vSphere 5.0/5.1 cluster

From VI-Toolkit
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Set default path selection policies

author: Yuri de Jager

Description

Yuri uses powerCLI to query and change the current Path Selection Policy (PSP) on his new cluster, after that he updates his default PSP settings so that his preference will be applied in the future as well.

Usage

Get-Cluster [ClusterName] | Get-VMHost | Get-ScsiLun -LunType disk | Where {$_.MultipathPolicy -ne “RoundRobin”} | Set-ScsiLun -MultipathPolicy “RoundRobin”

See his post for the full details.

Location

http://yuridejager.wordpress.com/2013/02/07/set-the-path-selection-policy-for-every-device-path-of-every-host-in-your-vsphere-5-05-1-cluster-using-powercli/