系统环境: Centos系统
服务器必须链接到外部存储器并通过光纤连接。 在获取接口时需要确认hba卡的型号。 命令如下所示。
[ root @ localhost~] # lspci|grep-I fibre
8:00.0光纤通道: qlogic corp.ISP 2532-based8gbfibrechanneltopciexpresshba (rev 02 ) ) ) ) ) ) ) ) )。
8:00.1光纤通道: qlogic corp.ISP 2532-based8gbfibrechanneltopciexpresshba (rev 02 ) ) ) ) ) ) ) )。
[ root @ localhost~] # CD/sys/class/fc _ host /
[root@localhost fc_host]# ll
总使用量0
lrwxrwxrwx. 1 root root 0 12月11日14:57 host6--/devices/PCI 0000336080/000336080336000.0/0000336080336003.0
lrwxrwxrwx. 1 root root 0 12月11日14:57 host7---/devices/PCI 00000336080336000.1/0000336080:00.0
[ root @ localhost fc _ host ] # ls/sys/class/fc _ host /
host6 host7
[ root @ localhost fc _ host ] # cat/sys/class/fc _ host/host6/port _ name
0x21000024ff8fa016
[ root @ localhost fc _ host ] # cat/sys/class/fc _ host/host7/port _ name
0x21000024ff8fa017
上面粗的部分是HBA卡型号。