Amanda-Users

Re: tape spanning problem with 2.5.2-20070523

2007-06-01 10:00:12
Subject: Re: tape spanning problem with 2.5.2-20070523
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: Jean-Francois Malouin <Jean-Francois.Malouin AT bic.mni.mcgill DOT ca>
Date: Fri, 01 Jun 2007 09:55:25 -0400
You can't retrieve the split_file separately, you must concatenate them before untaring.
You can use amfetchdump:
amfetchdump <-p -d /hw/tape/tps21d1nrnsv <config> yorick /data/narsad/narsad1 20070530 | /usr/freeware/bin/tar -tf -

or:
mt -f /hw/tape/tps21d1nrnsv rewind
mt -f /hw/tape/tps21d1nrnsv fsf 1
dd if=/hw/tape/tps21d1nrnsv bs=32k skip=1 > part1
dd if=/hw/tape/tps21d1nrnsv bs=32k skip=1 > part2
cat part1 part2 | /usr/freeware/bin/tar -tf -



Jean-Francois Malouin wrote:
Hi,

Looks like tape spanning is failing. I can't recover
the DLE and looking at the actual content of the tape:

AMANDA: SPLIT_FILE 20070530 yorick /data/narsad/narsad1  part 1/2  lev 1 comp
N program /usr/freeware/bin/tar
AMANDA: SPLIT_FILE 20070530 yorick /data/narsad/narsad1  part 2/2  lev 1 comp
N program /usr/freeware/bin/tar
[...]

# mt -f /hw/tape/tps21d1nrnsv fsf 1
# dd if=/hw/tape/tps21d1nrnsv bs=32k skip=1 | /usr/freeware/bin/tar -tf -
[...]
./analysis/s17/04mm/kadulina_yara_20050727_105815_3_mri_MC.log
./analysis/s17/04mm/kadulina_yara_20050727_105815_3_mri_MC.mnc
./analysis/s17/04mm/kadulina_yara_20050727_105815_4_mri.mnc
327679+0 records in
327679+0 records out
/usr/freeware/bin/tar: Unexpected EOF in archive
/usr/freeware/bin/tar: Error is not recoverable: exiting now

# mt -f /hw/tape/tps21d1nrnsv rewind
# mt -f /hw/tape/tps21d1nrnsv fsf 2
# dd if=/hw/tape/tps21d1nrnsv bs=32k skip=1 | /usr/freeware/bin/tar -tf -
/usr/freeware/bin/tar: This does not look like a tar archive
/usr/freeware/bin/tar: Skipping to next header
/usr/freeware/bin/tar: Archive contains obsolescent base-64 headers
253158+0 records in
253158+0 records out
/usr/freeware/bin/tar: Error exit delayed from previous errors

Any ideas?
jf


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