Re: Finding out which SCSI drive is mapped to which device
From: Jean-David Beyer (jdbeyer_at_exit109.com)
Date: 08/02/05
- Next message: Net Nuttt: "Re: Citrix and Linux, Linspire"
- Previous message: Bill Davidsen: "Re: Finding out which SCSI drive is mapped to which device"
- In reply to: Bill Davidsen: "Re: Finding out which SCSI drive is mapped to which device"
- Next in thread: Bill Davidsen: "Re: Finding out which SCSI drive is mapped to which device"
- Reply: Bill Davidsen: "Re: Finding out which SCSI drive is mapped to which device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 01 Aug 2005 21:40:05 -0400
Bill Davidsen wrote:
> Anton Erasmus wrote:
>
>> On Wed, 27 Jul 2005 16:58:20 -0000, Chiefy <lgb@non.existent.invalid>
>> wrote:
>>
>>
>>> 26 Jul 2005 20:04 UTC, Anton Erasmus typed:
>>>
>>>> How can I find out which SCSI ID is mapped to which device ?
>>>
>>>
>>> Have a look at sg3_utils http://sg.torque.net/sg/index.html
>>
>>
>>
>> Thanks,
>>
>> These utilities seem to be for SCSI devices which are not disks, tapes
>> or CD-ROMs. All my SCSI devices are disks. I only need to find out
>> which SCSI ID maps to sda, and which ID to sdb etc.
>
>
> For human information "cat /proc/scsi/scsi" might do
>
It would not do for me:
$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: MAXTOR Model: ATLASU320_18_WLS Rev: B120
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: MAXTOR Model: ATLASU320_18_WLS Rev: B120
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: MAXTOR Model: ATLASU320_18_WLS Rev: B120
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: MAXTOR Model: ATLASU320_18_WLS Rev: B120
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 11 Lun: 00
Vendor: EXABYTE Model: VXA-2 Rev: 2107
Type: Sequential-Access ANSI SCSI revision: 02
The way I find 'em is to look at /var/log/dmesg (or perhaps
/var/log/messages* if I do it soon enough after a reboot) -- the part that
looks like this:
SCSI subsystem driver Revision: 1.00
scsi0 : Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev 1.3.10-RH1
<Adaptec AIC7902 Ultra320 SCSI adapter>
aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI-X 101-133Mhz, 512 SCBs
scsi1 : Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev 1.3.10-RH1
<Adaptec AIC7902 Ultra320 SCSI adapter>
aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI-X 101-133Mhz, 512 SCBs
blk: queue c7dfb618, I/O limit 524287Mb (mask 0x7fffffffff)
(scsi0:A:0): 320.000MB/s transfers (160.000MHz DT|IU|RTI|QAS, 16bit)
(scsi0:A:1): 320.000MB/s transfers (160.000MHz DT|IU|RTI|QAS, 16bit)
(scsi0:A:2): 320.000MB/s transfers (160.000MHz DT|IU|RTI|QAS, 16bit)
(scsi0:A:3): 320.000MB/s transfers (160.000MHz DT|IU|RTI|QAS, 16bit)
(scsi1:A:11): 80.000MB/s transfers (40.000MHz, 16bit)
Vendor: MAXTOR Model: ATLASU320_18_WLS Rev: B120
Type: Direct-Access ANSI SCSI revision: 03
blk: queue c7dfb418, I/O limit 524287Mb (mask 0x7fffffffff)
Vendor: MAXTOR Model: ATLASU320_18_WLS Rev: B120
Type: Direct-Access ANSI SCSI revision: 03
blk: queue c7dfb018, I/O limit 524287Mb (mask 0x7fffffffff)
Vendor: MAXTOR Model: ATLASU320_18_WLS Rev: B120
Type: Direct-Access ANSI SCSI revision: 03
blk: queue c7dfb218, I/O limit 524287Mb (mask 0x7fffffffff)
Vendor: MAXTOR Model: ATLASU320_18_WLS Rev: B120
Type: Direct-Access ANSI SCSI revision: 03
blk: queue c7d49e18, I/O limit 524287Mb (mask 0x7fffffffff)
scsi0:A:0:0: Tagged Queuing enabled. Depth 32
scsi0:A:1:0: Tagged Queuing enabled. Depth 32
scsi0:A:2:0: Tagged Queuing enabled. Depth 32
scsi0:A:3:0: Tagged Queuing enabled. Depth 32
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 <---<<<
Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0 <---<<<
Attached scsi disk sdc at scsi0, channel 0, id 2, lun 0 <---<<<
Attached scsi disk sdd at scsi0, channel 0, id 3, lun 0 <---<<<
SCSI device sda: 35916548 512-byte hdwr sectors (18389 MB)
sda: sda1 sda2 sda3
SCSI device sdb: 35916548 512-byte hdwr sectors (18389 MB)
sdb: sdb1 sdb2
SCSI device sdc: 35916548 512-byte hdwr sectors (18389 MB)
sdc: sdc1 sdc2
SCSI device sdd: 35916548 512-byte hdwr sectors (18389 MB)
sdd: sdd1 sdd2
-- .~. Jean-David Beyer Registered Linux User 85642. /V\ PGP-Key: 9A2FC99A Registered Machine 241939. /( )\ Shrewsbury, New Jersey http://counter.li.org ^^-^^ 21:30:00 up 47 days, 15:23, 3 users, load average: 5.19, 5.21, 5.16
- Next message: Net Nuttt: "Re: Citrix and Linux, Linspire"
- Previous message: Bill Davidsen: "Re: Finding out which SCSI drive is mapped to which device"
- In reply to: Bill Davidsen: "Re: Finding out which SCSI drive is mapped to which device"
- Next in thread: Bill Davidsen: "Re: Finding out which SCSI drive is mapped to which device"
- Reply: Bill Davidsen: "Re: Finding out which SCSI drive is mapped to which device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|