Amanda-Users

Re: How does the amanda server identify itself to clients?

2004-02-06 16:10:48
Subject: Re: How does the amanda server identify itself to clients?
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Michael Kahle <michael.kahle AT scc-wi DOT com>
Date: Fri, 06 Feb 2004 22:07:41 +0100
Michael Kahle wrote:

The discussion about the hard coded stuff is an old one.

How old? You would think this would be a fairly high priority fix for newer versions.

The stuff that's hardcoded is actually not blocking in your case.
There are command line options to change your default server,
and what you put in .amandahost is your own responsibility.

From a packagemanager's point of view, it's difficult to suggest
what else to put as the hostname.
Considering that most packages are first installed on one test
computer to try it out and see what it does, it's supposed to work
on e.g. a standalone computer.
Many computers are installed with "localhost.localdomain" as
name.  And even if it is called otherwise, the choice "localhost"
works always in the playground case where server and client are
one and the same system.

Once an adminstrator decides to rollout amanda, even then is
the hardcoded name "localhost" not a blocking factor, because
in .amandahost he can specify the real DNS name of the amanda
server (and on the server the DNS names for clients needed if
you want to allow remote restores).  Amrestore also has provisions
to point to the real server instead of the hardcoded builtins.

Of course it is the responsibility of the administrator to be
better educated, once the play-time is over.

It is this case where some people leave "localhost" in the disklist
file.  It works.  But once comes the time that you want to move
amanda to another machine (more powerfull, cheaper holdingdisk,
new tapedrive...).
If you now want to restore something from your backups (why did
you make backups anyway!?), and you can see the trouble he is in
from the first lines in amrecover:  "sethost localhost".
(Yes, you can still recover using "amrestore ..., amanda won't let
you down.)


--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* 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          *
***********************************************************************