Amanda-Users

Re: /dev/sg4 no such device

2003-06-20 12:05:54
Subject: Re: /dev/sg4 no such device
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: tom.brown AT goodtechnology DOT com, <amanda-users AT amanda DOT org>
Date: Fri, 20 Jun 2003 12:01:49 -0400
On Friday 20 June 2003 11:12, Tom Brown wrote:
>Hi,
>
>I have just transferred my kit over to the production env. All was
> working fine on dev.
>
>This is on a RedHat machine with a 2.4.18 kernel and amanda 2.4.4

Has that kernel been recompiled to 'scan all luns'?

>dmesg says
>
>scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.4
>        <Adaptec 2940 Ultra SCSI adapter>
>        aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs
>
>  Vendor: IBM       Model: DDRS-39130W       Rev: S97B
>  Type:   Direct-Access                      ANSI SCSI revision: 02
>(scsi0:A:0): 20.000MB/s transfers (10.000MHz, offset 8, 16bit)
>  Vendor: IBM       Model: DDYS-T18350N      Rev: S80D
>  Type:   Direct-Access                      ANSI SCSI revision: 03
>(scsi0:A:1): 20.000MB/s transfers (10.000MHz, offset 8, 16bit)
>  Vendor: IBM       Model: DDYS-T18350N      Rev: S80D
>  Type:   Direct-Access                      ANSI SCSI revision: 03
>(scsi0:A:2): 20.000MB/s transfers (10.000MHz, offset 8, 16bit)
>  Vendor: IBM       Model: ULTRIUM-TD1       Rev: 1CSG
>  Type:   Sequential-Access                  ANSI SCSI revision: 03
>(scsi0:A:3): 20.000MB/s transfers (10.000MHz, offset 8, 16bit)
>  Vendor: NEC       Model: LL0101H-0A        Rev: 0002
>  Type:   Medium Changer                     ANSI SCSI revision: 02
>
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
~~~~~~~~~~~~~~~~~~~~~~^^^~~~~~~~~~~~~~~~~~~~^~~~~~^~~~~~~^~~~^^^^^^

>and /dev/sg* says
[snip]
>but
>
>$ mtx -f /dev/sg4 status
>cannot open SCSI device '/dev/sg4' - No such device
>
>?
>
>the amanda user is in the disk group?
>
>any thoughts
>
>Tom

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.26% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.


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