Amanda-Users

AW: Problem with tape and labeling (archiving)

2005-04-13 05:18:03
Subject: AW: Problem with tape and labeling (archiving)
From: Sebastian Kösters <skoesters AT sino DOT de>
To: "'Gene Heskett'" <gene.heskett AT verizon DOT net>, <amanda-users AT amanda DOT org>
Date: Wed, 13 Apr 2005 11:17:48 +0200
The permissions are ok and the crontab is from the user Amanda. 

I don?t know why this error comes

-----Ursprüngliche Nachricht-----
Von: owner-amanda-users AT amanda DOT org [mailto:owner-amanda-users AT amanda 
DOT org] Im
Auftrag von Gene Heskett
Gesendet: Mittwoch, 13. April 2005 11:01
An: amanda-users AT amanda DOT org
Betreff: Re: Problem with tape and labeling (archiving)

On Wednesday 13 April 2005 04:23, Sebastian  Kösters wrote:
>Hi!
>
>I have a Problem with archiving tapes.
>
>On every Sunday we do a backup on tape but I always get the
> following error:
>
>ERROR: /dev/nst0: reading label: Input/output error
>       (expecting tape DailySet1001 or a new tape)
>NOTE: skipping tape-writable test
>Server check took 0.198 seconds
>
>I wrote a little Script which labels the new tape (via cron).
>
>Script:
>
>#!/bin/bash
>
>#
>#counter + 1
>#
>let zahl=`cat /etc/amanda/counter`;
>let zahl=$zahl+1;
>echo $zahl > /etc/amanda/counter;
>
>#
>#Tape labeln
>#
>counter=`cat /etc/amanda/counter`;
>amlabel -f full-sonntag DailySet$counter;

First mistake I see, is useing DailySet1 above, but just DailySet 
here.

>cron entry:
>
>0 1 * * 0 /etc/amanda/label.sh
>15 1 * * 0 /usr/sbin/amcheck -a full-sonntag
>30 1 * * 0 /usr/sbin/amdump full-sonntag && /usr/sbin/amadmin
> full-sonntag export
>
>Dumptype:
>
>define dumptype high-tar {
>    comment "partitions dumped with tar"
>    priority high
>    program "GNUTAR"
>    index yes
>    strategy noinc
>    dumpcycle 0
>    record no
>}
>
>What must I do to make it work -> Insert new tape - automatic
> labelling - automatic backup - insert next tape ....... ?
>
>Hope someone can help?!
>
>Regards,
>Sebastian

The rest of it looks like it should work if all the scripts are chmod 
+x'd, and that crontab entry is in the (usually the user "amanda") 
users crontab, root's crontab won't work.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.34% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.