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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.