Re: Unable to backup clients
2004-01-14 15:29:39
Hi!
> But the backups fail. Checking the logs in /tmp/amanda (on the
> clients), I see things like:
>
> sendbackup: time 0.000: stream_server: waiting for connection: 0.0.0.0.33011
> sendbackup: time 0.001: stream_server: waiting for connection: 0.0.0.0.33012
> sendbackup: time 0.001: stream_server: waiting for connection: 0.0.0.0.33013
> sendbackup: time 0.001: waiting for connect on 33011, then 33012, then 33013
> sendbackup: time 29.991: stream_accept: timeout after 30 seconds
> sendbackup: time 29.991: timeout on data port 33011
> sendbackup: time 59.991: stream_accept: timeout after 30 seconds
> sendbackup: time 59.991: timeout on mesg port 33012
> sendbackup: time 89.991: stream_accept: timeout after 30 seconds
> sendbackup: time 89.991: timeout on index port 33013
> sendbackup: time 89.991: pid 1873 finish time Thu Jan 8 01:05:15 2004
>
> All hosts were configured with:
>
> --with-tcpportrange=850,854 --with-udpportrange=850,854
>
> So why am I getting connections on port 33011? I have 850-854 opened on
> the firewall, but if it's trying to connect on 33xxx then of course it's
> not going to work.
>
> On the server, my /etc/services has:
>
> amanda 850/udp # amanda backup services
> amanda 850/tcp
> kamanda 851/tcp # amanda backup services
> (Kerberos)
> kamanda 851/udp # amanda backup services
> (Kerberos)
> amandaidx 852/tcp # amanda backup services
> amidxtape 853/tcp # amanda backup services
There have been a lot of messages in this thread, but IMHO a point is
still being missed. Let me try.
The 'portrange' parameter has nothing to do with ports where amandad,
amandaidxd and amidxtaped listen. These ports should always be 10080,
10081, 10082. These ports are only used to initiate backup/restore
sessions, not for actual transfer of data. These are also the ports
that should be listed in /etc/services and configured in (x)inetd.conf.
The ports from 'portrange' don't need to be listed in /etc/services.
When the client is being backed up, the process called 'sendbackup' is
started on the client, listening on a port from 'portrange' (or random
port if compiled without portrange option). The server then connects to
this port to get the actual backup data.
In your case, I guess sendbackup can't bind to ports in your
'portrange', because you have mistakenly started Amanda services on
these same ports. So it goes for the next thing it can do, which is
random high number port.
--
Toomas Aas | toomas.aas AT raad.tartu DOT ee | http://www.raad.tartu.ee/~toomas/
* I spilled spot remover on my dog. Now he's gone.
|
|
|