https://wenku.baidu.com/view/433e929f844769eae109ed84.html

下载压缩包,解压,配置文件修改,make生成ko文件,modprobe或insmod 失败看dmesg

Linux系统下查看FC HBA卡的信息

本章节将以RedHat Linux AS4、RedHat Linux AS5、SuSe Linux 9和SuSe Linux 10为例介绍在Linux系统中如何查看FC HBA卡的信息。

在查看FC HBA卡前请确保FC HBA卡物理连接正常,指示灯正常。

1、RedHat Linux AS4和SuSE Linux 9

RedHat Linux AS4与SuSE Linux 9中查看FC HBA卡信息的方法基本一样,在此以RedHat AS4为例介绍如何查看FC HBA卡的信息。

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

[root@localhost qla2xxx]# pwd

/proc/scsi/qla2xxx

[root@localhost qla2xxx]# ls

3  4

[root@localhost qla2xxx]# cat 3

QLogic PCI to Fibre Channel Host Adapter for QLA2342:

Firmware version 3.03.18 IPX, Driver version 8.01.02-d4

ISP: ISP2312, Serial# P21735

Request Queue = 0x11f580000, Response Queue = 0x11f4d0000

Request Queue count = 4096, Response Queue count = 512

Total number of active commands = 0

Total number of interrupts = 3354

Device queue depth = 0x10

Number of free request entries = 4094

Number of mailbox timeouts = 0

Number of ISP aborts = 0

Number of loop resyncs = 0

Number of retries for empty slots = 0

Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0

Host adapter:loop state = , flags = 0x1a03

Dpc flags = 0x4000000

MBX flags = 0x0

Link down Timeout = 000

Port down retry = 035

Login retry count = 035

Commands retried with dropped frame(s) = 0

Product ID = 4953 5020 2020 0002

SCSI Device Information:

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 the OS.

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

2、RedHat Linux AS5和SuSE Linux 10

RedHat Linux AS5与SuSE Linux 10中查看FC HBA卡信息的方法基本一致,在此在RedHat Linux AS5为便介绍如何查看FC HBA卡信息。

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

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐