Amanda-Users

RE: test recovery

2003-10-29 00:19:50
Subject: RE: test recovery
From: "Barry Haycock" <bhaycock AT securenet.com DOT au>
To: <amanda-users AT amanda DOT org>
Date: Wed, 29 Oct 2003 16:16:39 +1100
i have run "mt rew" on the tape before doing the recover.

I can read the header using "dd if=/dev/rmt/0 ibs=32k"
And I can read the images on the tape by using 
"amrestore -p /dev/rmt/0 no such_such_host > /dev/null"

I didn't mention this but my tape device is an L20 tape robot which
holds 20 tapes. The tape I want to recover from is loaded into the
driver.

What would the command syntax be if I wanted to use amrestore to recover
a full FS to a different file system for test purposes???

Something like
"amrestore -p /dev/rmt/0 <host_name> <file_system> | ufsrestore -mi"

Barry Haycock
T +61 2 6268 9242
F +61 2 6268 9233
SecureNet Ltd
243 Northbourne Ave
Lyneham ACT 2602

There are 10 types of people in the world. Those that understand binary
and those that don't.

-----Original Message-----
From: Jon LaBadie [mailto:jon AT jgcomp DOT com] 
Sent: Wednesday, October 29, 2003 3:30 PM
To: amanda-users AT amanda DOT org
Subject: Re: test recovery

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>