iSCSI LUN identification on host and iSCSI storage array
search cancel

iSCSI LUN identification on host and iSCSI storage array

book

Article ID: 323123

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides information on:
  • Identifying the IP address of communication between ESXi Host and ISCSI SAN array.
  • Co-relating the LUN ID on ESXi host and device on the ISCSI SAN array.
  • Establishing the mapping between the host identifier and the SAN array identifier for a particular LUN, as well as various IDs used to identify the initiator, target, and LUN references.


Symptoms:
 


Environment

VMware vSphere ESXi 6.7
VMware vSphere ESXi 5.1
VMware vSphere ESXi 5.5
VMware vSphere ESXi 7.0.x
VMware vSphere ESXi 6.5
VMware vSphere ESXi 8.0.x

Resolution

Note: The commands in this Knowledge Base article are to be used to display information. Do not alter the commands.

The iSCSI ID of the host

# esxcli storage core adapter list
HBA Name  Driver     Link State  UID                                     Capabilities   Description
--------  ---------  ----------  --------------------------------------  ------------   -----------
vmhba33   iscsi_vmk  online      iqn.1998-01.com.vmware:esx001-0badb9cf                 iSCSI Software Adapter

This is the iSCSI initiator IQN of the host iqn.1998-01.com.vmware:esx001-0badb9cf. It is assigned in the iSCSI SAN array during LUN assignment.
 

The iSCSI target IQN ID 

# esxcli iscsi adapter target list
Adapter  Target                                        Alias  Discovery Method  Last Error
-------  --------------------------------------------  -----  ----------------  ----------
vmhba65  iqn.2003-10.com.lefthandnetworks:deepaknikam         SENDTARGETS       No Error

This is IP address of the Storage Array controller which provides the path for iSCSI communication.

 

The IP address and port of the storage array

# esxcli iscsi adapter target portal list
Adapter  Target                                        IP              Port  Tpgt
-------  --------------------------------------------  --------------  ----  ----
vmhba65  iqn.2003-10.com.lefthandnetworks:deepaknikam  192.168.10.120  3260  257


The unique naa ID of the LUNs presented from the iSCSI target

 

# esxcli iscsi adapter target portal list
Adapter  Target                                        IP              Port  Tpgt
-------  --------------------------------------------  --------------  ----  ----
vmhba65  iqn.2003-10.com.lefthandnetworks:deepaknikam  192.168.10.120  3260  257

 



LUN pathing information: 

The LUN has BUS NUMBER =0, TARGET ID=0 and LUN ID=0. These components create the Runtime Name with the HBA:vmhba33, C:BUS NUMBER, T:TARGET ID and L: LUN ID = vmhba65:C0:T0:L0.

 

# esxcli storage core path list -d naa.6000eb30b6e4148d000000000000000d
iqn.1998-01.com.vmware:esx001-0badb9cf-00023d000001,iqn.2003-10.com.lefthandnetworks:deepaknikam,t,1-naa.6000eb30b6e4148d000000000000000d
   UID: iqn.1998-01.com.vmware:esx001-0badb9cf-00023d000001,iqn.2003-10.com.lefthandnetworks:deepaknikam,t,1-naa.6000eb30b6e4148d000000000000000d
   Runtime Name: vmhba65:C0:T0:L0
   Device: naa.6000eb30b6e4148d000000000000000d
   Device Display Name: LEFTHAND iSCSI Disk (naa.6000eb30b6e4148d000000000000000d)
   Adapter: vmhba65
   Channel: 0
   Target: 0
   LUN: 0
   Plugin: NMP
   State: active
   Transport: iscsi
   Adapter Identifier: iqn.1998-01.com.vmware:esx001-0badb9cf
   Target Identifier: 00023d000001,iqn.2003-10.com.lefthandnetworks:deepaknikam,t,257
   Adapter Transport Details: iqn.1998-01.com.vmware:esx001-0badb9cf
   Target Transport Details: IQN=iqn.2003-10.com.lefthandnetworks:deepaknikam Alias= Session=00023d000001 PortalTag=257
   Maximum IO Size: 131072

 


Additional Information