需要进入如下目录/sys/class/fc_host/host*
查看port_name 文件的内容即可看到对应FC HBA卡的WWN信息:
#cat /sys/class/fc_host/host0/port_name
0x21000024ff420848
#cat /sys/class/fc_host/host1/port_name
0x21000024ff420849
#cat /sys/class/fc_host/host0/port_state
online 正常在线
#cat /sys/class/fc_host/host1/port_state
linkdown 不正常或未连接
注:本文转自https://blog.weiminginfo.com/archives/1575104497096
Be First to Comment