Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3656516
  • 博文数量: 880
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 6155
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-11 09:12
个人简介

To be a better coder

文章分类

全部博文(880)

文章存档

2022年(5)

2021年(60)

2020年(175)

2019年(207)

2018年(210)

2017年(142)

2016年(81)

分类: LINUX

2018-01-09 15:29:23



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

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

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

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

1、 RedHat Linux AS4  SuSE Linux 9

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

RedHat AS4SuSE Linux 9系统的/proc/scsi/qla2xxx目录下一般存在两个文件:12或者34,这些文件包含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 AS5SuSE Linux 10

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

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

查看WWPNcat /sys/class/fc_host/host*/port_name

查看WWNNcat /sys/class/fc_host/host*/node_name


阅读(14489) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~