You need to change your firstslot=0 to firstslot=1.  The "Slots" that
the changer.conf file is referring to are listed as "Storage Elements" when 
you do an mtx status.  They go from 1 to 8.  


On Tuesday 26 June 2001 03:29 pm, you wrote:
> Well I've made it a little further now.  Atleast I can run different
> commands and not get immediate errors.  When I try to run amtape show I get
> errors.  Below is a dump of the logs from /tmp.  Any thoughts from anyone?
>
> bash-2.04$ /usr/sbin/amtape DailySet1/ show
> amtape: scanning all 7 slots in tape-changer rack:
> amtape: could not load slot /usr/lib/amanda/chg-zd-mtx:: [: =: unary
> operator expected
>
> bash-2.04$ less /tmp/amanda/amtape.20010626133019.debug
> amtape: debug 1 pid 14016 ruid 33 euid 33 start time Tue Jun 26 13:30:19
> 2001 changer: got exit: 0 str: 0 7 1
> changer: got exit: 2 str: /usr/lib/amanda/chg-zd-mtx: [: =: unary operator
> expected
> could not load slot /usr/lib/amanda/chg-zd-mtx:: [: =: unary operator
> expected amtape: pid 14016 finish time Tue Jun 26 13:30:21 2001
>
> bash-2.04$ less /tmp/amanda/changer.debug.drive0
> Tue Jun 26 13:30:20 EDT 2001 Invoked with args '-info'
> STATUS -> currently loaded slot = -1
> INFO -> current slot -1, last slot 7, can go backwards 1
> Tue Jun 26 13:30:20 EDT 2001 Invoked with args '-slot current'
> STATUS -> currently loaded slot = -1
> LOADSLOT -> load tape from slot current
>           -> loading tape from slot  to /dev/nst0
>           -> status 1, result 'mtx: No source specified'
>
> Also my amanda.conf:
>
> runtapes 1              # number of tapes to be used in a single run of
> amdump tpchanger "chg-zd-mtx"  # the tape-changer glue script
> tapedev "/dev/nst0"     # the no-rewind tape device to be used
> rawtapedev "/dev/null"  # the raw device to be used (ftape only)
> #changerfile "/var/lib/amanda/DailySet1/changer"
> #changerfile "/var/lib/amanda/DailySet1/changer-status"
> changerfile "/etc/amanda/DailySet1/changer"
> changerdev "/dev/sg4"
>
> And changer.conf
>
> firstslot=0             #### 1st tape slot
> lastslot=7             #### Last tape slot
> cleanslot=7             #### Slot with cleaner tape
>
>    # Do you want to clean the drive after a certain number of accesses?
>    # NOTE - This is unreliable, since 'accesses' aren't 'uses', and we
>    #        have no reliable way to count this. A single amcheck could
>    #        generate as many accesses as slots you have, plus 1.
>    # ALSO NOTE - many modern tape loaders handle this automatically.
>
> AUTOCLEAN=0             #### Set to '1' or greater to enable
>
> autocleancount=99       #### Number of access before a clean.
>
> havereader=0            #### If you have a barcode reader, set to 1.
>
> offlinestatus=0         #### Set to 0 if 'mt status' gives an
>                          #### "offline" when drive is offline.
>                          #### Set to 1 or greater if 'mt status'
>                          #### doesn't give and offline, rather an
>                          #### "ONLINE" when drive is online.
>
> OFFLINE_BEFORE_UNLOAD=0 #### Does your tape driver require a
>                          #### 'mt offline' before mtx unload?
>
> At Tuesday 6/26/2001 12:31 PM, Aaron Smith wrote:
> >         It looks good!  Though I believe you'll need to drop the
> >.conf off the changerfile entry, otherwise Amanda will look for
> >/etc/amanda/DailySet1/changer.conf.conf and not find it.  As for
> >an example config file, there is one in the comments at the top
> >of the chg-zd-mtx script itself.

-- 
------------------------------------------------------
Aaron Smith             vox: 616.226.9550       
Network Director        fax: 616.349.9076       
Nexcerpt, Inc.          [EMAIL PROTECTED]

Reply via email to