Amanda-Users

Re: problem labelling tapes

2003-10-08 04:07:47
Subject: Re: problem labelling tapes
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Tony <td_miles AT yahoo DOT com>
Date: Wed, 08 Oct 2003 10:04:05 +0200
Tony wrote:


amcheck-server: strange amanda header: "AMANDA: T"
ERROR: /dev/nst0: not an amanda tape
       (expecting tape daily01tue or a new tape)


This seems to me like a blocksize problem. (Not 100% sure,
because your blocksize seems to be 9 bytes!?!??, very uncommon.)

As long as the read blocksize, the write blocksize and the
tape blocksize is the same, you won't notice any problem.
You can configure a tape driver with fixed blocksizes on tape;
but when doing this, the behavior of different OS'es when reading
or writing such tapes is quiet different (and still not clear
to me!).

When reading a tape, it usually works if your read blocksize is
at least as big as the tape blocksize.   When writing a tape,
different OS'es do different things: split the buffer over different
blocks, or even simply trowing away the excess bytes!
What happens with the padded bytes in the last block is even more
unclear.

To avoid all the confusion, I usually use variable blocksize on tape
(indicated by a zero), and let amanda use it's default blocksize
of 32Kbytes on such tapes.

What is the current blocksize of your tape?  Try:
  mt -f /dev/st0 status

And set it to variable blocksize with:
  mt -f /dev/st0 blocksize 0

For Linux, you should configure the blocksize (and compression) defaults
for your tapedrives in the file /etc/stinit.def.
Finding a decent explanation of the contents of that file is still
on my todo list.  Google around for "stinit.def amanda" and it will
show up some interesting pages.

--
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          *
***********************************************************************