>> ...  The first time I extract I get
>> 
>>     amrecover: Can't read file header
>>     extract_list - child returned non-zero status: 1
>> 
>> But then, without exiting I "add" and "extract" the file again.  This
>> time it works.  ...
>
>You need to rewind the tape before doing the recover.

Chris is right.  Here's a little more of what's going on behind the
scenes:

  * When amdump (taper) completes, it leaves the tape where it left off
    (at the end).  In theory you could use this to tack on some non-Amanda
    dump information to the tape, although that can be tricky.

  * Amidxtaped (called by amrecover) does **not** do any tape positioning
    before trying to read the image.  This is so you can do the motion
    yourself on devices that fsf much faster than read/scan.

    The combination of these first two items probably gave you your
    initial error.

  * Amidxtaped *does* rewind the tape when it completes (even if there
    was an error), the theory being that if you need to do another restore
    from the same tape it will be in a known position to start from.

    This is probably why it worked the second time for you.

Personally, I run a wrapper shell script around amdump and one of the
things it does is unload any tape amdump writes to.  So whenever I'm
doing a restore, I have to mount the requested tape and therefor it's
at a known position.

I also always position the tape myself to do a restore (rewind followed
by an appropriate fsf) because it's much faster on the types of drives
I have.

>>  --a
>  [EMAIL PROTECTED]

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to