Source
There are several commands to determine the WWN of a Fibre Channel (FC) HBA and their status (online/offline). The post discusses few of the most commonly used methods.
Method 1
To find the HBA cards installed on your system use :
To check the available HBA ports :
To find the state of HBA ports (online/offline) :
To find the WWN numbers of the above ports :
Method 2 : Using systool
Another useful command to find the information about HBAs is systool. If not already install, you may need to install the sysfsutils package.
To check the available HBA ports :
To find the WWNs for the HBA ports :
To check the state of the HBA ports (online/offline) :
There are several commands to determine the WWN of a Fibre Channel (FC) HBA and their status (online/offline). The post discusses few of the most commonly used methods.
Method 1
To find the HBA cards installed on your system use :
# lspci -nn | grep -i hba 07:00.0 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev 02) 07:00.1 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA [1077:2532] (rev 02)
# ls -l /sys/class/fc_host total 0 drwxr-xr-x 3 root root 0 Feb 3 2015 host2 drwxr-xr-x 3 root root 0 Feb 3 2015 host3
# more /sys/class/fc_host/host?/port_state :::::::::::::: /sys/class/fc_host/host2/port_state :::::::::::::: Online :::::::::::::: /sys/class/fc_host/host3/port_state :::::::::::::: Online
# more /sys/class/fc_host/host?/port_name :::::::::::::: /sys/class/fc_host/host2/port_name :::::::::::::: 0x500143802426baf4 :::::::::::::: /sys/class/fc_host/host3/port_name :::::::::::::: 0x500143802426baf6
Another useful command to find the information about HBAs is systool. If not already install, you may need to install the sysfsutils package.
# yum install sysfsutils
# systool -c fc_host Class = "fc_host" Class Device = "host2" Device = "host2" Class Device = "host3" Device = "host3"
# systool -c fc_host -v | grep port_name port_name = "0x500143802426baf4" port_name = "0x500143802426baf6"
# systool -c fc_host -v | grep port_state port_state = "Online" port_state = "Online"
Комментариев нет:
Отправить комментарий
Примечание. Отправлять комментарии могут только участники этого блога.