Got it

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

Latest reply: Jan 6, 2021 18:49:52 866 4 0 0 0
Storage is OceanStor Dorado 6000V300R001 . 

Please send an email to our support team apsupport@huawei.com for further clarification!How Do I Query the Mapping Between Host Disks and LUNs When the UltraPath Software Is Not Installed?-2665083-1
View more
  • x
  • convention:

:)
View more
  • x
  • convention:

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 the LUN mapped to the host.

    1. Log in to the command-line interface (CLI) of the storage system as a 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=21000024ff53b640WWN               : 21000024ff53b640Running Status    : OnlineFree              : YesAlias             : suse2_01Host ID           : 2Multipath 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=2LUN ID  LUN Name------  ------------34      lun_000035      lun_000136      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.

    ../Resource/public_sys-resources/note_en.png?v=20200527

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

    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.

  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 command-line interface (CLI) of the storage system as a 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=21000024ff53b640WWN               : 21000024ff53b640Running Status    : OnlineFree              : YesAlias             : suse2_01Host ID           : 2Multipath Type    : Default

      The value of Host ID is the ID of a 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=2LUN ID  LUN Name------  ------------34      lun_000035      lun_000136      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 WWN of the LUN mapped to the host.

    1. Log in to the command-line interface (CLI) of the storage system as a 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=21000024ff53b640WWN               : 21000024ff53b640Running Status    : OnlineFree              : YesAlias             : suse2_01Host ID           : 2Multipath Type    : Default

      The value of Host ID is the ID of a 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=2LUN ID  LUN Name------  ------------34      lun_000035      lun_000136      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 command-line interface (CLI) of the storage system as a 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=21000024ff53b640WWN               : 21000024ff53b640Running Status    : OnlineFree              : YesAlias             : suse2_01Host ID           : 2Multipath Type    : Default

      The value of Host ID is the ID of a 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=2LUN ID  LUN Name------  ------------34      lun_000035      lun_000136      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 command-line interface (CLI) of the storage system as a 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=21000024ff53b640WWN               : 21000024ff53b640Running Status    : OnlineFree              : YesAlias             : suse2_01Host ID           : 2Multipath Type    : Default

      The value of Host ID is the ID of a 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 command to scan the disk.

    2. Run the echo | format command to update the number of devices and query the host LUN ID.1_en-us_image_0223218428.gif

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

    1. Log in to DeviceManager.

    2. Choose Hosts > Hosts.

    3. Choose the host queried in 2.b, 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.


View more
  • x
  • convention:

excellent
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.