How do I discover what controller and SCSI ids are associated with a SCSI block device?
Updated -
On Red Hat Enterprise Linux 3 and Red Hat Enterprise Linux 4 it is possible to find this out using the sg_map
command present in the sg3_utils
package. It is also necessary to have the sg
module loaded for this to work.
# sg_map -x -sd
/dev/sg0 0 0 0 0 0 /dev/sda
/dev/sg1 0 0 1 0 0 /dev/sdb
/dev/sg2 2 0 0 0 0 /dev/sdc
/dev/sg3 2 0 0 1 0 /de...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.