Linux HBA Stuff

I used this command sequence on RHEL 4 with Emulex HBAs.

First need to see if the cards were detected. A quick grep shows that the are

dmesg | grep -i fib
Emulex LightPulse Fibre Channel SCSI driver 8.0.16.34
scsi0 : HP FC2242SR 4Gb PCI-e DC  Fibre Channel Adapter on PCI bus 13 device 00 irq 185 port 0
scsi1 : HP FC2242SR 4Gb PCI-e DC  Fibre Channel Adapter on PCI bus 13 device 01 irq 193 port 1
scsi2 : HP FC2242SR 4Gb PCI-e DC  Fibre Channel Adapter on PCI bus 17 device 00 irq 193 port 0
scsi3 : HP FC2242SR 4Gb PCI-e DC  Fibre Channel Adapter on PCI bus 17 device 01 irq 169 port 1

lsmod
this shows that the module is loaded
scsi_mod              145041  6 lpfc,scsi_transport_fc,libata,cciss,usb_storage,sd_mod

Here are the WWNs of the cards.

cd /sys/class/scsi_host
cat */port_name
0x10000000c951148e
0x10000000c951148f
0x10000000c9537434
0x10000000c9537435

For Qlogic cards your path is different. Use /sys/class/fc_host for the path

cd /sys/class/fc_host
cat host3/port_name
cat host4/port_name

Comments

One response to “Linux HBA Stuff”

  1. VJ Avatar
    VJ

    Hi..
    your article was good enough to understand the basics.
    could you please let me know, how to ensure for tape drive because, /sys/class/scsi_host is having configured with proper information.
    thanks

Leave a Reply

Discover more from Chris Paquin

Subscribe now to keep reading and get access to the full archive.

Continue reading