Amanda-Users

Re: samba backups

2005-08-29 06:13:10
Subject: Re: samba backups
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Gregor Ibic <gregor.ibic AT intelicom DOT si>
Date: Mon, 29 Aug 2005 11:19:47 +0200
Gregor Ibic wrote:
I have a problem with backuping one samba share. Backup / smbclient stalls after backuping some data. Files on the server dont have permission to access them, but it should skip them with errors and backup other data, but sendbackup stalls and I have to kill smbclient to finish amdump. I dont receive timeout or any other error, it just waits for eternity. If I backup the same share directly from command line with same command ... smbclient .. -E -d0 -Tqca file.tar *
it finished ok, with permission errors, but it finishes.

How did you diagnose it is "stalled". And you didn't wait
for "eternity" either, otherwise you would still be waiting :-) .
You could try "strace -p PID" to verify it is indeed stalled,
or just in some loop or just plain slow.  And verify that the
timeout values are reasonable.
Is smbclient stalled or is it sendbackup that is stalled, or some
other program in the pipe, or all of them.

You could also increase the debugging level of smbclient.
For this you need a wrapper for smbclient that changes the option -d0
to -d3 or higher, and the maybe you find some clues about what's wrong.

You know better what is different about that share as opposed to
others that do work.  Is it a different machine (different OS version
then then rest); maybe there is some special software installed on
that machine; special access control lists etc...

One remark:  the star in 'smbclient .. ... file.tar *' is expanded
by the local shell on the unix machine.  And therefor the files to be
backed up are the one from that list.  That's probably not what is
going on inside amanda.  Try a "." (dot) instead of a '*' (star).
It just happens that some shells, when there are no files to expand
the star, that the shell leaves the star, and passes that as argument.
But it's a bad habit to rely on that.

--
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>