Amanda-Users

Re: planner timeouts

2005-09-06 11:18:59
Subject: Re: planner timeouts
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Charles Sprickman <spork AT bway DOT net>
Date: Tue, 06 Sep 2005 16:59:52 +0200
Charles Sprickman wrote:

Me neither... Is there any way to increase the verbosity of amandad? inetd config is good (it's a client, so it's only got the single line for amandad), nothing in the system logs, all of the stuff in the libexec directory appears to have correct perms (the proper things are setuid to my amanda user)...

No, but in the tcpdump trace below, I would add "-n 1500 -X" to verify
what exactly is sent.

The devel2 (server) view:

19:46:23.967162 devel2.937 > h13.blah.com.amanda: udp 117
19:46:24.074337 h13.blah.com.amanda > devel2.937: udp 50
19:46:24.249414 h13.blah.com.amanda > devel2.937: udp 81
19:46:24.249497 devel2.937 > h13.blah.com.amanda: udp 50
19:46:24.489787 devel2.937 > h13.blah.com.amanda: udp 1465
19:46:34.497794 devel2.937 > h13.blah.com.amanda: udp 1465
19:46:44.508815 devel2.937 > h13.blah.com.amanda: udp 1465

The h13 (client) view:

19:46:23.982760 devel2.937 > h13.blah.com.amanda: udp 117
19:46:24.054390 h13.blah.com.amanda > devel2.937: udp 50
19:46:24.230317 h13.blah.com.amanda > devel2.937: udp 81
19:46:24.264200 devel2.937 > h13.blah.com.amanda: udp 50
19:46:24.523791 devel2.937 > h13.blah.com.amanda: udp 1465 (frag
59731:1472@0+)
19:46:34.531821 devel2.937 > h13.blah.com.amanda: udp 1465 (frag
62763:1472@0+)
19:46:44.542471 devel2.937 > h13.blah.com.amanda: udp 1465 (frag
9535:1472@0+)

I'm not a tcpdump guru, it is suspect that the "client" sends something
flagged as "frag", while the server does not see the "frag" flag.
Could be tcpdump implementation difference on the two machines too.

The server side logs some info in the amdump file, when it receives
the packets.  Alas only after decoding them.  If the server
didn't see them, it won't log anything.  Have a careful look anyway
in the amdump file around that time (the dumpfile contains milestones
in seconds from start of file, so that you can locate the lines around
which the packets were received.

If you're brave, yYou could also try to "strace" planner.
Because planner is a suid-root program, you need to make an "strace"
copy with has also the suid-root bit set.  Then add that command in
the amdump shell script around line 100, which then becomes a long line:

/usr/local/bin/strace-suid -o /tmp/planner-strace -s 1500 $libexecdir/planner$SUF "$@" | ...driver...

(and don't forget to remove the strace-suid program afterwards!)


--
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, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



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