The NMP supports all storage arrays listed on the VMware storage Hardware Compatibility List (HCL) and provides a path selection algorithm based on the array type. The NMP associates a set of physical paths with a storage device (LUN). A Storage Array Type Plugin (SATP) determines how path failover is handled for a specific storage array. A Path Selection Plugin (PSP) determines which physical path is used to issue an I/O request to a storage device. SATPs and PSPs are plugins within the NMP plugin.
The device option performs operations on devices currently claimed by the VMware NMP plugin.
The list command lists the devices controlled by VMware NMP and shows the SATP and PSP information associated with each device. To show the paths claimed by NMP, run
esxcli storage nmp path list to list information for all devices, or for just one device with the
--device option.
The set command sets the Path Selection Policy (PSP) for a device to one of the policies loaded on the system.
Any device can use the PSP assigned to the SATP handling that device, or you can run esxcli storage nmp device set --device naa.xxx --psp <psp> to specifically override the PSP assigned to the device.
■
|
If you use esxcli storage nmp device set to override the SATPs default PSP with a specific PSP, the PSP changes immediately and remains the user-defined PSP across reboots. A change in the SATP’s PSP has no effect.
|
Use the --default option to return the device to using the SATP’s PSP.
|
|
|
|
|
|
|
See vSphere Storage for a discussion of path policies.
|
Use the path option to list paths claimed by NMP. By default, the command displays information about all paths on all devices. You can filter in the following ways:
To list devices, call esxcli storage nmp device list.
Use esxcli storage nmp psp to manage VMware path selection policy plugins included with the VMware NMP plugin and to manage third-party PSPs.
The esxcli storage nmp psp generic deviceconfig get and
esxcli storage nmp psp generic pathconfig get command retrieves PSP configuration parameters. The type of PSP determines which command to use.
■
|
Use nmp psp generic deviceconfig get for PSPs that are set to VMW_PSP_RR, VMW_PSP_FIXED or VMW_PSP_MRU.
|
■
|
Use nmp psp generic pathconfig get for PSPs that are set to VMW_PSP_FIXED or VMW_PSP_MRU. No path configuration information is available for VMW_PSP_RR.
|
esxcli <conn_options>
storage nmp psp generic deviceconfig get --device=<device>
esxcli <conn_options>
storage nmp psp fixed deviceconfig get --device=<device>
esxcli <conn_options>
storage nmp psp roundrobin deviceconfig get --device=<device>
esxcli <conn_options>
storage nmp psp generic pathconfig get --path=<path>
The esxcli storage nmp psp list command shows the list of Path Selection Plugins on the system and a brief description of each plugin.
The esxcli storage nmp psp generic deviceconfig set and
esxcli storage nmp psp generic pathconfig set commands support future third-party PSA expansion. The
setconfig command sets PSP configuration parameters for those third-party extensions.
Use esxcli storage nmp roundrobin setconfig for other path policy configuration. See
Customizing Round Robin Setup.
You can run esxcli storage nmp psp generic deviceconfig set --device=<device> to specify PSP information for a device, and
esxcli storage nmp psp generic pathconfig set --path=<path> to specify PSP information for a path. For each command, use
--config to set the specified configuration string.
|
|
- -config <config_string>
|
|
|
|
|
|
The fixed option gets and sets the preferred path policy for NMP devices configured to use
VMW_PSP_FIXED.
The esxcli storage nmp fixed deviceconfig get command retrieves the preferred path on a specified device that is using NMP and the
VMW_PSP_FIXED PSP.
The esxcli storage nmp fixed deviceconfig set command sets the preferred path on a specified device that is using NMP and the
VMW_PSP_FIXED path policy.
|
|
|
Use esxcli storage nmp device - -list to list the policies for all devices.
|
|
|
To set the preferred path for the specified device to vmhba3:C0:T5:L3, run the following command. Specify one of the options listed in
Connection Options in place of
<conn_options>.
The esxcli storage nmp psp roundrobin commands sets round robin path options on a device controlled by the
VMW_PSP_RR PSP. Specify one of the options listed in
Connection Options in place of
<conn_options>.
Sets the device specified by - -device to switch to the next path each time 12345 bytes have been sent along the current path.
Sets the device specified by - -device to switch after 4200 I/O operations have been performed on a path.
The esxcli storage nmp psp roundrobin deviceconfig get command retrieves path selection settings for a device that is using the
roundrobin PSP. You can specify the device to retrieve the information for.
The esxcli storage nmp psp roundrobin deviceconfig set command specifies under which conditions a device that is using the
VMW_PSP_RR PSP changes to a different path. You can use
- -bytes or
- -iops to specify when the path should change.
|
|
|
|
|
|
|
|
|
■
|
bytes: Set the trigger for path switching based on the number of bytes sent down a path.
|
■
|
default: Set the trigger for path switching back to default values.
|
■
|
iops: Set the trigger for path switching based on the number of I/O operations on a path.
|
|
|
|
The esxcli storage nmp satp commands manage SATPs. You can use these commands to perform the following tasks:
The esxcli storage nmp satp list command lists the SATPs that are currently available to the NMP system and displays information about those SATPs. This command supports no options and displays information about these SATPs.
The rule list command lists the claim rules for SATPs.
esxcli <conn_options> storage
nmp satp rule list
Claim rules specify that a storage device that uses a certain driver or transport or has a certain vendor or model should use a certain SATP. The
esxcli storage nmp satp rule add command adds a rule that performs such a mapping to the list of claim rules. The options you specify define the rule. For example, the following command specifies that if a path has vendor
VMWARE and model
Virtual, the PSA assigns it to the
VMW_SATP_LOCAL SATP.
- -model="Virtual" - -description="VMware virtual disk"
The esxcli storage nmp satp rule remove command removes an existing SATP rule. The options you specify define the rule to remove. The options listed for
Adding SATP Rules are supported.
- -satp="VMW_SATP_LOCAL" - -vendor="VMWARE" - -model="Virtual"
The esxcli storage nmp satp generic deviceconfig get and
esxcli storage nmp satp generic pathconfig get commands retrieve per-device or per-path SATP configuration parameters. You cannot retrieve paths or devices for all SATPs, you must retrieve the information one path or one device at a time.
For example esxcli storage nmp satp generic deviceconfig get --device naa.xxx might return
SATP VMW_SATP_LSI does not support device configuration.
The esxcli storage nmp satp generic deviceconfig set and
esxcli storage nmp satp generic pathconfig set commands set configuration parameters for SATPs that are loaded into the system, if they support device configuration. You can set per-path or per-device SATP configuration parameters.
|
|
|
■
|
navireg_on – starts automatic registration of the device with Navisphere.
|
■
|
navireg_off – stops the automatic registration of the device.
|
■
|
ipfilter_on – stops the sending of the host name for Navisphere registration. Used if host is known as localhost.
|
■
|
ipfilter_off – enables the sending of the host name during Navisphere registration.
|
|
|
|
|
|
Run esxcli storage nmp device set --default --device=<device> to set the PSP for the specified device back to the default for the assigned SATP for this device.