Amanda-Users

Re: Problem with amanda and MacoS X

2008-07-20 13:54:54
Subject: Re: Problem with amanda and MacoS X
From: Nouveaux Territoires <listes AT nouveauxterritoires DOT fr>
To: Bruce Thompson <drllama AT otherother DOT com>
Date: Sun, 20 Jul 2008 19:51:05 +0200


Le 20 juil. 08 à 18:05, Bruce Thompson a écrit :
Hmmm.

I think the clue here may be that you are using udp on the server and tcp on the client? Clearly the server is attempting to contact the client, but the client is not listening.

What does your LaunchDaemon script say? In particular, the ipv4 section, is the SockType key set to stream? If so then that means that your client is listening only for TCP. You should be able to confirm that by checking netstat:

% netstat -na | less

The lines reported on my MBP is related to amanda are:
tcp6 0 0 *.10080 *.* LISTEN tcp4 0 0 *.10080 *.* LISTEN

Meaning that I'm listening on TCP port 10080, both ipv4 and ipv6 (though I don't use ipv6, we can ignore that).

Now, i passed the client in UDP mode :

saroumane:~ root# netstat -na | grep 10080
udp6       0      0  *.10080                *.*
udp4    1251      0  *.10080                *.*
saroumane:~ root#




If your netstat produces a similar result then that may point to udp vs. tcp.

For that matter, if netstat isn't showing 10080 then that would tend to indicate that the launchd script isn't running properly.

If all else fails, try using tcpdump on the client to watch the server attempting to connect and troubleshoot from there.

On the client, the tcpdump shows :
9:43:37.378315 IP backup.918 > saroumane.nt.fr.amanda: UDP, length 123
19:43:47.378418 IP backup.918 > saroumane.nt.fr.amanda: UDP, length 123
19:43:57.378022 IP backup.918 > saroumane.nt.fr.amanda: UDP, length 123

Then, on the server, the amcheck command shows :

-bash-3.1$ amcheck saroumane
Amanda Tape Server Host Check
-----------------------------
Holding disk /dumps/amandatapes/saroumane: 177156 MB disk space available, using 177056 MB
slot 6: read label `saroumane-06', date `X'
NOTE: skipping tape-writable test
Tape saroumane-06 label ok
NOTE: host info dir /usr/local/amanda/etc/amanda/saroumane/curinfo/ saroumane does not exist
NOTE: it will be created on the next run.
NOTE: index dir /usr/local/amanda/etc/amanda/saroumane/index/saroumane does not exist
NOTE: it will be created on the next run.
Server check took 0.132 seconds

Amanda Backup Client Hosts Check
--------------------------------
WARNING: saroumane: selfcheck request failed: timeout waiting for ACK
Client check: 1 host checked in 30.005 seconds, 1 problem found

(brought to you by Amanda 2.5.1p3)
-bash-3.1$


In the /tmp/amanda/server/saroumane/amcheck.*******.debug, on the sever :

amcheck: debug 1 pid 9291 ruid 33 euid 0: start at Sun Jul 20 19:43:37 2008 amcheck: debug 1 pid 9291 ruid 33 euid 33: rename at Sun Jul 20 19:43:37 2008
security_getdriver(name=bsdudp) returns 0x2aaaab121b60
security_handleinit(handle=0x61f710, driver=0x2aaaab121b60 (BSDUDP))
amcheck-clients: time 0.004: bind_portrange2: Try port 918: Available - Success
amcheck-clients: time 0.004: dgram_bind: socket bound to 0.0.0.0.918
amcheck-clients: dgram_send_addr(addr=0x7fff364301c0, dgram=0x2aaaab1336e8) amcheck-clients: time 0.006: (sockaddr_in *)0x7fff364301c0 = { 2, 10080, 192.168.50.22 }
amcheck-clients: dgram_send_addr: 0x2aaaab1336e8->socket = 4
changer_query: changer return was 6 1
changer_query: searchable = 0
changer_find: looking for NULL changer is searchable = 0
amcheck-clients: dgram_send_addr(addr=0x7fff36430200, dgram=0x2aaaab1336e8) amcheck-clients: time 10.005: (sockaddr_in *)0x7fff36430200 = { 2, 10080, 192.168.50.22 }
amcheck-clients: dgram_send_addr: 0x2aaaab1336e8->socket = 4
amcheck-clients: dgram_send_addr(addr=0x7fff36430200, dgram=0x2aaaab1336e8) amcheck-clients: time 20.005: (sockaddr_in *)0x7fff36430200 = { 2, 10080, 192.168.50.22 }
amcheck-clients: dgram_send_addr: 0x2aaaab1336e8->socket = 4
security_seterror(handle=0x61f710, driver=0x2aaaab121b60 (BSDUDP) error=timeout waiting for ACK)
security_close(handle=0x61f710, driver=0x2aaaab121b60 (BSDUDP))
amcheck: pid 9291 finish time Sun Jul 20 19:44:07 2008





and don't see errors in these logs.

The client and the server is now in UDP mode.

thanks a lot for your help.

Best regards,

Julien




Cheers,
Bruce.


On Jul 20, 2008, at 12:58 AM, Nouveaux Territoires wrote:


Le 19 juil. 08 à 22:30, Bruce Thompson a écrit :

I'm running Amanda 2.5.2p1 on Fedora 9 (server) and three MacBook Pros (client) (10.4.X and 10.5.X) without difficulty.

A few quick questions that might point in the right direction:

1. What version of amanda are you running on the Macs?

The version is 2.5.1p3 (like the amanda sever).

2. What config options did you use?

./configure --with-user=amandabackup --with-group=admin --with- config=saroumane --without-server --prefix=/usr/local/amanda --with- amandahosts --with-portrange=50000,50014 --with-bsdtcp-security


3. What user is running the amanda client on the Macs?

amandabackup 14105 0.1 0.0 75356 580 ?? Rs 9:43AM 0:00.06 (launchproxy)


4. What is the contents of .amandahosts in that user's home directory

# machine               utilisateur
backup                  amandabackup amdump

and backup is (in the /etc/hosts) :

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost

192.168.50.20   backup backup.nouveauxterritoires.fr




5. What is in /tmp/amanda and do the contents of those files point show any errors?

on the client, there are not logs in the /tmp/amada/

On the server, there are logs in the /tmp/amamda/server/saroumane (the name of the computer's client) :

amcheck: debug 1 pid 9472 ruid 33 euid 0: start at Sat Jul 19 14:51:39 2008 amcheck: debug 1 pid 9472 ruid 33 euid 33: rename at Sat Jul 19 14:51:39 2008
security_getdriver(name=bsdtcp) returns 0x2aaaab121ac0
security_handleinit(handle=0x61f710, driver=0x2aaaab121ac0 (BSDTCP))
security_streaminit(stream=0x620290, driver=0x2aaaab121ac0 (BSDTCP))
amcheck-clients: time 0.005: connect_port: Skip port 512: Owned by exec. amcheck-clients: time 0.005: connect_port: Skip port 513: Owned by login. amcheck-clients: time 0.006: connect_port: Skip port 514: Owned by shell. amcheck-clients: time 0.006: connect_port: Skip port 515: Owned by printer. amcheck-clients: time 0.006: connect_port: Skip port 516: Owned by videotex. amcheck-clients: time 0.012: connect_port: Try port 517: Available -
changer_query: changer return was 6 1
changer_query: searchable = 0
changer_find: looking for NULL changer is searchable = 0
amcheck-clients: time 3.009: connected to 192.168.50.22.10080
amcheck-clients: our side is 0.0.0.0.517
amcheck-clients: try_socksize: send buffer size is 65536
amcheck-clients: try_socksize: receive buffer size is 65536
security_seterror(handle=0x61f710, driver=0x2aaaab121ac0 (BSDTCP) error=timeout waiting for ACK)
security_close(handle=0x61f710, driver=0x2aaaab121ac0 (BSDTCP))
security_stream_close(0x620290)
amcheck: pid 9472 finish time Sat Jul 19 14:52:12 2008



On the amanda server, my /etc/xinetd.d/amanda configured like this :

service amanda
{
only_from = localhost 82.235.225.240 127.0.0.1 intranet supervision globtrans saroumane
      socket_type     = dgram
      protocol        = udp
      wait            = yes
#       user            = $USER
#       group           = $GROUP
      user            = amanda
      group           = disk
      groups          = yes
#       server          = $AMANDAD_PATH/amandad
      server          = /usr/local/amanda/libexec/amandad
      server_args     = -auth=bsd amdump amindexd amidxtaped
      disable         = no
}


The protocol used is 'udp'
and on my cMac OSX client is (in the configure options) -auth=bsdtcp

This configuration can be a problem ?




cheers

Julien




Cheers,
Bruce.

On Jul 19, 2008, at 12:09 PM, Nouveaux Territoires wrote:

Yes,  i followed the instructions of this page.

The amanda client is apprently ok (with netstat).

But the amcheck command fail already !!



Le 19 juil. 08 à 17:03, Dustin J. Mitchell a écrit :

Good to hear you're building on a Mac!

Have you set up the necessary launchd script on the mac?  There's
information about it at
http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_Mac_OS_X

Dustin

--
Storage Software Engineer
http://www.zmanda.com






!DSPAM:3,4882f190228678691415529!


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