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)
- On the storage system, obtain the WWN of the LUN mapped to the host.
- Log in to the command-line interface (CLI) of the storage system as a super administrator.
- 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.
- 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.
- Run the show lun general lun_id=? command to view the WWN of the LUN mapped to the host.
- On the host, obtain the WWN of the LUN corresponding to a disk.
- Log in to the Windows application server as an administrator.
- Press Windows+R (if the operation is performed remotely, perform it in full screen mode) to open the Run dialog box.
- Enter diskmgmt.msc and press Enter.
- In the displayed Disk Management window, right-click the disk you want to query, and choose Properties.
- On the Details tab page, set Property to Device Instance Path. Value below Property is the serial number of the disk.
The serial number is an ASCII character. You can obtain the WWN of the LUN corresponding to the disk by seeing the ASCII table.
- 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)
- On the storage system, obtain the WWN of the LUN mapped to the host.
- Log in to the command-line interface (CLI) of the storage system as a super administrator.
- 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 a host corresponding to the WWN.
- 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.
- Run the show lun general lun_id=? command to view the WWN of the LUN mapped to the host.
- Run the ls /dev/disk/by-id/ -l command to view the WWN of the LUN corresponding to the host disk.
- 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)
- On the storage system, obtain the WWN of the LUN mapped to the host.
- Log in to the command-line interface (CLI) of the storage system as a super administrator.
- 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 a host corresponding to the WWN.
- 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.
- On the host, obtain the ID of the LUN corresponding to a disk.
- Run the lsdev -Cc disk command to query scanned disk information.
- 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.
- 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)
- On the storage system, obtain the WWN of the LUN mapped to the host.
- Log in to the command-line interface (CLI) of the storage system as a super administrator.
- 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 a host corresponding to the WWN.
- 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.
- Run the show lun general lun_id=? command to view the WWN of the LUN mapped to the host.
- On the host, run the esxcli storage core device list command to query the WWN of a LUN corresponding to the disk.
- 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)
- On the storage system, obtain the host ID.
- Log in to the command-line interface (CLI) of the storage system as a super administrator.
- 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 a host corresponding to the WWN.
- On the host, obtain the host LUN ID corresponding to a disk.
- On DeviceManager, view the host LUN ID of the LUN mapped to the host.
- Log in to DeviceManager.
- Choose Hosts > Hosts.
- Choose the host queried in 2.b, and view the host LUN ID of the LUN mapped to the host.
- 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.