Amanda-Users

Problems manually restoring from tape

2004-02-29 15:36:19
Subject: Problems manually restoring from tape
From: Chris Cameron <chris AT upnix DOT com>
To: amanda-users AT amanda DOT org
Date: Sun, 29 Feb 2004 13:23:49 -0700
Hello all,

Just started playing with Amanda this weekend, and things have gone very
well. Being concerned about my ability to restore from tape should I not
have amrestore (or any of the files needed for it to run), I've been
playing around to make sure that I'd be able to restore in a crunch.


In short, my problem is I can't seem to find certain spots in a tape
used by Amanda.

According to my Amanda mail report, 13 file systems were dumped at a
level of 0. When I try to restore one of the file systems that are
further down the tape, I see:

</opt/amanda/sbin> $ ./amrestore /dev/rmt/1n prod2 '/md/dsk/d5'
amrestore:   0: skipping start of tape: date 20040228 label W1Fri
amrestore:   1: skipping devl2._dev_md_dsk_d5.20040228.0
amrestore:   2: skipping prod2._dev_md_dsk_d1.20040228.0
amrestore:   3: skipping gate2._dev_md_dsk_d1.20040228.0
amrestore:   4: skipping gate2._dev_md_dsk_d3.20040228.0
amrestore:   5: skipping prod2._dev_md_dsk_d3.20040228.0
amrestore:   6: skipping gate2._dev_md_dsk_d2.20040228.0
amrestore:   7: skipping gate2._dev_md_dsk_d4.20040228.0
amrestore:   8: skipping devl2._dev_md_dsk_d0.20040228.0
amrestore:   9: skipping prod2._dev_md_dsk_d4.20040228.0
amrestore:  10: restoring prod2._dev_md_dsk_d5.20040228.0



Which is good. However, after rewinding the tape, if I try to manually
restore that filesystem (without amrestore), I see:

</opt/amanda/sbin> $ mt -f /dev/rmt/1 rewind
</opt/amanda/sbin> $ dd if=/dev/rmt/1n bs=32k skip=10 |
/usr/sbin/ufsrestore -if -
Verify volume and initialize maps
dd: cannot skip past end-of-file
Volume is not in dump format
</opt/amanda/sbin> $



I've also tried the script listed in the documentation, and it too
doesn't make it very far:

# TAPEDEV=/dev/rmt/1n
# while mt -f $TAPEDEV fsf 1 ; do
> dd if=$TAPEDEV bs=32k count=1 | head -1
> sleep 1
> done
AMANDA: FILE 20040228 devl2 /dev/md/dsk/d5 lev 0 comp N program
/usr/sbin/ufsdump
AMANDA: FILE 20040228 gate2 /dev/md/dsk/d1 lev 0 comp N program
/usr/sbin/ufsdump
AMANDA: FILE 20040228 prod2 /dev/md/dsk/d3 lev 0 comp N program
/usr/sbin/ufsdump
AMANDA: FILE 20040228 gate2 /dev/md/dsk/d4 lev 0 comp N program
/usr/sbin/ufsdump
AMANDA: FILE 20040228 prod2 /dev/md/dsk/d4 lev 0 comp N program
/usr/sbin/ufsdump
AMANDA: FILE 20040228 devl2 /dev/md/dsk/d6 lev 0 comp N program
/usr/sbin/ufsdump
AMANDA: FILE 20040228 devl2 /dev/md/dsk/d8 lev 0 comp N program
/usr/sbin/ufsdump
0+0 records in
0+0 records out
/dev/rmt/1n fsf 1 failed: I/O error


Going off amrestores output, it seems like it's skipping every other
dump, and I'm not sure why it'd be doing that or how to stop it.



So, anyone know how I can get dd to see all the dumped file systems?


Many thanks,
Chris

-- 
Chris Cameron
UpNIX Internet Administrator
ardvark.upnix.net
gak.upnix.net
--
http://www.upnix.com


<Prev in Thread] Current Thread [Next in Thread>