Determining the volume name from the device identifier on the host

You can use the command-line interface (CLI) to determine the volume name from the device identifier on the host.

Each volume that is exported by the system is assigned a unique device identifier. The device identifier uniquely identifies the volume and can be used to determine which volume corresponds to the volume that the host detects.

Complete the following steps to determine the volume name from the device identifier:

  1. Find the device identifier.
    For example, if you are using the subsystem device driver (SDD), the disk identifier is referred to as the virtual path (vpath) number. You can issue the following SDD command to find the vpath serial number:
    datapath query device

    For other multipathing drivers, refer to the documentation that is provided with your multipathing driver to determine the device identifier.

  2. Find the host object that is defined to the system and corresponds with the host that you are working with.
    1. Find the worldwide port numbers (WWPNs) by looking at the device definitions that are stored by your operating system.
      For example, on AIX the WWPNs are in the ODM and if you use Windows you must go into the HBA BIOS.
    2. Verify which host object is defined to the system for which these ports belong. The ports are stored as part of the detailed view so that you must list each host by issuing the following CLI command:
      lshost id | name
      Where id | name is the name or ID of the host.
    3. Check for matching WWPNs.
  3. Enter the following command to list the host mappings:
    lshostvdiskmap hostname

    Where hostname is the name of the host.

  4. Find the volume UID that matches the device identifier and record the volume name or ID.