Ada beberapa perintah untuk menentukan WWN dari Fibre Channel (FC) HBA dan statusnya (online/offline). Postingan tersebut membahas beberapa metode yang paling umum digunakan.
Metode 1
Untuk menemukan kartu HBA yang terpasang di sistem Anda, gunakan :
# 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)
Untuk memeriksa port HBA yang tersedia :
# 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
Untuk mengetahui status port HBA (online/offline) :
# more /sys/class/fc_host/host?/port_state :::::::::::::: /sys/class/fc_host/host2/port_state :::::::::::::: Online :::::::::::::: /sys/class/fc_host/host3/port_state :::::::::::::: Online
Untuk menemukan nomor WWN dari port di atas :
# more /sys/class/fc_host/host?/port_name :::::::::::::: /sys/class/fc_host/host2/port_name :::::::::::::: 0x500143802426baf4 :::::::::::::: /sys/class/fc_host/host3/port_name :::::::::::::: 0x500143802426baf6
Metode 2 :Menggunakan systool
Perintah lain yang berguna untuk menemukan informasi tentang HBA adalah systool . Jika belum menginstal, Anda mungkin perlu menginstal sysfsutils paket.
# yum install sysfsutils
Untuk memeriksa port HBA yang tersedia :
# systool -c fc_host Class = "fc_host" Class Device = "host2" Device = "host2" Class Device = "host3" Device = "host3"
Untuk menemukan WWN untuk port HBA :
# systool -c fc_host -v | grep port_name port_name = "0x500143802426baf4" port_name = "0x500143802426baf6"
Untuk memeriksa status port HBA (online/offline) :
# systool -c fc_host -v | grep port_state port_state = "Online" port_state = "Online"Cara mengidentifikasi kartu/port HBA dan WWN di Solaris
CentOS / RHEL 5:Cara Mengonfigurasi kdump
Cara Memeriksa apakah SELinux Diaktifkan atau Dinonaktifkan