Amanda-Users

Re: Problem with tape and labeling (archiving)

2005-04-13 07:34:02
Subject: Re: Problem with tape and labeling (archiving)
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Sebastian Kösters <skoesters AT sino DOT de>
Date: Wed, 13 Apr 2005 13:27:12 +0200
Sebastian Kösters wrote:

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

Why do you get an IO error here?
Probably that's the cause of the failure.


       (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).


I hope you really know what you're doing.

The idea of labelling a tape is to avoid that you accidently
overwrite a good tape.

Normally you have to label a tape only once: when you unpack it
from the shrink-wrapped package.  At that time, it is assumed
that you have drunk enough coffee, and have had enough sleep
to not make errors when labelling tapes.  After that time, amanda
takes over the  responsability of checking for the correct tape.

By blindly labeling any tape that is found in the drive at night,
you completely drop this safety boundary.

Then: your crontab:

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


The command amcheck is intented to be run during the day and warn you
early of any problems.   At that time you're still there to solve
them.  What is the use of running amcheck in the middle of the night
15 minutes before doing the real dump?

Of course, I'm assuming you work during the day, and sleep in the night.


--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************