linux查询hba卡驱动版本,Linux系统上安装FC HBA卡驱动,及查看hba卡信息

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值