Hi Leif,
Thanks for the quick reply. BTW, I'm using a HP
SureStore
1559C DAT Autoloader Tape Drive DAT24x6e (DDS-3).
I gave your idea a shot and unfortunately I came up
short.
I'm just trying to start with something easy, like
extracting the first file on the tape using the
method you suggested. It has a normal header:
AMANDA: FILE 20020714 vedder.noemix.com /var/mail lev
0 comp .gz program /bin/tar
To restore, position tape at start of file and run:
dd if=<tape> bs=32k skip=1 | /bin/gzip -dc |
bin/tar -f... -
1+0 records in
1+0 records out
-----
Here are the steps I took and the results from the
above amrecover:
> mt -f /dev/nst0 rewind
> mt -f /dev/nst0 fsf 1
amrecover> extract
Extracting files using tape drive /dev/nst0 on host
vedder.noemix.com.
The following tapes are needed: noemix-monthly01
Restoring files into directory /tmp
Continue? [Y/n]: y
Load tape noemix-monthly01 now
Continue? [Y/n]:
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
extract_list - child returned non-zero status: 2
Continue? [Y/n]: y
-----
> more /tmp/amanda/amidxtaped.debug
amidxtaped: debug 1 pid 31931 ruid 2006 euid 2006
start time Mon Jul 15 17:39:52
2002
amidxtaped: version 2.4.2p1
> SECURITY USER root
bsd security: remote host vedder.noemix.com user root
local user amanda
amandahosts security check passed
> 6
amrestore_nargs=6
> -h
> -p
> /dev/nst0
> vedder.noemix.com
> ^/var/mail$
> 20020714
Ready to execv amrestore with:
path = /usr/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-h"
argv[2] = "-p"
argv[3] = "/dev/nst0"
argv[4] = "vedder.noemix.com"
argv[5] = "^/var/mail$"
argv[6] = "20020714"
amrestore: WARNING: not at start of tape, file numbers
will be offset
amrestore: 0: restoring
vedder.noemix.com._var_mail.20020714.0
gzip: stdin: invalid compressed data--format violated
Error 32 (Broken pipe) offset 32768+32768, wrote 0
amrestore: pipe reader has quit in middle of file.
amrestore: skipping ahead to start of next file,
please wait...
amidxtaped: amrestore terminated normally with status:
2
Rewinding tape: done
amidxtaped: pid 31931 finish time Mon Jul 15 17:39:57
2002
-----
Frustrating!!! Did I miss something? Is the
tar/gzip'd data being
corrupted before going onto the tape? I guess the
next thing to try
is to manually copy the file off the tape, then unzip
and untar it
myself. Any body have other ideas?
Thanks,
Terry
--- Leif Gustafson <[EMAIL PROTECTED]> wrote:
> Hi,
> I've had almost exactly the same problem with an
> OnStream drive. The
> only solution I have found is to manually "mt -f
> /dev/xxx fsf xxx" to the
> correct filemark, where xxx is your appropriate
> info. At that point, Amanda
> restores successfully. I'm not sure if it's a
> problem with Amanda or a
> problem with my OnStream driver. Let us know if
> that works!
>
>
> Leif Gustafson
> ----- Original Message -----
> From: "Terry Koyama" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 15, 2002 11:45 AM
> Subject: Garbage in Amanda tape headers
>
>
> > I'm urgently trying to recover some files which
> Amanda
> > isn't
> > giving to me. I started using amrecover and
> > everything was
> > until I hit this:
> >
> > Extracting files using tape drive /dev/nst0 on
> host
> > vedder.
> > The following tapes are needed: tape01
> >
> > Restoring files into directory /tmp
> > Continue? [Y/n]: Y
> >
> > Load tape tape01 now
> > Continue? [Y/n]: Y
> > EOF, check amidxtaped.debug file on vedder.
> > amrecover: short block 0 bytes
> > UNKNOWN file
> > amrecover: Can't read file header
> > extract_list - child returned non-zero status: 1
> > Continue? [Y/n]:
> > amrecover> quit
> > 200 Good bye.
> >
> > -----
> >
> > This is the right tape and I know that Amanda
> knows
> > the files are here
> > because amadmin's find option told me so. I
> looked at
> > amidxtaped.debug.
> >
> > Here's the contents of amidxtaped.debug:
> >
> > amidxtaped: debug 1 pid 27645 ruid 2006 euid 2006
> > start time Mon Jul 15 10:53:35
> > 2002
> > amidxtaped: version 2.4.2p1
> > > SECURITY USER root
> > bsd security: remote host vedder user root local
> user
> > amanda
> > amandahosts security check passed
> > > 6
> > amrestore_nargs=6
> > > -h
> > > -p
> > > /dev/nst0
> > > vedder
> > > ^/usr/local/cvs-public$
> > > 20020714
> > Ready to execv amrestore with:
> > path = /usr/sbin/amrestore
> > argv[0] = "amrestore"
> > argv[1] = "-h"
> > argv[2] = "-p"
> > argv[3] = "/dev/nst0"
> > argv[4] = "vedder"
> > argv[5] = "^/usr/local/cvs-public$"
> > argv[6] = "20020714"
> > amrestore: 0: skipping start of tape: date
> 20020714
> > label tape01
> > amrestore: 1: skipping
> vedder._var_mail.20020714.0
> > amrestore: 2: skipping keenan._etc.20020714.0
> > amrestore: 3: skipping hendrix._home1.20020714.0
> > amidxtaped: amrestore terminated normally with
> status:
> > 0
> > Rewinding tape: done
> > amidxtaped: pid 27645 finish time Mon Jul 15
> 10:53:55
> > 2002
> >
> > -----
> >
> > Only three file systems on this tape? I don't
> think
> > so. Amanda emailed
> > me it's report and said there were 21 file systems
> > dumped (with no
> > errors). This prompted me to look at the tape
> myself
> > and read
> > Amanda's headers using these commands:
> >
> >
> > amanda@vedder:/tmp/amanda> mt -f /dev/nst0 rewind
> >
> > amanda@vedder:/tmp/amanda> mt -f /dev/nst0 fsf 1 ;
> dd
> > if=/dev/nst0 bs=32k count=1
> > AMANDA: FILE 20020714 vedder /var/mail lev 0 comp
> .gz
> > program /bin/tar
> > To restore, position tape at start of file and
> run:
> > dd if=<tape> bs=32k skip=1 | /bin/gzip -dc
> |
> > bin/tar -f... -
> >
> >
> > 1+0 records in
> > 1+0 records out
> >
> > amanda@vedder:/tmp/amanda> mt -f /dev/nst0 fsf 1 ;
> dd
> > if=/dev/nst0 bs=32k count=1
> > AMANDA: FILE 20020714 keenan /etc lev 0 comp .gz
> > program /usr/local/bin/tar
> > To restore, position tape at start of file and
> run:
> > dd if=<tape> bs=32k skip=1 |
> > /usr/local/bin/gzip -dc | usr/local/bin/tar -f...
> -
> >
> >
> > 1+0 records in
> > 1+0 records out
> >
> > amanda@vedder:/tmp/amanda> mt -f /dev/nst0 fsf 1 ;
> dd
> > if=/dev/nst0 bs=32k count=1
> > AMANDA: FILE 20020714 hendrix /home1 lev 0 comp
> .gz
> > program /usr/local/bin/tar
> > To restore, position tape at start of file and
> run:
> > dd if=<tape> bs=32k skip=1 |
> > /usr/local/bin/gzip -dc | usr/local/bin/tar -f...
> -
> >
> >
> > 1+0 records in
> > 1+0 records out
> > mt -f /dev/nst0 fsf 1 ; dd if=/dev/nst0 bs=32k
> count=1
> > AE@D@0@HD 00000504 iz.nmemix.cmm
> > /var/www/htdocs/papers lev 0 comp .gz program
> /bin/tar
> > To restore, position tape at start of file and
> run:
> > dd if=<tape> bs=32k skip=1 | /bin/gzip -dc
> |
> > bin/tar -f... -
> >
> >
> > 1+0 records in
> > 1+0 records out
> >
> > amanda@vedder:/tmp/amanda> mt -f /dev/nst0 fsf 1 ;
> dd
> > if=/dev/nst0 bs=32k count=1
> > AMANDA: FILE 20020714 marley /etc lev 0 comp .gz
> > program /bin/tar
> > To restore, position tape at start of file and
> run:
> > dd if=<tape> bs=32k skip=1 | /bin/gzip -dc
> |
> > bin/tar -f... -
> >
> >
> > 1+0 records in
> > 1+0 records out
> >
> >
> > <snip>
> >
> >
> > amanda@vedder:/tmp/amanda> mt -f /dev/nst0 fsf 1 ;
> dd
> > if=/dev/nst0 bs=32k count=1
> > AMANDA: FILE 20020714 vedder /usr/local/cvs-public
> lev
> > 0 comp .g pbgb`a "`h.$``D `apdb`$ `ca``in ```
> `
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com