6.0.1

Table Of Contents
2 Assign the MASK_PATH plug-in to a path by creating a new claim rule for the plug-in.
esxcli --server=server_name storage core claimrule add -P MASK_PATH
3 Load the MASK_PATH claim rule into your system.
esxcli --server=server_name storage core claimrule load
4 Verify that the MASK_PATH claim rule was added correctly.
esxcli --server=server_name storage core claimrule list
5 If a claim rule for the masked path exists, remove the rule.
esxcli --server=server_name storage core claiming unclaim
6 Run the path claiming rules.
esxcli --server=server_name storage core claimrule run
After you assign the MASK_PATH plug-in to a path, the path state becomes irrelevant and is no longer
maintained by the host. As a result, commands that display the masked path's information might show the
path state as dead.
Example: Masking a LUN
In this example, you mask the LUN 20 on targets T1 and T2 accessed through storage adapters vmhba2 and
vmhba3.
1
#esxcli --server=server_name storage core claimrule list
2
#esxcli --server=server_name storage core claimrule add -P MASK_PATH -r 109 -t location -A
vmhba2 -C 0 -T 1 -L 20
#esxcli --server=server_name storage core claimrule add -P MASK_PATH -r 110 -t location -A
vmhba3 -C 0 -T 1 -L 20
#esxcli --server=server_name storage core claimrule add -P MASK_PATH -r 111 -t location -A
vmhba2 -C 0 -T 2 -L 20
#esxcli --server=server_name storage core claimrule add -P MASK_PATH -r 112 -t location -A
vmhba3 -C 0 -T 2 -L 20
3
#esxcli --server=server_name storage core claimrule load
4
#esxcli --server=server_name storage core claimrule list
5
#esxcli --server=server_name storage core claiming unclaim -t location -A vmhba2
#esxcli --server=server_name storage core claiming unclaim -t location -A vmhba3
6
#esxcli --server=server_name storage core claimrule run
Unmask Paths
When you need the host to access the masked storage device, unmask the paths to the device.
In the procedure, --server=server_name species the target server. The specied target server prompts you
for a user name and password. Other connection options, such as a conguration le or session le, are
supported. For a list of connection options, see Geing Started with vSphere Command-Line Interfaces.
N When you run an unclaim operation using a device property, for example, device ID, vendor, or
model, the paths claimed by the MASK_PATH plugin are not unclaimed. The MASK_PATH plugin does not
keep track of any device property of the paths that it claims.
Prerequisites
Install vCLI or deploy the vSphere Management Assistant (vMA) virtual machine. See Geing Started with
vSphere Command-Line Interfaces. For troubleshooting, run esxcli commands in the ESXi Shell.
vSphere Storage
200 VMware, Inc.