Hi All,
I had a failure of my Amanda index drive. I am now trying to restore some
archives. What I have done so far is the following:
Ran amrestore to get a listing of tape contents
dendron:/mnt/dump_drive/restore# mt -t /dev/nst0 rewind
dendron:/mnt/dump_drive/restore# amrestore /dev/nst0 no.such.host
amrestore: 0: skipping start of tape: date 20050304 label Project223
amrestore: 1: skipping
dendron.l8r.net._mnt_vxa2_scans_c_Seven__Pent22.20050304.0
amrestore: 2: skipping
dendron.l8r.net._mnt_vxa2_scans_c_Seven__Unix.20050304.0
amrestore: 3: skipping
dendron.l8r.net._mnt_vxa2_scans_c_Seven__Pent21.20050304.0
amrestore: 4: skipping
dendron.l8r.net._mnt_vxa2_scans_c_Seven__Final__Sids.20050304.0
amrestore: could not fsf /dev/nst0: Input/output error
determined that what I need is in file
2: dendron.l8r.net._mnt_vxa2_scans_c_Seven__Unix.20050304.0
So I:
mt -t /dev/nst0 rewind
mt -t /dev/nst0 fsf 2
dd if=/dev/nst0 bs=32k count=1
This list the following:
AMANDA: FILE 20050304 dendron.l8r.net /mnt/vxa2/scans/c/Seven_Unix 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... -
So I rewind the tape skip 2 files and then issue:
dd if=/dev/nst0 bs=32k skip=1 | /bin/gzip -dc | /bin/gtar -f ????
I tried various things as substitutes for ???? such as
/mnt/vxa2/scans/c/Seven_Unix and
dendron.l8r.net._mnt_vxa2_scans_c_Seven__Pent22.20050304.0
Results is always an error similar to the following:
/bin/tar: dendron.l8r.net._mnt_vxa2_scans_c_Seven__Unix.20050304.0: Cannot
open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
/bin/tar: Child returned status 2
/bin/tar: Error exit delayed from previous errors
1+0 records in
0+0 records out
0 bytes transferred in 0.021878 seconds (0 bytes/sec)
Any pointer to what I should be putting on the final command line would be
appreciated.
Thanks,
Vytas
Vytas Janusauskas
Dendron Resource Surveys Inc.
880 Lady Ellen Place, Suite 206
Ottawa, Ontario, Canada
K1Z 5L9
Voice: (613) 725-2971
Fax: (613) 725-1716
<mailto:vytas AT dendron DOT com>
|