System environment: the Centos system server needs to be connected to external storage and connected through optical fiber cables. you need to query the host card model when getting the interface. the command is as follows: [root @ localhost ~] # Lspci | grep-ifibre84: 00.0 fiber rechannel: QLogicCorp. ISP2532-based8GbFibreChanneltoPCI
System environment: Centos system
The server needs to connect to external storage and connect to it through optical fiber cables. you need to query the host card model when getting the interface. the command is as follows:
[Root @ localhost ~] # Lspci | grep-I fiber
84: 00.0 fiber Channel: QLogic Corp. ISP2532-based 8 Gb fiber Channel to PCI Express HBA (rev 02)
84: 00.1 fiber Channel: QLogic Corp. ISP2532-based 8 Gb fiber Channel to PCI Express HBA (rev 02)
[Root @ localhost ~] # Cd/sys/class/fc_host/
[Root @ localhost fc_host] # ll
Total usage 0
Lrwxrwxrwx. 1 root 0 December 11 14:57 host6->.../devices/pci0000: 80/0000: 80: 03.0/0000: 84: 00.0/host6/fc_host/host6
Lrwxrwxrwx. 1 root 0 December 11 14:57 host7->.../devices/pci0000: 80/0000: 80: 03.0/0000: 84: 00.1/host7/fc_host/host7
[Root @ localhost fc_host] # ls/sys/class/fc_host/
Host6 host7
[Root @ localhost fc_host] # cat/sys/class/fc_host/host6/port_name
0x2000024ff8fa016
[Root @ localhost fc_host] # cat/sys/class/fc_host/host7/port_name
0x2000024ff8fa017
The bold section above is the HBA card model.