Linux Scroll

Just another WordPress.com site

Linux find WWN of a disk/LUN

Get the Fiber Channel addresses of the HBAs:

# systool -c fc_host -v
Class = "fc_host"

  Class Device = "host0"
  Class Device path = "/sys/devices/pci0000:00/0000:00:07.0/0000:06:00.0/host0/fc_host/host0"
    fabric_name         = "0x100000051e6fe203"
    issue_lip           = 
    max_npiv_vports     = "255"
    node_name           = "0x5001738002a106b5"
    npiv_vports_inuse   = "0"
    port_id             = "0x27c742"
    port_name           = "0x5001738002a106b4"
    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, 8 Gbit"
    symbolic_name       = "QMH2562 FW:v4.04.05 DVR:v8.02.01.03.11.0-k9"
    system_hostname     = ""
    tgtid_bind_type     = "wwpn (World Wide Port Name)"
    uevent              =
    vport_create        = 
    vport_delete        = 

    Device = "host0"
    Device path = "/sys/devices/pci0000:00/0000:00:07.0/0000:06:00.0/host0"
      ct                  =
      els                 =
      fw_dump             =
      nvram               = "ISP "
      optrom              =
      optrom_ctl          = 
      sfp                 =
      uevent              = "DEVTYPE=scsi_host"
      vpd                 = "8"


  Class Device = "host1"
  Class Device path = "/sys/devices/pci0000:00/0000:00:07.0/0000:06:00.1/host1/fc_host/host1"
    fabric_name         = "0x100000052e6f1e03"
    issue_lip           = 
    max_npiv_vports     = "255"
    node_name           = "0x5001438003a406b7"
    npiv_vports_inuse   = "0"
    port_id             = "0x50c703"
    port_name           = "0x5001438003a406b6"
    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, 8 Gbit"
    symbolic_name       = "QMH2562 FW:v4.04.05 DVR:v8.02.01.03.11.0-k9"
    system_hostname     = ""
    tgtid_bind_type     = "wwpn (World Wide Port Name)"
    uevent              =
    vport_create        = 
    vport_delete        = 

    Device = "host1"
    Device path = "/sys/devices/pci0000:00/0000:00:07.0/0000:06:00.1/host1"
      ct                  =
      els                 =
      fw_dump             =
      nvram               = "ISP "
      optrom              =
      optrom_ctl          = 
      sfp                 =
      uevent              = "DEVTYPE=scsi_host"
      vpd                 = "8"
 # systool -c fc_transport -v
Class = "fc_transport"

  Class Device = "0:0"
  Class Device path = "/sys/devices/pci0000:00/0000:00:07.0/0000:06:00.0/host0/rport-0:0-0/target0:0:0/fc_transport/target0:0:0"
    node_name           = "0x50060e9015320c49"
    port_id             = "0x23ee80"
    port_name           = "0x50060e9015320c49"
    uevent              =

    Device = "target0:0:0"
    Device path = "/sys/devices/pci0000:00/0000:00:07.0/0000:06:00.0/host0/rport-0:0-0/target0:0:0"
      uevent              = "DEVTYPE=scsi_target"
Advertisements

Comments are closed.

%d bloggers like this: