Finding HBAs in Linux

The lspci command is a quick way to find just about any storage or network adapter in Linux.  The lspci command will list all PCI buses and any hardware attached to them.  It can be modified using grep to narrow down the results to the type of adapter you're looking for.  For instance, the following command will display all SCSI adapters on most Linux distributions:

lspci |grep -i SCSI

By using a pipe along with grep -i SCSI, we can limit the output to lines containing the word "SCSI".  Specifying -i eliminates case sensitivity, so you'll see results with scsi or SCSI.

BTLSPCI.jpg

To do the same thing with Fibre Channel HBAs, just change SCSI to Fibre.  Note the "proper" spelling of fibre!

lspci | grep -i fibre