Amanda-Users

AW: AW: Problem with tape and labeling (archiving)

2005-04-13 06:15:44
Subject: AW: 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 12:10:29 +0200
The "1" is in the file counter (see Script - 1001, 1002 .....)
DailySet$counter == DailySet1xxx

-----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:52
An: amanda-users AT amanda DOT org
Betreff: Re: AW: Problem with tape and labeling (archiving)

On Wednesday 13 April 2005 05:17, Sebastian  Kösters wrote:
>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;
--------------------------^^^^^^^^?WHERE'S THE 1?

>First mistake I see, is useing DailySet1 above, but just DailySet
>here.
[...]
-- 
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.