No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Administrator Guide

OceanStor V3 Series V300R006

This document is applicable to OceanStor 2200 V3, 2600 V3, 5300 V3, 5500 V3, 5600 V3, 5800 V3, 6800 V3, 18500 V3, and 18800 V3. Routine maintenance activities are the most common activities for the storage device, including powering on or off the storage device, managing users, modifying basic parameters of the storage device, and managing hardware components. This document is intended for the system administrators who are responsible for carrying out routine maintenance activities, monitoring the storage device, and rectifying common device faults.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
How Do I Query the Mapping Between Host Disks and LUNs When the UltraPath Software Is Not Installed?

How Do I Query the Mapping Between Host Disks and LUNs When the UltraPath Software Is Not Installed?

When the UltraPath is not installed on a host, perform the following operations to query the mapping between host disks and LUNs.

Querying the Mapping Between Host Disks and LUNs (Windows)

  1. On the storage system, obtain the WWN of a LUN mapped to the host.

    1. Log in to the CLI of the storage system as the super administrator.
    2. Run show initiator initiator_type=? [ wwn=? | iscsi_iqn_name=? ] to show the host corresponding to the WWN or iSCSI IQN.
      admin:/>show initiator initiator_type=FC wwn=21000024ff53b640 
        
       WWN               : 21000024ff53b640 
       Running Status    : Online 
       Free              : Yes 
       Alias             : suse2_01 
       Host ID           : 2 
       Multipath Type    : Default 

      In the preceding command output, the value of Host ID is the host corresponding to the WWN.

    3. Run show host lun host_id=? command to view all LUNs mapped to the host.

      host_id=? represents the ID of a host.

      admin:/>show host lun host_id=2 
         
         LUN ID  LUN Name       
         ------  ------------   
         34      lun_0000   
         35      lun_0001   
         36      lun_0002

      The value of LUN ID is the ID of a LUN mapped to the host in the storage system.

    4. Run the show lun general lun_id=? command to view the WWN of the LUN mapped to the host.

  2. On the host, obtain the WWN of the LUN corresponding to a disk.

    1. Log in to the Windows application server as an administrator.
    2. Press Windows+R (if the operation is performed remotely, perform it in full screen mode) to open the Run dialog box.
    3. Enter diskmgmt.msc and press Enter.
    4. In the displayed Disk Management window, right-click the disk you want to query, and choose Properties.
    5. On the Details tab page, set Property to Device Instance Path. Value below Property is the serial number of the disk.
    NOTE:

    The serial number is an ASCII character. You can obtain the WWN of the LUN corresponding to the disk by seeing the ASCII table.

  3. Check whether the WWN of the LUN mapped to the host and that of the host disk are the same. If they are, the LUN is just the one corresponding to the host disk.

Querying the Mapping Between Host Disks and LUNs (Linux)

  1. On the storage system, obtain the WWN of the LUN mapped to the host.

    1. Log in to the CLI of the storage system as the super administrator.
    2. Run show initiator initiator_type=? [ wwn=? | iscsi_iqn_name=? ] to show the host corresponding to the WWN or iSCSI IQN.
      admin:/>show initiator initiator_type=FC wwn=21000024ff53b640 
        
       WWN               : 21000024ff53b640 
       Running Status    : Online 
       Free              : Yes 
       Alias             : suse2_01 
       Host ID           : 2 
       Multipath Type    : Default 
      

      The value of Host ID is the ID of the host corresponding to the WWN.

    3. Run show host lun host_id=? to view all LUNs mapped to the host.

      host_id=? represents the ID of a host.

      admin:/>show host lun host_id=2 
         
         LUN ID  LUN Name       
         ------  ------------   
         34      lun_0000   
         35      lun_0001   
         36      lun_0002

      The value of LUN ID is the ID of a LUN mapped to the host in the storage system.

    4. Run the show lun general lun_id=? command to view the WWN of the LUN mapped to the host.

  2. Run the ls /dev/disk/by-id/ -l command to view the WWN of the LUN corresponding to the host disk.
  3. Check whether the WWN of the LUN mapped to the host and that of the host disk are the same. If they are, the LUN is just the one corresponding to the host disk.

Querying the Mapping Between Host Disks and LUNs (AIX)

  1. On the storage system, obtain the ID of the LUN mapped to the host.

    1. Log in to the CLI of the storage system as the super administrator.
    2. Run the show initiator initiator_type=? [ wwn=? | iscsi_iqn_name=? ] command to view the WWN or IQN of an initiator to query information about the corresponding host.
      admin:/>show initiator initiator_type=FC wwn=21000024ff53b640 
        
       WWN               : 21000024ff53b640 
       Running Status    : Online 
       Free              : Yes 
       Alias             : suse2_01 
       Host ID           : 2 
       Multipath Type    : Default 

      The value of Host ID is the ID of the host corresponding to the WWN.

    3. Run show host lun host_id=? to view all LUNs mapped to the host.

      host_id=? represents the ID of a host.

      admin:/>show host lun host_id=2 
         
         LUN ID  LUN Name       
         ------  ------------   
         34      lun_0000   
         35      lun_0001   
         36      lun_0002

      The value of LUN ID is the ID of a LUN mapped to the host in the storage system.

  2. On the host, obtain the ID of the LUN corresponding to a disk.

    1. Run the lsdev -Cc disk command to query scanned disk information.
    2. Run the lsattr -El hdiskX command to query the information about disk hidskx. In the command output, the value of lun_id is the ID of the LUN corresponding to the disk.

  3. Check whether the two IDs are the same. If they are the same, you can determine that the LUN is the one corresponding to the host disk.

Querying the Mapping Between Host Disks and LUNs (VMware)

  1. On the storage system, obtain the WWN of the LUN mapped to the host.

    1. Log in to the CLI of the storage system as the super administrator.
    2. Run show initiator initiator_type=? [ wwn=? | iscsi_iqn_name=? ] to show the host corresponding to the WWN or iSCSI IQN.
      admin:/>show initiator initiator_type=FC wwn=21000024ff53b640 
        
       WWN               : 21000024ff53b640 
       Running Status    : Online 
       Free              : Yes 
       Alias             : suse2_01 
       Host ID           : 2 
       Multipath Type    : Default 

      The value of Host ID is the ID of the host corresponding to the WWN.

    3. Run show host lun host_id=? to view all LUNs mapped to the host.

      host_id=? represents the ID of a host.

      admin:/>show host lun host_id=2 
         
         LUN ID  LUN Name       
         ------  ------------   
         34      lun_0000   
         35      lun_0001   
         36      lun_0002

      The value of LUN ID is the ID of a LUN mapped to the host in the storage system.

    4. Run the show lun general lun_id=? command to view the WWN of the LUN mapped to the host.

  2. On the host, run the esxcli storage core device list command to query the WWN of a LUN corresponding to the disk.
  3. Check whether the WWN of the LUN mapped to the host and that of the host disk are the same. If they are, the LUN is just the one corresponding to the host disk.

Querying the Mapping Between Host Disks and LUNs (Solaris)

  1. On the storage system, obtain the host ID.

    1. Log in to the CLI of the storage system as the super administrator.
    2. Run show initiator initiator_type=? [ wwn=? | iscsi_iqn_name=? ] to show the host corresponding to the WWN or iSCSI IQN.
      admin:/>show initiator initiator_type=FC wwn=21000024ff53b640 
        
       WWN               : 21000024ff53b640 
       Running Status    : Online 
       Free              : Yes 
       Alias             : suse2_01 
       Host ID           : 2 
       Multipath Type    : Default 

      The value of Host ID is the ID of the host corresponding to the WWN.

  2. On the host, obtain the host LUN ID corresponding to a disk.

    1. Run the cfgadm -al and devfsadm -C commands to scan the disk.
    2. Run the echo | format command to update the number of devices and query the host LUN ID.

  3. On DeviceManager, view the host LUN ID of the LUN mapped to the host.

    1. Log in to DeviceManager.
    2. Choose Provisioning > Host.
    3. Choose the host queried in Step 1, and view the host LUN ID of the LUN mapped to the host.

  4. Check whether the two host LUN IDs are the same. If they are the same, the LUN is the one corresponding to the host disk.

Download
Updated: 2019-07-12

Document ID: EDOC1000138854

Views: 36003

Downloads: 2043

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next