【转】How can I check the port status of my fibre channel HBA?

本文介绍如何在Red Hat Enterprise Linux系统中检查光纤通道HBA的端口状态,包括使用systool命令和grep命令的方法。若端口状态显示为'Linkdown',需检查HBA上的LED灯及HBA BIOS以获取故障信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://access.redhat.com/solutions/528683

How can I check the port status of my fibre channel HBA?

 SOLUTION UNVERIFIED - 已更新 2017年十一月3日22:03 - 

English 

环境

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5

问题

  • Need to check the port status of my fibre channel HBA

决议

  • The state of the port can be checked within the /sys/class directory either via
$ systool -c fc_host -v    from sysfsutils package
Class = "fc_host"

  Class Device = "host10"
  Class Device path = "/sys/class/fc_host/host10"
    fabric_name         = "0x200000e08b8068ae"
    issue_lip           = 
    node_name           = "0x200000e08b8068ae"
    port_id             = "0x000000"
    port_name           = "0x210000e08b8068ae"
    port_state          = "Linkdown"
    port_type           = "Unknown"
    speed               = "unknown"
    supported_classes   = "Class 3"
    supported_speeds    = "1 Gbit, 2 Gbit, 4 Gbit"
    symbolic_name       = "QLE2460 FW:v5.06.03 DVR:v8.03.07.15.05.09-k"
    system_hostname     = ""
    tgtid_bind_type     = "wwpn (World Wide Port Name)"
    uevent              = 

    Device = "host10"
    Device path = "/sys/devices/pci0000:00/0000:00:04.0/0000:08:00.0/host10"
      optrom_ctl          = 
      reset               = 
      uevent              = 
:
.

or if sysfsutils package is not installed

$ grep -v "zZzZ" -H /sys/class/fc_host/host*/port_state
sys/class/fc_host/host10/port_state:Linkdown
sys/class/fc_host/host11/port_state:Online
sys/class/fc_host/host12/port_state:Online
sys/class/fc_host/host8/port_state:Online
sys/class/fc_host/host9/port_state:Online
  • If the port state shows "Linkdown" please check the LEDs on the HBA and the HBA BIOS for any information on the failure.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值