Hello Friends,
I have one linux box where I have three Fiber Channel Cards (dual ports) attached. And I have four Tape Drives attached to these. How do I know to which physical ports on these cards is these tape drives attached ?
I understand The Fiber Channel Card in itself is identified as a device and the tape drives attached to the same will be identified as a child device (Correct me if I am wrong). If I have explain too much about my doubt. Here is my doubt in a single sentance.
How do I identify the physical port on my Fiber Channel Card to which my tape drives are attached ?
I am herewith pasting lspci / lsscsi and dmesg outputs for your reference. Kindly request you all to help me understand the mechanism by which the OS identifies the phyical devices attached ? Please explain one more thing as to what those numbers at the start of each line,seperated by Colon denotes and how to interpret them ?
# lspci |grep -i fibre
04:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
04:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
05:00.0 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
05:00.1 Fibre Channel: Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter (rev 02)
85:01.0 Fibre Channel: Emulex Corporation Helios-X LightPulse Fibre Channel Host Adapter (rev 01)
85:01.1 Fibre Channel: Emulex Corporation Helios-X LightPulse Fibre Channel Host Adapter (rev 01)
# dmesg |grep -i tape
st 1:0:0:0: Attached scsi tape st0
st 2:0:0:0: Attached scsi tape st1
st 2:0:1:0: Attached scsi tape st2
st 4:0:0:0: Attached scsi tape st3
# lsscsi |grep tape
[1:0:0:0] tape IBM ULT3580-TD5 CBX0 /dev/st0
[2:0:0:0] tape IBM ULT3580-TD5 CBX0 /dev/st1
[2:0:1:0] tape IBM ULT3580-TD5 CBX0 /dev/st2
[4:0:0:0] tape IBM ULT3580-TD5 CBX0 /dev/st3
Looking forward to hear from the experts.
Thanks and Regards
Nidhin Tomson