For those who are interested in knowing how to determine HBA port id (world-wide name – WWN) from a Linux box, see below. Note is this is for RHEL/OEL 6.x. 5.x is quite different. In our case its simple, we have one HBA, but the following can be used to walk thru it:

 
#lspci | grep -i fibre

03:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 02)
 
#systool -av -c fc_host
 
 
Class Device = "host6"
  Class Device path = "/sys/devices/pci0000:00/0000:00:1c.0/0000:03:00.0/host6/fc_host/host6"
    dev_loss_tmo        = "45"
    fabric_name         = "0xffffffffffffffff"
    issue_lip           = <store method only>
    max_npiv_vports     = "127"
    node_name           = "0x200000e08b93a654"
    npiv_vports_inuse   = "0"
    port_id             = "0x000000"
    port_name           = "0x210000e08b93a654"
    port_state          = "Linkdown"
    port_type           = "Unknown"
    speed               = "unknown"
    supported_classes   = "Class 3"
    supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit"
    symbolic_name       = "QLE2460 FW:v5.03.07 DVR:v8.04.00.08.39.0-k"
    system_hostname     = ""
    tgtid_bind_type     = "wwpn (World Wide Port Name)"
    uevent              = 
    vport_create        = <store method only>
    vport_delete        = <store method only>
 
Thus WWN == 20:00:00:e0:8b:93:a6:54

By Nitin Vengurlekar and Charles Kim, Oracle ACE Director
Viscosity North America


Comments are closed