fibre channel debian problem
Make sure that the devices you see are actually the exposed LUNs and not just the storage subsystem controllers.
Try reading from the sgX device directly. If you're reading from a real disk, you'll see:
# sg_read if=/dev/sg0 bs=512 count=1M mmap=1 time=2
time from second (SCSI) command to end was 3.851212 secs, 139.39 MB/sec
1048576+0 records in, SCSI commands issued: 8192
But a read from an access LUN ought to fail:
# sg_read if=/dev/sg4 bs=512 count=1M mmap=1 time=2
reading: SCSI status: Check Condition
Fixed format, current; Sense key: Illegal Request
Additional sense: Logical block address out of range
Field replaceable unit code: 5
plus...: Driver_status=0x08 [DRIVER_SENSE, SUGGEST_OK]
sg_read: failed, skip=0
Some error occurred, remaining block count=1048576
0+0 records in
Can we see the output of lsscsi -g
?
If we only see the controllers, I expect something like:
[0:0:0:31] disk IBM Universal Xport 0916 -
[1:0:0:31] disk IBM Universal Xport 0916 -
But if the disks are there as well, you should see something like:
[0:0:0:0] disk IBM 1814 FAStT 0916 /dev/sda
[0:0:0:1] disk IBM 1814 FAStT 0916 /dev/sdb
[0:0:0:2] disk IBM 1814 FAStT 0916 /dev/sdd
[0:0:0:31] disk IBM Universal Xport 0916 -
[1:0:0:0] disk IBM 1814 FAStT 0916 /dev/sdc
[1:0:0:1] disk IBM 1814 FAStT 0916 /dev/sde
[1:0:0:2] disk IBM 1814 FAStT 0916 /dev/sdf
[1:0:0:31] disk IBM Universal Xport 0916 -
You don't need multipath setup before you can see the block devices, but you should set it up before you use them.
Once multipath is setup, you should see something like:
3600a0b8000266f7e000026314950d851 dm-0 IBM,1814 FAStT
[size=100G][features=1 queue_if_no_path][hwhandler=1 rdac]
\_ round-robin 0 [prio=6][active]
\_ 1:0:0:2 sdf 8:80 [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 0:0:0:2 sdd 8:48 [active][ghost]