Masking paths to a LUN
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 depicts a high-level overview of the process:

How to do it...
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>

- 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

- Load the rules on the file into the memory by issuing the following...