iSCSI LUN identification on host and iSCSI storage array

  • Identifying the IP address of communication between ESXi Host and ISCSI SAN array.
  • Co-relating the LUN ID on ESX 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.
  •  

    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

    # esxcfg-scsidevs -a

    vmhba0  ata_piix          link-n/a  ide.vmhba0                              (0:0:7.1) Intel Corporation PIIX4 for 430TX/440BX/MX IDE Controller

    vmhba1  mptsas            link-n/a  sas.50050567a81ecee1                    (0:3:0.0) LSI Logic / Symbios Logic LSI1068
    vmhba32 ata_piix          link-n/a  ide.vmhba32                             (0:0:7.1) Intel Corporation PIIX4 for 430TX/440BX/MX IDE Controller
    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 IP address and port of the storage array

    #vmkiscsi-tool -T vmhba33
    —— Target [iqn.2003-10.com.lefthandnetworks:deepaknikam:13:simplevol] info ——
    NAME                              : iqn.2003-10.com.lefthandnetworks:deepaknikam:13:simplevol
    ALIAS                             :
    DISCOVERY METHOD FLAGS            : 8
    SEND TARGETS DISCOVERY SETTABLE   : 0
    SEND TARGETS DISCOVERY ENABLED    : 0
    Portal 0                          : 10.109.1.87:3260

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

    The target IQN ID of the LUN

    # vmkiscsi-tool -L vmhba33
    Target iqn.2003-10.com.lefthandnetworks:deepaknikam:13:simplevol:

    This is target iqn of the target controller on iSCSI. It is formatted as SAN array. iqn and in this case is iqn.2003-10.com.lefthandnetworks. The  name simplevol is assigned  to the device on the SAN array at LUN creation.

    Examples:

    ————————————————- Target [iqn.2003-10.com.lefthandnetworks:deepaknikam:29:supervol] info ——
    NAME                              : iqn.2003-10.com.lefthandnetworks:deepaknikam:29:supervol
    ALIAS                             :
    DISCOVERY METHOD FLAGS            : 8
    SEND TARGETS DISCOVERY SETTABLE   : 0
    SEND TARGETS DISCOVERY ENABLED    : 0
    Portal 0                          : 10.109.1.87:3260
    ————————————————- Target [iqn.2003-10.com.lefthandnetworks:deepaknikam:37:small] info ——
    NAME                              : iqn.2003-10.com.lefthandnetworks:deepaknikam:37:small
    ALIAS                             :
    DISCOVERY METHOD FLAGS            : 8
    SEND TARGETS DISCOVERY SETTABLE   : 0
    SEND TARGETS DISCOVERY ENABLED    : 0
    Portal 0                          : 10.109.1.87:3260

    The unique naa ID of the LUN as the array knows it

    OS DEVICE NAME    : naa.6000eb30b6e4148d000000000000000d

    This is unique naa ID of the LUN or Device on the SAN array which is same  across all the host which can access the device. 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  = vmhba33:C0:T0:L0.

    This can be verified by esxcfg-mpath -l -d naa_ID command:

    BUS NUMBER        : 0    
    TARGET ID         : 0
    LUN ID            : 0

    Examples:

    Target iqn.2003-10.com.lefthandnetworks:deepaknikam:29:supervol:
    ——————————————-
    OS DEVICE NAME    : naa.6000eb30b6e4148d000000000000001d
    BUS NUMBER        : 0
    TARGET ID         : 1
    LUN ID            : 0
    ——————————————-

    Target iqn.2003-10.com.lefthandnetworks:deepaknikam:37:small:
    ——————————————-
    OS DEVICE NAME    : naa.6000eb30b6e4148d0000000000000025
    BUS NUMBER        : 0
    TARGET ID         : 2
    LUN ID            : 0
    ——————————————-

    Display all preceding information at once

    # esxcfg-mpath  -l -d naa.6000eb30b6e4148d000000000000000d
    iqn.1998-01.com.vmware:esx001-0badb9cf-00023d000001,iqn.2003-10.com.lefthandnetworks:deepaknikam:13:simplevol,t,1-naa.6000eb30b6e4148d000000000000000d
      Runtime Name: vmhba33:C0:T0:L0
       Device: naa.6000eb30b6e4148d000000000000000d
       Device Display Name: LEFTHAND iSCSI Disk (naa.6000eb30b6e4148d000000000000000d)
       Adapter: vmhba33 Channel: 0 Target: 0 LUN: 0
       Adapter Identifier: iqn.1998-01.com.vmware:esx001-0badb9cf
       Target Identifier: 00023d000001,iqn.2003-10.com.lefthandnetworks:deepaknikam:13:simplevol,t,1
       Plugin: NMP
       State: active
       Transport: iscsi
       Adapter Transport Details: iqn.1998-01.com.vmware:esx001-0badb9cf
       Target Transport Details: IQN=iqn.2003-10.com.lefthandnetworks:deepaknikam:13:simplevol Alias= Session=00023d000001 PortalTag=1

    SOURCE: http://bit.ly/1osYfIm

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>