On Mon, Aug 05, 2002 at 08:47:10PM -0500, Ben Lutgens wrote:
> When I run
> # amrestore -p /dev/nst0 samba2 vg0/lv0 | tar -xv
>
> I get:
>
> amrestore: 0: skipping start of tape: date 20020704 label Daily-05
> amrestore: 1: skipping samba2.hda3.20020704.0
> amrestore: 2: skipping homer.hda1.20020704.0
> amrestore: 3: restoring samba2.vg0_lv0.20020704.1
> tar: This does not look like a tar archive
> tar: Skipping to next header
> tar: Error exit delayed from previous errors
> root@homer:/home/scratch/restore# ls
>
> Any ideas?
0) Unless I'm mistaken, samba2.vg0_lv0.20020704.1 is a level 1
incremental for vg0/lv0. If that's right, did the level 0
amrestore ok?
1) Check the amdump log for date 20020704 label Daily-05 to make
sure there's nothing interesting. Check the index, also.
2) When I'm in trouble of this sort (I've battled the infamous Solaris
ufsdump "next volume" problem in the past), I always amrestore to
disk so I can look at the file by hand and see what I've got. If
I've got a bad tape or other sort of clobbered data, it makes it a
little more obvious.
Similarly you can dd the file in, compression (if any) and all; as
docs/RESTORE says, and if I'm guessing right from the amrestore
dialog above, something like:
% setenv TAPE /dev/nst0
% mt fsf 3
% dd if=$TAPE bs=32k skip=1 > tapefile.3
And try gunzip (if appropriate) and tar on that.
3) You're sure you're using the same tar that amanda is?
Good luck!
--
Jay Lessert jay_lessert AT accelerant DOT net
Accelerant Networks Inc. (voice)1.503.439.3461
Beaverton OR, USA (fax)1.503.466.9472
|