> What version of Amanda?

Version 2.4.2p2

> What happens if you do this (as the Amanda user):
>
>   cd <directory-with-amanda.conf>
>   /usr/local/libexec/chg-zd-mtx -reset
>   /usr/local/libexec/chg-zd-mtx -slot 4

Doesn't work either...   :(
I've been doing some debugging following the chg-zd-mtx script line by 
line, and I found that it gets crazy when looking into the 
changer-barcode file. This file only contains the label for the first 
tape. I really don't know what should be in this file (this changer has 
barcode reader support), the script is looking for a labelname and a 
second word (with an awk parsing), and as there's no second word one of 
the variables is empty and gives me an error. I guess I should have a 
list of all my labels and a barcode code for each label, but I don't 
know how to generate that or if I have to do it manually.

> Depending on what version of Amanda you're using, there should be a
> debug file named /tmp/amanda/changer.debug.drive$drivenum changer.debug
> (in either /tmp or /tmp/amanda).  What's in it (you may want to zero it
> out before doing the above -- it just keeps getting appended to)?

This is what I have in the changer.debug.drive0 file:
(I've been doing some testings, don't know if will help)

Thu Jul 26 17:27:55 CDT 2001 Invoked with args '-reset'
Thu Jul 26 17:27:55 CDT 2001 Invoked with args '-eject'
STATUS -> currently loaded slot = 7
EJECT -> ejecting tape from /dev/rmt/0bn to slot 7
RESET -> loading tape from 1st slot (1) to /dev/rmt/0bn
Thu Jul 26 17:29:39 CDT 2001 Invoked with args '-slot 8'
STATUS -> currently loaded slot = 1
LOADSLOT -> load tape from slot 8
Thu Jul 26 17:32:10 CDT 2001 Invoked with args '-info'
STATUS -> currently loaded slot = 8
INFO -> current slot 8, last slot 8, can go backwards 1
Thu Jul 26 17:32:10 CDT 2001 Invoked with args '-search WT1008'
STATUS -> currently loaded slot = 8
LOADSLOT -> load tape from slot 8
Thu Jul 26 17:32:11 CDT 2001 Invoked with args '-slot current'
STATUS -> currently loaded slot = 8
LOADSLOT -> load tape from slot current
Thu Jul 26 17:32:31 CDT 2001 Invoked with args '-slot next'
STATUS -> currently loaded slot = 8
LOADSLOT -> load tape from slot next
          -> unload 8 from /dev/rmt/0bn
Thu Jul 26 17:34:36 CDT 2001 Invoked with args '-info'
STATUS -> currently loaded slot = 8
INFO -> current slot 8, last slot 8, can go backwards 1
Thu Jul 26 17:34:37 CDT 2001 Invoked with args '-search WT1008'
STATUS -> currently loaded slot = 8
LOADSLOT -> load tape from slot 8
Thu Jul 26 17:34:38 CDT 2001 Invoked with args '-slot current'
STATUS -> currently loaded slot = 8
LOADSLOT -> load tape from slot current
Thu Jul 26 17:34:58 CDT 2001 Invoked with args '-slot next'
STATUS -> currently loaded slot = 8
LOADSLOT -> load tape from slot next
          -> unload 8 from /dev/rmt/0bn
Thu Jul 26 22:00:39 CDT 2001 Invoked with args '-info'
STATUS -> currently loaded slot = -1
INFO -> current slot -1, last slot 8, can go backwards 1

Thanks for your time, I appreciate.
Regards,

Ignacio Tripodi

Reply via email to