How to find out more information on all scsi devices

Here another quick tip:  To find out all information on scsi devices linux see’s use this command:

cat /proc/scsi/scsi

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA      Model: WDC WD2500JB-22R Rev: 20.0
Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: ATA      Model: WDC WD3200JB-00K Rev: 08.0
Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: ATA      Model: Hitachi HDP72505 Rev: GM4O
Type:   Direct-Access                    ANSI  SCSI revision: 05

Or if you want to only see the fiber channel:

cd /proc/scsi/qla2xxx   (assuming you are using a qlogic fiber card)

cat 1

cat 2

You may see different numbers under this directory representing the HBA’s this is a great way to check that your adapters see the same storage.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.