-->

DEVOPSZONES

  • Recent blogs

    How to find SAN LUNs In Linux

    How to find SAN LUNs In Linux?

    LUN

    1. Check FC card.
    [root@testserver ~]# lspci -nn | grep "Fibre Channel"
    10:00.0 Fibre Channel [0c04]: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA [1077:2432] (rev 03)
    [root@testserver ~]#

    2. Check if the Module has been loaded or Not.
    [root@testserver ~]# lsmod | grep qla
    qla2xxx              1262721  1
    scsi_transport_fc      83145  1 qla2xxx
    scsi_mod              199641  20 mptctl,be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2,scsi_transport_iscsi2,scsi_dh,sr_mod,qla2xxx,scsi_transport_fc,sg,usb_storage,libata,mptsas,mptscsih,scsi_transport_sas,sd_mod
    [root@testserver ~]#

    if no module is found in above command, we can load module.
    modprobe -v qla2xxx


    3. Use the systool command.
    [root@testserver host6]# systool -c fc_host -v host6
    Class = "fc_host"

      Class Device = "host6"
      Class Device path = "/sys/class/fc_host/host6"
        fabric_name         = "0x2001547feec13219"
        issue_lip           = <store method only>
        node_name           = "0x2000001b329677fa"
        port_id             = "0x240e00"
        port_name           = "0x2100001b329677fa"
        port_state          = "Online"
        port_type           = "NPort (fabric via point-to-point)
        speed               = "4 Gbit"
        supported_classes   = "Class 3"
        supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit"
        symbolic_name       = "QLE2460 FW:v5.06.03 DVR:v8.03.07.
        system_hostname     = ""
        tgtid_bind_type     = "wwpn (World Wide Port Name)"
        uevent              = <store method only>

        Device = "host6"
        Device path = "/sys/devices/pci0000:00/0000:00:06.0/0000
          fw_dump             =
          nvram               = "ISP "
          optrom_ctl          = <store method only>
          optrom              =
          reset               = <store method only>
          sfp                 = ""
          uevent              = <store method only>
          vpd                 = "▒4"


    [root@testserver host6]#


    4. you can check manually as well.
    [root@msk-bkp02 ~]# cd /sys/class/fc_host/host6
    [root@testserver host6]# ls
    device       issue_lip  port_id    port_state  speed       subsystem          supported_speeds  system_hostname  uevent
    fabric_name  node_name  port_name  port_type   statistics  supported_classes  symbolic_name     tgtid_bind_type
    [root@testserver host6]#
    [root@testserver host6]#
    [root@testserver host6]# more port_id
    0x240e00
    [root@testserver host6]#
    [root@testserver host6]# more node_name
    0x2000001b329677fa
    [root@testserver host6]#

    No comments