Amanda-Users

Re: HELP : amlabel - no tape online

2002-09-12 12:32:53
Subject: Re: HELP : amlabel - no tape online
From: Gene Heskett <gene_heskett AT iolinc DOT net>
To: Vivek Singh <stayalv AT yahoo DOT com>, amanda-users AT amanda DOT org
Date: Thu, 12 Sep 2002 12:11:17 -0400
On Thursday 12 September 2002 11:35, 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"

"DailySet1" is the group name thats the default in amanda.conf, and 
you need to also supply a trailing 1 or 2 digit number to complete 
the unique label for each tape, like -1, -2, ... -20.

>
>I get this error:
>
>******************************************************************
>***
>
>labeling tape in slot /etc/amanda/daily/chg-zd-mtx:
>([: too many
>arguments):
>rewinding
>amlabel: no tape online
>
>******************************************************************
>***
>
>I used info from this URL for tape changer
>configuration :
>http://www.soti.org/~soggie/linux/hw/hp-surestore-24x6/
>
>And for other Amanda installation and general
>configuration, I
>followed the guide at:
>
>http://www.frankenlinux.com/guides/amandaserver.html
>
>I have also tested my tape drive using tar commands,
>and it works well
> with the device file /dev/nst0. The changer device
>file shows up as
>/dev/sg1.
>
>Here is the output of the mt status command:
>
>******************************************************************
>****
>
>SCSI 2 tape drive:
>File number=0, block number=0, partition=0
>Tape block size 0 bytes. Density code 0x25 (DDS-3).
>Soft error count since last status=0
>General status bits on (41010000):
> BOT ONLINE IM_REP_EN
>
>******************************************************************
>****
>
>Any help in resolving this problem will be much
>appreciated!
>
>Thanks,
>Vivek
>
>
>
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! News - Today's headlines
>http://news.yahoo.com

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.15% setiathome rank, not too shabby for a WV hillbilly

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