On Wed, Jul 28, 2010 at 1:26 PM, Jonathan Barber
wrote:
# lspci | grep QLogic
0d:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to
PCI Express HBA (rev 03)
0d:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to
PCI Express HBA (rev 03)
# ls -l /sys/class/fc_host/host?/device
lrwxrwxrwx 1 root root 0 Jul 28 11:54 /sys/class/fc_host/host1/device
-> ../../../devices/pci0000:00/0000:00:06.0/0000:0b:00.0/0000:0c:09.0/0000:0d:00.1/host1
lrwxrwxrwx 1 root root 0 Jul 28 11:55 /sys/class/fc_host/host0/device
-> ../../../devices/pci0000:00/0000:00:06.0/0000:0b:00.0/0000:0c:09.0/0000:0d:00.0/host0
(note the 0d:00.0 and 0d:00.1 PCI ID in the symlink targets)
And I believe:
# ls -l /sys/block/*/device
will show you the relationship between the block device and the FC
port you were looking for in d).
I would interpret your missing block devices as being each of your
target HBA seeing only one of the storage controllers, and not both -
but check the output of "ls -l /sys/block/{sdao,sdd}/device" to make
sure.