Amanda-Users

amrecover "Tape is not a dump tape" but amrestore works?

2006-07-06 13:18:40
Subject: amrecover "Tape is not a dump tape" but amrestore works?
From: "Julian C. Dunn" <lists AT aquezada DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 6 Jul 2006 13:11:33 -0400 (EDT)
Hi,

I'm trying to restore some dumps off a set of tapes, and I'm getting the following error with amrecover:

----8<----
Extracting files using tape drive /dev/nrsa0 on host aphrodite.acf.aquezada.com.Load tape dltbw14 now
Continue [?/Y/n/s/t]? Y
Tape is not a dump tape
extract_list - child returned non-zero status: 1
----8<----

However, running amrestore on one of the candidate tapes seems to get me some dump files that are meaningful:

----8<----
aphrodite:/vol/vol2/babelfish-restore$ sudo amrestore /dev/nrsa0 babelfish
Password:
amrestore:   1: skipping aphrodite.ar0s2e.20060609.1
amrestore:   2: restoring babelfish.ad0s1f.20060609.0

gzip: stdin: decompression OK, trailing garbage ignored
amrestore:   3: restoring babelfish.ad0s1a.20060609.2

gzip: stdin: decompression OK, trailing garbage ignored
amrestore:   4: restoring babelfish.ad0s1d.20060609.1

gzip: stdin: decompression OK, trailing garbage ignored
amrestore:   5: skipping aphrodite.ar0s1h.20060609.1
amrestore:   6: skipping aphrodite.ar0s1a.20060609.0
amrestore:   7: skipping aphrodite.ar0s1e.20060609.2
amrestore:   8: skipping aphrodite.ar0s1g.20060609.2
amrestore:   9: skipping aphrodite.ar0s2h.20060609.0
amrestore:  10: reached end of tape: date 20060612
----8<----

Does anyone have an idea how I might recover these files using something a little less blunt than amrestore?

The tape server is Amanda 2.4.5 and the relevant disklist entries are:

----8<----
babelfish       ad0s1a  comp-root       -1      fxp0
babelfish       ad0s1f  comp-user       -1      fxp0
babelfish       ad0s1d  comp-user       -1      fxp0
----8<----

where "comp-user" is:

----8<----
define dumptype comp-user {
    global
    comment "Non-root partitions on reasonably fast machines"
    compress client fast
    priority medium
}
----8<----

- Julian


[ Julian C. Dunn <jdunn AT aquezada DOT com>  *  "You can throw confetti,   ]
[ WWW: www.aquezada.com/staff/julian   *  but you're still going     ]
[ PGP: 91B3 7A9D 683C 7C16 715F        *  through the motions, baby" ]
[      442C 6065 D533 FDC2 05B9        *                - Aimee Mann ]