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 provides an overview of the procedure:

Masking paths to a LUN

How to do it...

The following procedure will help you mask paths to a LUN:

  1. 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
    
  2. Get the multipathing information of the LUN by issuing the following command.

    Syntax:

    esxcfg-mpath ...

Get VMware vSphere 5.5 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.