Device Management with
esxcli storage nmp device
The device option
performs operations on devices currently claimed by the VMware NMP.
esxcli storage nmp
device list
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.
Options | Description |
---|---|
--device
<device> -d
<device> | Filters the output of the command to show
information about a single device. Default is all devices. |
esxcli storage nmp
device set
The
set
command sets the 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 a device does not have a specific PSP set, it always uses the PSP assigned to the SATP. If the default PSP for the SATP changes, the PSP assigned to the device changes only after reboot or after a device is reclaimed. A device is reclaimed when you unclaim all paths for the device and reclaim the paths.
- If you useesxcli storage nmp device setto 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.
Options | Description |
---|---|
--default -E | Sets the PSP back to the default for the SATP
assigned to this device. |
--device
<device> -d
<device> | Device to set the PSP for. |
--psp
<PSP> -P
<PSP> | PSP to assign to the
specified device. Call
esxcli
storage nmp psp list to display all currently available PSPs. See
Managing Path Policies.
See
vSphere
Storage for a discussion of path policies.
|
To set the path policy for the
specified device to
VMW_PSP_FIXED
, run the following command.
esxcli <conn_options> storage nmp device set --device naa.xxx --psp VMW_PSP_FIXED