Amanda-Users

Re: error while doing amrecover

2004-06-11 11:02:05
Subject: Re: error while doing amrecover
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Fri, 11 Jun 2004 10:56:10 -0400
On Friday 11 June 2004 12:49, Siim Saarlo wrote:
>Hi ,
>I need help here.
>I am trying to install amanda-2.4.4p2 to backup my system on
> hard-disks. Got it working till amrecover. When I try to extract
> something it gives me following error :
>
>Extracting files using tape drive file:/backup/amanda/daily on host
>localhost.
>Load tape daily-04 now
>Continue [?/Y/n/s/t]? y
>EOF, check amidxtaped.debug file on localhost.
>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]?
>
>
>Output in debug files is :
>
>amidxtaped: debug 1 pid 1350 ruid 87 euid 87: start at Thu Jun 10
>16:49:27 2004
>amidxtaped: version 2.4.4p2
>amidxtaped: time 0.000: > SECURITY USER root
>amidxtaped: time 0.001: bsd security: remote host localhost user
> root local user amanda
>amidxtaped: time 0.001: amandahosts security check passed
>amidxtaped: time 0.001: > CONFIG=daily
>amidxtaped: time 0.001: > LABEL=daily-4
>amidxtaped: time 0.001: > FSF=1
>amidxtaped: time 0.001: > HEADER
>amidxtaped: time 0.001: > DEVICE=file:/home/amandatapes/daily
>amidxtaped: time 0.001: > HOST=^localhost$
>amidxtaped: time 0.001: > DISK=^/home/siim$
>amidxtaped: time 0.001: > DATESTAMP=20040610
>amidxtaped: time 0.001: > END
>amidxtaped: time 0.002: amrestore_nargs=0
>amidxtaped: time 0.002: Ready to execv amrestore with:
>path = /usr/local/sbin/amrestore
>argv[0] = "amrestore"
>argv[1] = "-p"
>argv[2] = "-h"
>argv[3] = "file:/home/amandatapes/daily"
>argv[4] = "^localhost$"
>argv[5] = "^/home/siim$"
>argv[6] = "20040610"
>amrestore: WARNING: not at start of tape, file numbers will be
> offset amrestore: 0: reached end of information
>amidxtaped: time 0.009: amrestore terminated normally with status: 1
>amidxtaped: time 0.009: rewinding tape ...
>amidxtaped: time 0.010: done
>amidxtaped: time 0.010: pid 1350 finish time Thu Jun 10 16:49:27
> 2004
>
>Any ideas?
>Siim

I won't say the docs are full of it, but there are warnings about 
using 'localhost' as a domain name for anything amanda related.  The 
problem is that its non-specific in that every machine is 'localhost' 
to itself.  You MUST use either the FQDN or a known alias or the true 
ip address of the machine in question.  And yes, 127.0.0.1 is just as 
invalid as localhost.

I'm told the newer amcheck will warn you about it, just to keep 
everybody on the same page.  But I've not tested it as I don't use it 
(localhost).

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.23% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.

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