Linux下查看HBA卡的驱动版本和WWPN

平时在Linux下映射存储,都是映射哪台就给哪台插线,然后在存储端扫描WWPN,简单粗暴,没技术含量。当然,光交下也可以看。

1,查看当前卡的品牌,常用的卡有两种,Emulex和Qlogic。
---------------------------------------------
lspci |grep -i fibre
---------------------------------------------

 

 


2,查看HBA卡的驱动版本

emulex:
---------------------------------------------
modinfo lpfc | grep version
---------------------------------------------

qlogic:
---------------------------------------------
modinfo qla2xxx | grep version
---------------------------------------------
xxx是qlogic hba卡的型号

 

 

 

 

3,查看HBA卡的WWPN
---------------------------------------------
more /sys/class/fc_host/host*/port_name
---------------------------------------------

转自:https://www.mr-mao.cn/archives/linux-find-hba-driver-version-wwpn.html

 

posted @ 2020-04-24 15:50  pipci  阅读(5289)  评论(0编辑  收藏  举报