Hi,
On Wed, Sep 05, 2001 at 11:52:37AM -0700, Jeremy Wadsack wrote:
> 
> /usr/local/libexec/chg-scsi -genconf
> 
> and got "/usr/local/libexec/chg-scsi: Usage error."
> 
OK, might that this is not in the 2.4.2p2 version, do you see a way
to get the latest version from cvs ?

> There's also no man entry for chg-scsi. For that matter, 'chg-scsi
> -info' is looking for /dev/sg2 which doesn't exits.

OK, so lets try to figure out where it is.

1. Check if you have the sg (genric scsi) support in your kernel.
   One way is to do an cat /proc/devices | grep sg, you should see
   something like '21 sg'

   If this does not appear try an modprobe sg, if this works continue with step
   2, if not you should recompile your kernel with sg support.

2. Do an cat /proc/scsi/scsi in check if you can see your tape device
   and your library device. 

3. Try chg-scsi -scanbus (i'm not sure that it works :-)

4. From the output of the cat /proc/scsi/scsi you can get the number of the
   changer device, start counting at 0, example
   Host: scsi0 Channel: 00 Id: 01 Lun: 00
     Vendor: EXABYTEE Model: EXB-85058SQANNR1 Rev: 07T0
     Type:   Sequential-Access                ANSI SCSI revision: 02
   Host: scsi0 Channel: 00 Id: 02 Lun: 00
     Vendor: EXABYTE  Model: EXB-210          Rev: 3.11
     Type:   Medium Changer                   ANSI SCSI revision: 02
   Host: scsi1 Channel: 00 Id: 00 Lun: 00
     Vendor: IBM      Model: DDRS-34560       Rev: S97B
     Type:   Direct-Access                    ANSI SCSI revision: 02
   Host: scsi1 Channel: 00 Id: 01 Lun: 00
     Vendor: IBM OEM  Model: 0662S12          Rev: 3 30
     Type:   Direct-Access                    ANSI SCSI revision: 02

   In the above the library ist at /dev/sg1

5. Change your chg-scsi.conf. There is an an option called 
   changerdev, set this to
   changerdev /dev/sg1

   The exabyte library need an eject, so set it to 1.

   I think a sample config should look like

   number_configs 1
   debuglevel 9:0
   eject 1
   sleep 90
   changerdev /dev/sg1

   config 0
   drivenum 0
   dev  /dev/nst0
   startuse 0
   enduse 9
   statfile /usr/local/etc/amanda/daily/tape0-slot      
   cleancart                    # place a cleaning cartridge in this slot
   cleanfile /usr/local/etc/amanda/daily/tape0-clean

6. After this try an amtape daily reset


So i think some things you can try, 


        Thomas
-- 
  -----------------------------------------------
  |  Thomas Hepper        [EMAIL PROTECTED]         |
  |         ( If the above address fail try   ) |
  |         ( [EMAIL PROTECTED])        |
  -----------------------------------------------

Reply via email to