Scott Frisbie wrote:
I've been trying to run amrestore with the following command and I've
been getting lots of these errors:
amrestore /dev/nst0 SERVER_NAME
amrestore: strange amanda header: "AMANDA: FILE 20040810
SERVER_NAME /etc lev 1 comp"N program /bin/gtar"
amrestore: WARNING: not at start of tape, file numbers will be offset
Is this the exact error message? Or are there ctrl-M's that fold part
of the line onto the previous one (that double quote in the middle
of the string 'comp"N' is strange!).
Or is the header broken off after the letter "p" in "comp"?
To verify just the headers do:
TAPEDEV=/dev/nst0
mt -f $TAPEDEV rewind
while mt -f $TAPEDEV fsf 1 ; do
dd if=$TAPEDEV bs=32k count=1 | tr -d '\0'
echo "===="
sleep 1
done
To avoid the second warning "not at start of tape", always rewind
the tape before starting amrestore (or position it just before
the needed image with "mt fsf" and than you know that warning is
expected).
after which amrestore stops and I run the the command again to get
the
error message for the next file on the tape. I occasionally get
amrestore: 0: restoring SERVER_NAME._path_to_file.20040810.1
amrestore: 1: skipping OTHER_SERVER1._path_to_files.20040810.0
amrestore: 2: skipping OTHER_SERVER2._path_to_files.20040810.1
before getting one of the 'strange amanda header' errors, but it's
kind
of rare. Is this a sign of tapes going bad? Is there some config file
that
needs to be fixed? Is there a better way to get the data off the
tapes?
--
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 *
***********************************************************************
|