LINUX 查询HBA WWN

在LINUX下查询HBA卡的WWN的通用办法如下:

# lspci | grep -i Fibre    (查询HBA卡)
04:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
04:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
05:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
05:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
# ls /sys/class/fc_host/   (从下可以看出服务器有4块HBA)
host3  host4  host5  host6
# cat /sys/class/fc_host/host[3-6]/port_name (对应HBA的WWN显示如下)
0x2100001b32936e24
0x2101001b32b36e24
0x2100001b32932821
0x2101001b32b32821

你可能感兴趣的:(linux,WWN,查询HBA)