Amanda-Users

Re: HELP : amlabel - no tape online

2002-09-12 13:19:46
Subject: Re: HELP : amlabel - no tape online
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 12 Sep 2002 12:52:31 -0400
On Thu, Sep 12, 2002 at 08:35:16AM -0700, Vivek Singh wrote:
> Hi,
> 
> I am a newbie to Amanda. I have set up version
> 2.4.2.p2 on a RedHat
> Linux 7.3 system with a HP SureStore 24x6 external
> drive (HP C1557A).
> Installation of amanda went on fine. Here are relevant
> portions from
> the amanda.conf file :
> 
> **************************************************
> *********************
> 
> runtapes 1            # number of tapes to be used in a single
> run of amdump
> tpchanger "/etc/amanda/daily/chg-zd-mtx"      # the
> tape-changer glue
> script
> tapedev "/dev/nst0"   # the no-rewind tape device to be
> used
> rawtapedev "/dev/nst0"        # the raw device to be used
> (ftape only)
> changerfile "/etc/amanda/mtx-changer"
> changerdev "/dev/sg0"
> 
> tapetype HP1557A              # what kind of tape it is (see
> tapetypes below)
> labelstr "^DailySet1-[0-9][0-9][0-9]" # label
> constraint regex: all
> tapes must match
> 
> [....]
> 
> define tapetype HP1557A { 
>     comment "HP SureStore DAT24x6e tape drive" 
>     # data provided by Ivo Clarysse
>     length 12000 mbytes 
>     filemark 111 kbytes 
>     speed 3000 kbytes 
> } 
> 
> **********************************************************************
> 
> I have tried using the mtx-changer command, and can
> eject and load
> individual tapes using it. However, when after all
> configuration was
> done, and I wanted to label a tape using the command:
> 
> su amanda -c "amlabel daily DailySet1"

Note:
    > labelstr "^DailySet1-[0-9][0-9][0-9]"     # label
Your label string says each tape must be labeled with a unique
string after the "word" DailySet1 consisting of a dash and "3" digits.


> 
> I get this error:
> 
> *********************************************************************
> 
> labeling tape in slot /etc/amanda/daily/chg-zd-mtx:
> ([: too many
> arguments):
> rewinding
> amlabel: no tape online
> 
> *********************************************************************

Note that this error is being brought to you by the chg-zd-mtx command.

Almost always, the chg-* scripts will need some tuning for the local
environment.  One mtx version does not print the same string, for the
same type of drive, as the next.

For debugging you can (as amanda-user) cd to the config dir (?daily?).
The run chg-zd-mtx directly to manipulate the changer.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

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