Working with FC in Linux
Here is a short list of several commands that are quite handy when dealing with linux, especially with redhat based distros, and fibre channel.
- How to list installed HBAs.
# lspci | grep -i fibre 0b:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
# cat /sys/class/scsi_host/host0/modeldesc Emulex LPe11000-S 4Gb 1-port PCIe FC HBA
# cat /sys/class/scsi_host/host0/device/fc_host\:host0/port_name 0x10000000c9827a63
echo "- - -" > /sys/class/scsi_host/host0/scan or echo "1" > /sys/class/fc_host/host0/issue_lip