Linux主机上如何查看光纤HBA卡和WWN信息?

Linux主机上如何查看光纤HBA卡和WWN信息?,第1张

查看HBA:

lspci

(Linux

command)

[root@sandboxlinux

etc]#

lspci

...

00:0c.0

Fibre

Channel:

Emulex

Corporation:

Unknown

device

fa00

(rev

01)

00:0c.1

Fibre

Channel:

Emulex

Corporation:

Unknown

device

fa00

(rev

01)

...

如果已经安装了HBA,使用上述命令确认HBA芯片集的类型。此命令列出了适配器的芯片集。本例显示,Fibre

Channel

Emulex

card,

device

fa00

,

rev

01。

另一个在服务器中查找HBA类型的方法是查看消息日志文件最后一次启动过程中保存的信息。本例中,在/var/log/目录下执行“more

messages

|grep

HBA”我们看见两个Emulex

LP10000

HBA。

[#/var/log/more

messages

|grep

HBA

Oct

18

14:55:21

sandboxlinux

kernel:

scsi0

:

HBA:

Emulex

LightPulse

通过执行lputil,可通过Emulex

“lputil”工具查找HBA卡的WWN名。选择2“Adapter

Information”,之后选择4“IEEE

Address”。此地址将会被显示成为2个8位16进制字符,即为WWN。更多内容参考:https://community.emc.com/docs/DOC-33681

系统的/proc/scsi/qla2xxx目录下一般存在两个文件:1、2或者3、4,这些文件包含FC HBA卡的配置信息。

[root@localhost qla2xxx]# cat 3

QLogic PCI to FibreChannel Host Adapter for QLA2342:

Firmware version 3.03.18IPX, Driver version 8.01.02-d4

ISP:ISP2312, Serial# P21735

RequestQueue = 0x11f580000,Response Queue = 0x11f4d0000

Request Queue count =4096, Response Queue count = 512

Total number of activecommands = 0

Total number ofinterrupts = 3354

Device queue depth = 0x10

Number of freerequest entries = 4094

Number of mailboxtimeouts = 0

Number of ISP aborts= 0

Number of loopresyncs = 0

Number of retries forempty slots = 0

Number of reqs inpending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0

Host adapter:loopstate = <READY>, flags = 0x1a03

Dpc flags = 0x4000000

MBX flags = 0x0

Link down Timeout =000

Port down retry = 035

Login retry count =035

Commands retried withdropped frame(s) = 0

Product ID = 49535020 2020 0002

SCSI DeviceInformation:

scsi-qla0-adapter-node=2000001882374738

scsi-qla0-adapter-port=2100001882374738

FC Port Information:

scsi-qla0-port-0=200000188237b206:210000188237b206:010a00:81

SCSI LUN Information:

(Id:Lun) * - indicates lun is not registered with theOS.

其中,SCSI Device Information下面的scsi-qla0-adapter-port=2100001882374738便是主机光纤卡的WWN号。

RedHat AS5系统的/sys/class/fc_host/host*/port_name 这个文件包含了所有已被系统发现的FC HBA卡的信息,使用查看命令查看该文件的内容即可看到FC HBA卡的信息。

查看WWPN:cat/sys/class/fc_host/host*/port_name

查看WWNN:cat/sys/class/fc_host/host*/node_name


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/8697866.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-20
下一篇2023-04-20

发表评论

登录后才能评论

评论列表(0条)

    保存