HBA卡是存储和主机之间连接的媒介。在后端存储配置前后,需要通进查看一些HBA卡信息,如HBA卡型号、HBA卡是否online、HBA卡WWN号等。这里汇总几种查看HBA卡的方法。
一、lspci 指令查看HBA卡信息
现在的HBA卡为了速度的保证,一般都是插在pci插槽上的FC HBA卡,这里以常用的FC接口HBA为例,通过lspci 查看:
[boco4a@361way.com ~]$ lspci|grep -i Fibre
44:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)
44:00.1 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)
上面只能看到HBA卡的厂商是Emulex ,具体的型号这里没有列出。这时可以尝试使用lspci -vvv查看更详细的信息,如下:
[root@361way.com ~]# lspci -vvv|grep -i Fibre -A 100
44:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)
Subsystem: Hewlett-Packard Company Device 3282
Physical Slot: 8
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 64
Region 0: Memory at f8df0000 (64-bit, non-prefetchable) [size=4K]
Region 2: Memory at f8de0000 (64-bit, non-prefetchable) [size=16K]
[virtual] Expansion ROM at f8800000 [disabled] [size=256K]
Capabilities: [58] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [60] MSI: Enable- Count=1/16 Maskable+ 64bit+
Address: 0000000000000000 Data: 0000
Masking: 00000000 Pending: 00000000
Capabilities: [78] MSI-X: Enable+ Count=32 Masked-
Vector table: BAR=2 offset=00002000
PBA: BAR=2 offset=00003000
Capabilities: [84] Vital Product Data
Product Name: AJ763-63003
Read-only fields:
[PN