6.5

Table Of Contents
4 (Optional) If you specied the VMW_PSP_FIXED policy, you must make sure the preferred path is set
correctly.
a Check which path is the preferred path for a device.
esxcli <conn_options> storage nmp psp fixed deviceconfig get --device naa.xxx
b If necessary, change the preferred path.
esxcli <conn_options> storage nmp psp fixed deviceconfig set --device naa.xxx --path
vmhba3:C0:T5:L3
The command sets the preferred path to vmhba3:C0:T5:L3. Run the command with --default to
clear the preferred path selection.
Change the Path Policy with vicfg-mpath
You can change the path policy with vicfg-mpath.
Specify one of the options listed in “Connection Options for vCLI Host Management Commands,” on
page 19 in place of <conn_options>.
Prerequisites
Verify that you are familiar with the supported path policies. See “Managing Path Policies,” on page 54.
Procedure
1 List all multipathing plugins loaded into the system.
vicfg-mpath <conn_options> --list-plugins
At a minimum, this command returns NMP (Native Multipathing Plug-in) and MASK_PATH. If other MPP
plug-ins have been loaded, they are listed as well.
2 Set the path policy by using ESXCLI.
esxcli <conn_options> nmp device set --device naa.xxx --psp VMW_PSP_RR
3 (Optional) If you specied the VMW_PSP_FIXED policy, you must make sure the preferred path is set
correctly.
a Check which path is the preferred path for a device.
esxcli <conn_options> storage nmp psp fixed deviceconfig get -d naa.xxxx
b If necessary, change the preferred path.
esxcli <conn_options> storage nmp psp fixed deviceconfig set --device naa.xxx --path
vmhba3:C0:T5:L3
The command sets the preferred path to vmhba3:C0:T5:L3.
Set Policy Details for Devices that Use Round Robin
ESXi hosts can use multipathing for failover. With some storage devices, ESXi hosts can also use
multipathing for load balancing.
To achieve beer load balancing across paths, administrators can specify that the ESXi host should switch
paths under specic circumstances. Dierent options determine when the ESXi host switches paths and
what paths are chosen. Only a limited number of storage arrays support round robin.
You can use esxcli storage nmp psp roundrobin to retrieve and set round robin path options on a device
controlled by the roundrobin PSP. Specify one of the options listed in “Connection Options for vCLI Host
Management Commands,” on page 19 in place of <conn_options>.
vSphere Command-Line Interface Concepts and Examples
56 VMware, Inc.