6.5

Table Of Contents
Options Description
--lun <lun_number>
-L <lun_number>
If --type is location, species the SCSI LUN for the paths to unclaim. If you do not
specify --lun, unclaiming runs on paths with any LUN number.
--model <model>
-m <model>
If --type is vendor, aempts to unclaim all paths to devices with specic model
information (for multipathing plug-ins) or unclaim the device itself (for lter plug-ins). If
there are active I/O operations on this device, at least one path fails to unclaim.
--path <path>
-p <path>
If --type is path, unclaims a path specied by its path UID or runtime name.
--plugin <plugin>
-P
If --type is plugin, unclaims all paths for a specied multipath plug-in.
<plugin> can be any valid PSA plug-in on the system. By default, only NMP and MASK_PATH
are available, but additional plugi-ns might be installed.
--target <target>
-T <target>
If --type is location, unclaims the paths with the SCSI target number specied by target.
If you do not specify --target, unclaiming runs on paths from all targets.
--type <type>
-t <type>
Type of unclaim operation to perform. Valid values are location, path, driver, device,
plugin, and vendor.
--vendor <vendor>
-v <vendor>
If --type is vendor, aempts to unclaim all paths to devices with specic vendor info for
multipathing plug-ins or unclaim the device itself for lter plug-ins. If there are any active
I/O operations on this device, at least one path fails to unclaim
The following troubleshooting command tries to unclaim all paths on vmhba1.
esxcli <conn_options> storage core claiming unclaim --type location -A vmhba1
Run vicfg-mpath <conn_options> -l to verify that the command succeeded.
If a path is the last path to a device that was in use, or a if a path was very recently in use, the unclaim
operation might fail. An error is logged that not all paths could be unclaimed. You can stop processes that
might use the device and wait 15 seconds to let the device be quiesced, then retry the command.
Managing Claim Rules
The PSA uses claim rules to determine which multipathing module should claim the paths to a particular
device and to manage the device. esxcli storage core claimrule manages claim rules.
Change the Current Claim Rules in the VMkernel
Claim rule modication commands do not operate on the VMkernel directly. Instead, they operate on the
conguration le by adding and removing rules.
Specify one of the options listed in “Connection Options for vCLI Host Management Commands,” on
page 19 in place of <conn_options>.
Procedure
1 Run one or more of the esxcli storage core claimrule modication commands.
For example, add, remove, or move.
2 Run esxcli storage core claimrule load to replace the current rules in the VMkernel with the
modied rules from the conguration le.
What to do next
You can also run esxcli storage core plugin list to list all loaded plug-ins.
vSphere Command-Line Interface Concepts and Examples
110 VMware, Inc.