Amanda-Users

Re: /dev/sg4 no such device

2003-06-20 12:11:28
Subject: Re: /dev/sg4 no such device
From: "Tom Brown" <tom.brown AT goodtechnology DOT com>
To: <gene.heskett AT verizon DOT net>
Date: Fri, 20 Jun 2003 17:06:20 +0100 (BST)
> Has that kernel been recompiled to 'scan all luns'?

it was yes - and it is now running on 2.4.28

>>dmesg says
> There should be a few more lines below the above clip that show what
> st* devices were assigned.  From the above, I'd guess the changer
> device is now /dev/sg3 maybe.  Experiment a bit, using mtx, and use
> whichever device mtx can use to control the robotics.
>
> Those extra lines in dmesg should look a bit like this:
> ----
> st: Version 20020805, bufsize 32768, wrt 30720, max init. bufs 4, s/g
> segs 16
> Attached scsi tape st0 at scsi0, channel 0, id 1, lun 0
> ~~~~~~~~~~~~~~~~~~~^^^~~~~^^^^^~~~~~~~~~~^~~~~~^~~~~~~^
> Attached scsi generic sg1 at scsi0, channel 0, id 1, lun 1,  type 8
> ~~~~~~~~~~~~~~~~~~~~~~^^^~~~~~~~~~~~~~~~~~~~^~~~~~^~~~~~~^~~~^^^^^^

they are...

scsi0:A:0:0: Tagged Queuing enabled.  Depth 253
scsi0:A:1:0: Tagged Queuing enabled.  Depth 253
scsi0:A:2:0: Tagged Queuing enabled.  Depth 253
st: Version 20020205, bufsize 32768, wrt 30720, max init. bufs 4, s/g segs 16
Attached scsi tape st0 at scsi0, channel 0, id 3, lun 0
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
SCSI device sda: 17850000 512-byte hdwr sectors (9139 MB)
Partition check:
 sda: sda1 sda2 sda3 sda4 < sda5 >
SCSI device sdb: 35843670 512-byte hdwr sectors (18352 MB)
 sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 >
SCSI device sdc: 35843670 512-byte hdwr sectors (18352 MB)
 sdc: sdc1 sdc2 sdc3 sdc4 < sdc5 sdc6 >
Attached scsi generic sg4 at scsi0, channel 0, id 4, lun 0,  type 8

i recompiled again and now it works - it was on /dev/sg4... must have been
a bad build perhaps

$ mtx -f /dev/sg4 status
  Storage Changer /dev/sg4:1 Drives, 9 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 2 Loaded):VolumeTag =
      Storage Element 1:Full :VolumeTag=
      Storage Element 2:Empty:VolumeTag=
      Storage Element 3:Full :VolumeTag=
      Storage Element 4:Full :VolumeTag=
      Storage Element 5:Full :VolumeTag=
      Storage Element 6:Full :VolumeTag=
      Storage Element 7:Full :VolumeTag=
      Storage Element 8:Empty:VolumeTag=
      Storage Element 9:Empty:VolumeTag=

Tom



<Prev in Thread] Current Thread [Next in Thread>