How do I find the `port_name`(WWPN) and `node_name`(WWNN) of a configured HBA in Red Hat Enterprise

https://access.redhat.com/articles/15321

Updated 2014年十一月24日20:53 - 

English 

Issue

  • How do I find the port_name(WWPN) and node_name(WWNN) of a configured HBA in Red Hat Enterprise Linux ?

Environment

  • Red Hat Enterprise Linux 5, 6, 7

Resolution

Attaching a RHEL system to a storage area network (SAN) will, in most environments, require knowing the port_name and node_name of the HBA. In Red Hat Enterprise Linux, use the commands below, substituting the appropriate "hostX" :

For port_name:

Raw

$ cat /sys/class/fc_host/host2/port_name 
0x21000024ff2d1234

For node_name:

Raw

cat /sys/class/fc_host/host2/node_name  
0x20000024ff2d1234

OR

HBA with ID host 11 has address 0000:04:00.0 , WWNN - 0x20000024ff2d1234, WWPN - 0x21000024ff2d1234 as could be seen from the below systool command output.

Raw

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

  Class Device = "host11"
  Class Device path = "/sys/devices/pci0000:00/0000:00:09.0/0000:04:00.0/host11/fc_host/host11"
    dev_loss_tmo        = "45"
    fabric_name         = "0x10000005338fa33a"
    issue_lip           = <store method only>
    max_npiv_vports     = "254"
    node_name           = "0x20000024ff2d1234"
    npiv_vports_inuse   = "0"
    port_id             = "0x010200"
    port_name           = "0x21000024ff2d1234"
    port_state          = "Online"
    port_type           = "NPort (fabric via point-to-point)"
    speed               = "8 Gbit"
    supported_classes   = "Class 3"
    supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
    symbolic_name       = "QLE2562 FW:v7.00.01 DVR:v8.05.00.03.06.5-k2"
    system_hostname     = ""
    tgtid_bind_type     = "wwpn (World Wide Port Name)"
    uevent              = 
    vport_create        = <store method only>
    vport_delete        = <store method only>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值