You can remove access to a LUN by masking all of its paths to the ESXi host. This can be used when troubleshooting storage issues. This is achieved by using the MASK_PATH
PSA plugin to claim the paths corresponding to the intended LUN.
The following flowchart provides an overview of the procedure:
The following procedure will help you mask paths to a LUN:
Get the NAA ID of the LUN, which needs to be masked, by issuing the following command. The following command will list all the NAA IDs seen by the ESXi:
esxcfg-scsidevs -u
Get the multipathing information of the LUN by issuing the following command.
Syntax:
esxcfg-mpath –l –d <naa-id of the LUN>
Example:
esxcfg-mpath –l –d naa.6000eb30adde4c1b0000000000000112
Create a claim rule for each of the paths to the LUN by issuing the following command.
Syntax:
esxcli storage core claimrule add –r <rule number> -t location –A <hba> -C <channel number> -L <LUN Number> -P MASK_PATH
Example...