On Thu, 14 Mar 2002, Chris Freeman wrote:

> Hi all,
> I have been using amanda on other servers, and so far have been very
> impressed with its capabilites. However on one particular box I get a
> strange problem. amdump and amcheck run with no complaints or problems,
> but when I go to run amrecover I get the error <must set config host,
> before setting disk> and it does not let me continue. There is no option
> to set confighost, and besides I thought this was set when amrecover is
> executed. <amrecover -C Daily>. Is there anything I am missing? I have
> looked through the archives, but it seems like this isn't a common
> problem. Also the logs do not seem to suggest anything. Does anyone have
> any suggestions as to what is going on here?
> Thanks in advance for any help offered.
> Chris Freeman.
> 
> lgsa:/etc/amanda/Daily# amrecover -C Daily
> AMRECOVER Version 2.4.2p2. Contacting server on localhost ...
> 220 lgsa AMANDA index server (2.4.2p2) ready.
> 200 Access OK
> Setting restore date to today (2002-03-11)
> 200 Working date set to 2002-03-11.
> 200 Config set to Daily.
> 501 No index records for host: lgsa. Invalid?
> Trying lgsa ...
> 501 No index records for host: lgsa. Invalid?
> Trying localhost ...
> 501 No index records for host: localhost. Invalid?
> amrecover> setdisk /home
> 501 Must set config,host before setting disk.
> amrecover>
> 
> # uname -a
> Linux lgsa 2.4.17 #3 Thu Jan 3 00:14:54 EST 2002 i686 unknown
> 

Actually, that's what happens on my server and I just enter the following
commands:

sethost <host_to_restore>  (from disklist entry)
setdisk <partition>

here's an output that I save to remind myself of just that:

AMRECOVER Version 2.4.1p1. Contacting server on fred.quantified.net ...
220 fred AMANDA index server (2.4.1p1) ready.
200 Access OK
Setting restore date to today (2001-01-31)
200 Working date set to 2001-01-31.
200 Config set to daily.
501 No index records for host: fred.quantified.net. Invalid?
Trying fred.quantified.net ...
501 No index records for host: fred.quantified.net. Invalid?
amrecover> sethost ftp
501 No index records for host: ftp. Invalid?
Trying ftp.quantified.net ...
200 Dump host set to ftp.quantified.net.
amrecover> setdisk /dev/sd0g
200 Disk set to /dev/sd0g.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Doug Silver
Network Manager
Quantified Systems, Inc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to