How can I check the port status of my fibre channel HBA?
SOLUTION UNVERIFIED - 已更新 2017年十一月3日22:03 -
环境
- 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.