云平台所使用服务器厂家:华为、H3C、浪潮、烽火、中兴
操作系统:cetos7.6
1,查看当前HBA卡的品牌,常用的卡有两种,Emulex和Qlogic。
命令 lspci |grep -i fibre
[root@test]# lspci |grep -i fibre
5f:00.0 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)
5f:00.1 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)
86:00.0 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01)
86:00.1 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01
---------显示HBA卡为QLogic
[root@test ~]# lspci |grep -i fibre
5e:00.0 Fibre Channel: Emulex Corporation Lancer Gen6: LPe32000 Fibre Channel Host Adapter (rev 01)
5e:00.1 Fibre Channel: Emulex Corporation Lancer Gen6: LPe32000 Fibre Channel Host Adapter (rev 01)
af:00.0 Fibre Channel: Emulex Corporation Lancer Gen6: LPe32000 Fibre Channel Host Adapter (rev 01)
af:00.1 Fibre Channel: Emulex Corporation Lancer Gen6: LPe32000 Fibre Channel Host Adapter (rev 01)
---------显示HBA卡为Emulex
2,查看HBA卡的驱动版本
Emulex 卡:
命令:modinfo lpfc | grep version
[root@test ~]# modinfo lpfc | grep version
version: 0:12.0.0.5
rhelversion: 7.6
srcversion: 4EBEE72CF8A6566830DC8FE
vermagic: 3.10.0-957.5.1.el7.x86_64 SMP mod_unload modversions
QLogic卡:
命令:modinfo qla2xxx | grep version
xxx是qlogic hba卡的型号
[root@test ~]# modinfo qla2xxx | grep version
version: 10.00.00.06.07.6-k
rhelversion: 7.6
srcversion: 1DFF7CE6119C3CFC695C2F7
vermagic: 3.10.0-957.5.1.el7.x86_64 SMP mod_unload modversions
10.00.00.06.07.6-k
3.查询HBA卡固件版本
Emulex 卡:
命令:cat /sys/class/scsi_host/host*/fwrev
[root@test~]# cat /sys/class/scsi_host/host*/fwrev
12.6.240.22, sli-4:2:c
12.6.240.22, sli-4:2:c
12.6.240.22, sli-4:2:c
12.6.240.22, sli-4:2:c
QLogic卡:
[root@test ~]# systool -c scsi_host -v -d host14 | grep fw_version
84xx_fw_version = ""
fw_version = "9.03.00 (d0d5)"
optrom_fw_version = "9.03.00 2019217621"
optrom_gold_fw_version= "0.00.00 (0)"