Book Image

VMware vSphere 5.5 Cookbook

By : Abhilash G B
Book Image

VMware vSphere 5.5 Cookbook

By: Abhilash G B

Overview of this book

Table of Contents (22 chapters)
VMware vSphere 5.5 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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:

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 –l –d <naa-id of the LUN>
    

    Example:

    esxcfg-mpath –l –d naa.6000eb30adde4c1b0000000000000112
    
  3. 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...