Amanda-Users

Re: amrecove does not connect

2007-11-27 05:05:37
Subject: Re: amrecove does not connect
From: Charles Stroom <charles AT stremen.xs4all DOT nl>
To: amanda-users AT amanda DOT org
Date: Tue, 27 Nov 2007 10:53:20 +0100
On Tue, 27 Nov 2007 08:11:35 +0100
Marc Muehlfeld <Marc.Muehlfeld AT medizinische-genetik DOT de> wrote:

> Charles Stroom schrieb:
> > fiume:~ # amrecover -s fiume
> > AMRECOVER Version 2.5.2p1. Contacting server on fiume ...
> > [request failed: timeout waiting for ACK]
> > "
> 
> Run amcheck and have a look for errors.

"
fiume:/tmp/amanda/client # su - amandabackup -c "exec amcheck daily" 
Amanda Tape Server Host Check
-----------------------------
Holding disk /work-2/amanda/dumps: 106816016 KB disk space available,
using 106713616 KB Opening tapedev /dev/nst0: got error Input/output
error. tape_rdlabel: tape open: /dev/nst0: Input/output error
       (expecting tape daily-07 or a new tape)
Server check took 121.756 seconds

Amanda Backup Client Hosts Check
--------------------------------
Client check: 2 hosts checked in 0.483 seconds, 0 problems found

(brought to you by Amanda 2.5.2p1)
"
Seems ok to me!  No tape (yet) in drive but both PC's respond.  Anyhow,
backups run normal.

> 
> 
> 
> > Has this anything to do with the 3 files in the xinet.d directory
> > amanda, amandaidx, amidxtape?
> 
> Are the services running? Check with
> netstat -taunp | grep :1008.
> on your backup/index server.

"
fiume:/tmp/amanda/client # netstat -taunp | grep :1008
tcp        0      0 0.0.0.0:10080           0.0.0.0:*               LISTEN      
4415/xinetd         
tcp        0      0 0.0.0.0:10082           0.0.0.0:*               LISTEN      
4415/xinetd         
tcp        0      0 0.0.0.0:10083           0.0.0.0:*               LISTEN      
4415/xinetd         
"

Seems OK, no?
> 
> 
> 
> Must a user root added somewhere?
> 
> No. Amanda runs as user. You configured amandabackup:disk for this.
> 

But this is what I don't understand.  Amanda backup runs as user
 "amandabackup", but amrecover must run as root!  I do not fully understand
the xinet workings, but I suppose that it specifies that services
(like amindexd) start running if the right user requests its service.
But in the 3 xinet.d files (included in my first email), "root" is not specified
as one of the users of the amanda services "amanda", "amandaidx" and
"amidxtape".  
If I do an "amrecover", and, while it times-out, I do an ps -ef | grep am, I
do not see any of these amanda services coming up.

Regards,

Charles


> 
> 
> Marc
> 
> 
> 


-- 
Charles Stroom
email: charles at no-spam.stremen.xs4all.nl (remove the "no-spam.")

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