一 如果没有加载正确的驱动,则有些信息,比如HBA的Link Speed可能无法获得,比如:

localhost:~ # lspci

00:00.0 Host bridge: Intel Corporation 5000X Chipset Memory Controller Hub (rev 12)

00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 2 (rev 12)

00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev 12)

00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 4-5 (rev 12)

00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev 12)

00:06.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 6-7 (rev 12)

00:07.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 7 (rev 12)

00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev 12)

00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev 12)

00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev 12)

00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev 12)

00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev 12)

00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev 12)

00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev 12)

00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1 (rev 09)

00:1d.0 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09)

00:1d.1 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09)

00:1d.2 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09)

00:1d.7 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09)

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)

00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09)

00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09)

00:1f.2 IDE interface: Intel Corporation 631xESB/632xESB/3100 Chipset SATA IDE Controller (rev 09)

01:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08)

02:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev c3)

03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)

04:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01)

04:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01)

05:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01)

05:01.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2 (rev 01)

06:00.0 PCI bridge: Broadcom EPB PCI-Express to PCI-X Bridge (rev c3)

07:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)

08:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)

08:00.1 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)0a:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM57711 10Gigabit PCIe

0a:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM57711 10Gigabit PCIe

0e:0d.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)

从蓝色字体只能知道该卡是emulex的FC HBA,但是不知道是什么型号的;进一步:

这个时候可以通过lspci命令直接查看芯片组信息,比如:

localhost:~ # lspci -n00:00.0 0600: 8086:25c0 (rev 12)

00:02.0 0604: 8086:25e2 (rev 12)

00:03.0 0604: 8086:25e3 (rev 12)

00:04.0 0604: 8086:25f8 (rev 12)

00:05.0 0604: 8086:25e5 (rev 12)

00:06.0 0604: 8086:25f9 (rev 12)

00:07.0 0604: 8086:25e7 (rev 12)

00:10.0 0600: 8086:25f0 (rev 12)

00:10.1 0600: 8086:25f0 (rev 12)

00:10.2 0600: 8086:25f0 (rev 12)

00:11.0 0600: 8086:25f1 (rev 12)

00:13.0 0600: 8086:25f3 (rev 12)

00:15.0 0600: 8086:25f5 (rev 12)

00:16.0 0600: 8086:25f6 (rev 12)

00:1c.0 0604: 8086:2690 (rev 09)

00:1d.0 0c03: 8086:2688 (rev 09)

00:1d.1 0c03: 8086:2689 (rev 09)

00:1d.2 0c03: 8086:268a (rev 09)

00:1d.7 0c03: 8086:268c (rev 09)

00:1e.0 0604: 8086:244e (rev d9)

00:1f.0 0601: 8086:2670 (rev 09)

00:1f.1 0101: 8086:269e (rev 09)

00:1f.2 0101: 8086:2680 (rev 09)

01:00.0 0100: 1000:0058 (rev 08)

02:00.0 0604: 1166:0103 (rev c3)

03:00.0 0200: 14e4:164c (rev 12)

04:00.0 0604: 8086:3500 (rev 01)

04:00.3 0604: 8086:350c (rev 01)

05:00.0 0604: 8086:3510 (rev 01)

05:01.0 0604: 8086:3514 (rev 01)

06:00.0 0604: 1166:0103 (rev c3)

07:00.0 0200: 14e4:164c (rev 12)

08:00.0 0c04: 10df:f100 (rev 03)

08:00.1 0c04: 10df:f100 (rev 03)0a:00.0 0200: 14e4:164f

0a:00.1 0200: 14e4:164f

0e:0d.0 0300: 1002:515e (rev 02)

通过查找10df:f100,可以知道该卡是emulex的8Gb FC HBA LPe12000:

另外,还可以通过-vvv参数获得更详细的信息:

08:00.1 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter (rev 03)

Subsystem: Emulex Corporation Saturn-X: LightPulse Fibre Channel Host Adapter

Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-

Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Latency: 0, Cache Line Size: 64 bytes

Interrupt: pin B routed to IRQ 18

Region 0: Memory at d5efe000 (64-bit, non-prefetchable) [size=4K]

Region 2: Memory at d5ef4000 (64-bit, non-prefetchable) [size=16K]

Region 4: I/O ports at d800 [size=256]

Capabilities: [58] Power Management version 3

Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)

Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Capabilities: [60] Message Signalled Interrupts: Mask+ 64bit+ Count=1/16 Enable-

Address: 0000000000000000  Data: 0000

Masking: 00000000  Pending: 00000000

Capabilities: [78] MSI-X: Enable- Mask- TabSize=32

Vector table: BAR=2 offset=00002000

PBA: BAR=2 offset=00003000

Capabilities: [84] Vital Product Data >

Capabilities: [94] Express (v2) Endpoint, MSI 00

DevCap: MaxPayload 2048 bytes, PhantFunc 0, Latency L0s <1us, L1 unlimited

ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-

DevCtl: Report errors: Correctable- Non-Fatal- Fatal+ Unsupported-

RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+

MaxPayload 128 bytes, MaxReadReq 512 bytes

DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend-

LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s, Latency L0 <1us, L1 <64us

ClockPM- Suprise- LLActRep- BwNot-

LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-

ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-

LnkSta: Speed 2.5GT/s, Width x4, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-

DevCap2: Completion Timeout: Range ABCD, TimeoutDis+

DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-

LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB

Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-

Compliance De-emphasis: -6dB

LnkSta2: Current De-emphasis Level: -6dB

Capabilities: [100] Advanced Error Reporting

UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq+ ACSVoil-

UEMsk:  DLP- SDES- TLP- FCP- CmpltTO+ CmpltAbrt+ UnxCmplt+ RxOF- MalfTLP- ECRC- UnsupReq+ ACSVoil-

UESvrt: DLP+ SDES- TLP+ FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC+ UnsupReq- ACSVoil-

CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+

CESta:  RxErr+ BadTLP+ BadDLLP+ Rollover+ Timeout+ NonFatalErr-

AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-

Capabilities: [12c] Power Budgeting >

Kernel driver in use: lpfc

Kernel modules: lpfc

二 如果FC HBA加载了正确的驱动,则在/sys/class/fc_host/hostx下有大量的HBA的信息,比如

wwpn等:

localhost:~ # cd /sys/class/fc_host/host1/

localhost:/sys/class/fc_host/host1 # ls

active_fc4s  fabric_name  maxframe_size  port_id    port_state  power  statistics  supported_classes  supported_speeds  tgtid_bind_type

device       issue_lip    node_name      port_name  port_type   speed  subsystem   supported_fc4s     symbolic_name     uevent

localhost:/sys/class/fc_host/host1 # cat node_name

0x20000000c988bece

localhost:/sys/class/fc_host/host1 # cat port_name

0x10000000c988bece

linux里hba状态_Linux下查看FC HBA信息相关推荐

  1. 在Linux下查看FC HBA卡的速率和状态

    在Linux下查看FC HBA卡的速率和状态 1 查看FC HBA卡的WWN号 2 查看当前port的状态 3 查看PORT的端口ID 4 查看port支持的速率 5 在FC HBA没有插上光纤时 6 ...

  2. linux里hba状态_在Linux下查看FC HBA卡的速率和状态

    查看FC HBA卡的WWN号 一般是在/sys/class/fc_host/host*/目录下 [root@localhost ~]#cat  /sys/class/fc_host/host2/por ...

  3. linux下hba卡服务,在Linux下查看FC HBA卡的速率和状态

    查看FC HBA卡的WWN号 一般是在/sys/class/fc_host/host*/目录下 [root@localhost ~]#cat /sys/class/fc_host/host2/port ...

  4. linux查看fc卡固件版本,几种系统下查看FC HBA卡信息的方法

    在配置磁盘阵列或虚拟磁带库时,往往会以FC接口与主机对接,那就涉及FC HBA卡的查看,本文就此问题在各种系统下的查看方法进行总结与整理. 一.Windows系统 在Windows系统中,可以使用FC ...

  5. linux 实时 网口 速率_linux 下查看网卡工作速率-阿里云开发者社区

    [root@hadoop058 ~]# mii-tool eth0: negotiated 100baseTx-FD, link ok 100M linux 下查看网卡工作速率 Ethtool是用于查 ...

  6. 查询应用服务器fc端口wwn号,几种操作系统下如何查看FC HBA卡WWN号

    在Linux.UNIX.Windows环境下查看FC HBA卡WWN号的方法介绍. windows: 使用操作系统软件: Qlogic:SANsurfer Emulex:HBAnyware Suse ...

  7. Linux系统查看FC HBA卡信息的方法

    Linux系统查看FC HBA卡信息的方法 转载:地址我忘了 一.Windows 系统 在Windows系统中,可以使用FC HBA卡厂家提供的管理软件查看光纤适配器的WWN号码,具体如下: Qlog ...

  8. Linux 下查看硬盘 smart 信息

    Linux 下查看硬盘 smart 信息的方法 smartctl:查看硬盘 S.M.A.R.T信息 sudo apt install smartmontools sudo smartctl -A /d ...

  9. Linux下查看GPU显卡信息

    Linux下查看GPU显卡信息的命令: ubuntu-drivers devices nvidia-smi lspci | grep -i nvidia lspci lspci | grep -i v ...

  10. Linux使用总结之 : Linux下查看网卡速率信息

    Linux下查看网卡速率信息: 1.使用ethtool命令 ethtool ethx #查看支持的速率 ethx 为网卡名,使用 ifconfig -a ,ip a 查询.响应数据中: Link de ...

最新文章

  1. Ubuntu 16.04禁用来宾账号(Guest User)
  2. 平方剩余(二次剩余)
  3. 将InputStream写入本地文件
  4. delete 会不会锁表_MySQL的insert into select 引发锁表
  5. 样本量过少时,如何科学衡量喜好程度?
  6. java 静态块初始化_简单了解java中静态初始化块的执行顺序
  7. Python开发工程师常见的面试题及答案分享,记得收藏哈!
  8. 酷安电脑版_2020年末 平板电脑购买推荐
  9. javascript arguments对象研究--针对jquery源码研究再研究
  10. rhel6中dhcp服务器配置文件,如何在CentOS/RHEL 7/6/5配置DHCP服务器
  11. win10开启多用户同时远程登录-很详细
  12. Maven实战读书笔记
  13. python的pandas库无法调用_pandas库中最重要的几个知识点
  14. pytorch入门教程(一):Tensor###tensor好好好####
  15. 几款炫酷的CSS代码样式
  16. 趣味选择题.html
  17. java实体类命名规范_java实现周易起名-java实体类起名规范
  18. LeetCode:374. 猜数字大小
  19. 深度学习工作站攒机与装机全过程
  20. WIN8 64bit的系统下 使用Razer地狱狂蛇驱动v2.0汉化版会死机...

热门文章

  1. Word怎么删除背景颜色
  2. 计算机科学 期刊点评,COMPUTER JOURNAL
  3. linux驱动程序启动失败,打开程序提示加载驱动失败?三种故障原因及解决方法...
  4. 学计算机的管理层,毕业很吃香、高薪岗位多的4个专业,计算机科学上榜,你的专业呢...
  5. 如何打开计算机共享文件,如何打开共享文件 局域网文件共享的图文方法
  6. java 合并excel单元格
  7. 爱企查爬虫selenium
  8. 猪齿鱼 SaaS 版效能平台发布
  9. 非计算机,如何学习计算机视觉
  10. ah、esp、gre协议_AH,ESP的协议号和它们支持的功能有何差异?两种模式下的差异是什么?...