Re: error while doing amrecover

2004-06-11 Thread Stefan G. Weichinger
Hi, Siim,

on Freitag, 11. Juni 2004 at 18:49 you wrote to amanda-users:

SS> Hi ,
SS> I need help here.
SS> I am trying to install amanda-2.4.4p2 to backup my system on hard-disks.
SS> Got it working till amrecover. When I try to extract something it gives
SS> me following error :

SS> Extracting files using tape drive file:/backup/amanda/daily on host
SS> localhost.

A common mistake is to use the hostname "localhost".

Please read the localhost-question in the document
docs/TOP-TEN-QUESTIONS in your AMANDA-tarball.

As I have mentioned already the current AMANDA-CVS-version already
contains a patch which will give you a WARNING if you run amcheck and
have something like localhost in your disklist.

This patch will also go into AMANDA 2.4.4p3.

As the regular readers and/or contributors on this list will agree,
this patch will reduce the localhost-centric traffic in here  ...

-- 
best regards,
Stefan

Stefan G. Weichinger
mailto:[EMAIL PROTECTED]







Re: error while doing amrecover

2004-06-11 Thread Gene Heskett
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.


Re: error while doing amrecover

2004-06-11 Thread Paul Bijnens
Siim Saarlo wrote:
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
Besides the "localhost" problem, you have to rewind the tape, even if
it is a virtual tape:
ammt -f file://home/amandatapes/daily rewind
or, alternatively, add these two directives to amanda.conf:
amrecover_do_fsf yes# this implies a rewind
amrecover_check_label yes

--
Paul Bijnens, XplanationTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...*
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out  *
***