Determining the VDisk name from the vpath number on the host Advanced functions with the CLI Determining the host that a VDisk is mapped to

This task provides step-by-step instructions about how to determine the VDisk name from the vpath number on the host.

Each VDisk exported by the SAN Volume Controller is assigned a unique vpath number. This number uniquely identifies the VDisk and can be used to determine which VDisk corresponds to the volume that the hosts sees. This procedure can only be performed using the command line interface.

Steps

Perform the following steps to determine the VDisk name from the vpath number:

  1. For the volume in question, find the vpath serial number by issuing the following command:
    datapath query device
  2. Find the host object defined to the SAN Volume Controller that corresponds with the host you are working with.
    1. The WWPNs are an attribute of the HBA. You can find these by looking at the device definitions stored by your operating system. For example, on AIX they will be in the ODM, in Windows they will be in the Device Manager details for the given HBA.
    2. Verify which host object defined to the SAN Volume Controller that these ports belong to. The ports are stored as part of the detailed view, so you will need to list each host in turn by issuing the following:
      svcinfo lshost <name/id>
      where <name/id> is the name or ID of the host. Check for matching WWPNs.
      Note:Note: You should name your hosts accordingly, for example, if the actual host is called orange you should also name the host object defined to the SAN Volume Controller as orange.
  3. Now that you have the <host name> as defined to the SAN Volume Controller and the <vpath serial number>, issue the following command:
    svcinfo lshostvdiskmap <hostname>
    where <hostname> is the name of the host. A list is displayed.
  4. Look for the VDisk UID that matches the <vpath serial number> and remember the VDisk name or ID.

(C) Copyright International Business Machines Corporation 2003, 2004