Hi Jean-Louis,
Please see inline.
Jean-Louis Martineau wrote:
What's in your changer config file?
-sh-3.2$ more changer.conf
changerdev=/dev/sg3
havereader=1
offline_before_unload=1
OFFLINE_BEFORE_UNLOAD=1
poll_drive_ready=10
Max_drive_wait=99
unloadpause=20
driveslot=0
What's the output of : mtx -f /dev/sg? status
MTX looks fine:
-sh-3.2$ mtx -f /dev/sg3 status
Storage Changer /dev/sg3:1 Drives, 16 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded)
Storage Element 1:Empty
Storage Element 2:Empty
Storage Element 3:Empty
Storage Element 4:Empty
Storage Element 5:Empty
Storage Element 6:Empty
Storage Element 7:Empty
Storage Element 8:Empty
Storage Element 9:Empty
Storage Element 10:Empty
Storage Element 11:Empty
Storage Element 12:Empty
Storage Element 13:Empty
Storage Element 14:Empty
Storage Element 15:Empty
Storage Element 16:Empty
What's in the debug file?
-sh-3.2$ more changer.debug
Args -> -slot advance
-> loaded -1
Exit -> 0 /dev/null
Args -> -slot advance
-> loaded -1
Exit -> 0 /dev/null
Args -> -slot advance
-> loaded -1
Exit -> 0 /dev/null
Args -> -info
-> info -1
Exit -> 0 5 1
Args -> -slot current
-> loaded -1
Exit -> 1 /dev/nst0
Args -> -slot next
-> loaded -1
-> load 0
-> status 1
-> result
Exit -> 0
arguments -> -info
Exit -> <none> chg-multi: firstslot not specified in
/etc/amanda/dailyfull/chang
er.conf
arguments -> -info
Exit -> <none> chg-multi: firstslot not specified in
/etc/amanda/dailyfull/chang
er.conf
arguments -> -info
Exit -> <none> chg-multi: firstslot not specified in
/etc/amanda/dailyfull/chang
er.conf
arguments -> -info
Exit -> <none> chg-multi: firstslot not specified in
/etc/amanda/dailyfull/chang
er.conf
Args -> -info
-> info -1
Exit -> 0 5 1
Args -> -slot current
-> loaded -1
Exit -> 1 tape:/dev/nst0
Args -> -slot next
-> loaded -1
-> load 0
-> status 1
-> result
Exit -> 0
So, it would appear that I need to specify firstslot in my changer.conf.
BUT when I do that, it sees 16 slots, but calls them all "slot 1" and
the changer.debug has no output:
-sh-3.2$ amtape dailyfull show
amtape: scanning all 16 slots in tape-changer rack:
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
slot 1: time X label week1tape1
And when I try to change to the next slot:
-sh-3.2$ amtape dailyfull slot next
amtape: changed to slot 1 on tape:/dev/nst0
-sh-3.2$ amtape dailyfull slot next
amtape: changed to slot 1 on tape:/dev/nst0
-sh-3.2$
I'm stumped. mtx and mt work fine.
Thanks for your help with this, and thank you for your continued work on
amanda, it is a wonderful suite of programs.
-Nick
Jean-Louis
Nicholas Brockner wrote:
Hi All,
I have been banging my head against this all day:
I have a superloader3 16 slot LTO3 unit I am trying to set up. For
some reason, the glue script only sees one slot (slot 1):
-sh-3.2$ /usr/libexec/amanda/chg-zd-mtx -info
1 1 1 1
-sh-3.2$ amtape dailyfull show
amtape: scanning all 1 slots in tape-changer rack:
slot 1: time X label week1tape1
I am using 2.6.0p2 on Centos 5.2.
any ideas?
-Nick
|