Amanda-Users

Re: test recovery

2003-10-28 23:33:41
Subject: Re: test recovery
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Tue, 28 Oct 2003 23:30:06 -0500
On Wed, Oct 29, 2003 at 01:11:12PM +1100, Barry Haycock wrote:
> I have inherited a network of solaris machines backed up by amanda.
> 
> I have no problem backing up the data but would like to perform a test
> recover for my sake. 
> 
> When I use amrecover <config>
> When I try and get the file to restore I get
> 
> 
> amrecover> lcd /data01/temp
> amrecover> add sulog-2003-10-26-0000.gz
> Added /adm/sulog-2003-10-26-0000.gz
> amrecover> extract
> 
> Extracting files using tape drive 0 on host csg905.
> The following tapes are needed: csg-monthly-07
> 
> Restoring files into directory /data01/temp
> Continue [?/Y/n]? y
> 
> Extracting files using tape drive 0 on host csg905.
> Load tape csg-monthly-07 now
> Continue [?/Y/n/s/t]? y
> EOF, check amidxtaped.debug file on csg905.
> amrecover: short block 0 bytes
> UNKNOWN file
> amrecover: Can't read file header
> extract_list - child returned non-zero status: 1
> Continue [?/Y/n/r]? Y
> amrecover> list
> amrecover> ?
> 
> what is causing 
> EOF, check amidxtaped.debug file on csg905.
> amrecover: short block 0 bytes
> UNKNOWN file
> amrecover: Can't read file header
> extract_list - child returned non-zero status: 1
> 
> and how can I fix it I cannot find the debug file mentioned to read the
> problem. The file that I am asking to recover does exist on the tape
> listings.
> 

Just an emperical observation, possibly specific to my hardware.

After I load the requested tape I have to do a manual rewind
using mt, then I run mt "status".  It always seems the first
time I do an mt status the tape is not in a ready state.
So I do a second one and the tape is ready.  Seems to eliminate
"my" failed recovers.


Just to check on the tape, can you:
- successfully run amverify on it
- use dd or amtape to read the tape header
- use dd to read the file header from the first file
- use amrestore to recover the entire DLE rather than
  one file


-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

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