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, search

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/