You can change the
path policy with ESXCLI.
Specify one of the options
listed in
Connection Options for ESXCLI Host Management Commands
in place of
<conn_options>
.
Procedure
-
Ensure your device
is claimed by the NMP plug-in.
Only NMP devices allow
you to change the path policy.
esxcli <conn_options> storage nmp device list
-
Retrieve the list of
path selection policies on the system to see which values are valid for the
--psp
option when you set the path policy.
esxcli storage core plugin registration list --plugin-class="PSP"
-
Set the path policy by
using ESXCLI.
esxcli <conn_options> storage nmp device set --device naa.xxx --psp VMW_PSP_RR
- (Optional)
If you specified the
VMW_PSP_FIXED
policy, you must make sure the
preferred path is set correctly.
-
Check which path is
the preferred path for a device.
esxcli <conn_options> storage nmp psp fixed deviceconfig get --device naa.xxx
-
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.