Book Image

VMware vSphere 5.1 Cookbook

By : Abhilash G B
Book Image

VMware vSphere 5.1 Cookbook

By: Abhilash G B

Overview of this book

Amidst all the recent competition from Citrix and Microsoft, VMware's vSphere product line is still the most feature rich and futuristic product in the virtualization industry. Knowing how to install and configure vSphere components is important to give yourself a head start towards virtualization using VMware. If you want to quickly grasp the installation and configuration procedures, especially by using the new vSphere 5.1 web client, this book is for you.VMware vSphere 5.1 Cookbook will take you through all the steps required to accomplish a task with minimal reading required. Most of the tasks are accompanied with relevant screenshots with an intention to provide a visual guidance as well.The book has many useful recipes that will help you progress through the installation of VMware ESXi 5.1 and vCenter Server 5.1. You will learn to use Auto Deploy and Image Profiles to deploy stateless/stateful ESXi servers, configure failover protection for virtual machines using vSphere HA, configure automated load balancing using vSphere DRS and DPM. Finally, the book guides you through upgrading or patching ESXi servers using VMware Update Manager and also deploying and configuring vSphere Management Assistant (VMA) to be able to run scripts to manage the ESXi servers.
Table of Contents (20 chapters)
VMware vSphere 5.1 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 is done at the ESXi host, by using the MASK_PATH PSA plugin to claim the paths to the intended LUN.

In this recipe we will learn how to create a claim rule to mask paths to a chosen LUN.

How to do it…

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

  1. Get the NAA ID of the LUN that needs to be masked by issuing the following command. The 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:

    esxscfg-mpath –l –d <naa-id of the LUN>
    

    Command to be executed:

    esxcfg-mapth –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
    

    Command to be executed:

    esxcli storage...