[Samba] Samba daemons hang trying to lock locking.tdb

Fermin Molina fermin at asic.udl.es
Fri Jan 27 12:16:07 GMT 2006


On Fri, 2006-01-27 at 07:52 +0100, Masopust, Christian wrote:
> Hi,
> 
> I had a similar behaviour on my RHEL 4 system (with the only difference
> that smbds did the fcntl64 to secrets.tdb).
> 
> I changed "machine password timeout = 0" in my smb.conf and the problem
> had gone away (do you have any messages in your logs pointing out that
> server password could not be changed?) 


With this option set to 0, I think the password is never updated, then,
secrets.tdb file is never used (I read in man.conf(5) that this is only
needed when using security=domain, not my case because I use
security=user).

But in my case, locking.tdb is used a lot (using strace, when the system
works well, I see a lot of fcntl64 calls using the locking.tdb file
descriptor).

Thanx for the answer!

/Fermin



> > -----Original Message-----
> > From: 
> > samba-bounces+christian.masopust=siemens.com at lists.samba.org 
> > [mailto:samba-bounces+christian.masopust=siemens.com at lists.sam
> > ba.org] On Behalf Of Fermin Molina
> > Sent: Thursday, January 26, 2006 11:58 PM
> > To: Jeremy Allison
> > Cc: samba at lists.samba.org
> > Subject: Re: [Samba] Samba daemons hang trying to lock locking.tdb
> > 
> > On Thu, 2006-01-26 at 12:23 -0800, Jeremy Allison wrote:
> > > On Wed, Jan 25, 2006 at 04:11:33PM +0100, Fermin Molina wrote:
> > > > Hi,
> > > > 
> > > > A day or so after starting samba, some daemons (diferent 
> > forks) begin to
> > > > hang. Then, the WinXP clients hang too completely.
> > > > 
> > > > When I try to figure out what is happen, I see that smbd 
> > daemons hangs
> > > > always in a fcntl64() call:
> > > > 
> > > > # strace -p 6414
> > > > Process 6414 attached - interrupt to quit
> > > > fcntl64(14, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, 
> > start=3684, len=1}  <unfinished ...>
> > > > Process 6414 detached
> > > > # 
> > > > 
> > > > The file descriptor 14 corresponds to 
> > /var/lib/samba/locking.tdb file.
> > > > A backtrace using gdb from one stalled daemon:
> > > 
> > > Known bug we fixed with 3.0.21a (in fact this was the *reason*
> > > for 3.0.21a... :-).
> > 
> > 
> > Errr... well, please, read at end of my email :-)
> > 
> > -------
> > The number of smbd daemons stalled increases in time.
> > I'm using FC4 with last updates installed and samba 3.0.21a.
> > 
> > Maybe is a kernel related problem with file locking?
> > 
> > Thanx in advance!
> > -------
> > 
> > The fact is that I have installed 3.0.21a samba version. 
> > FC4's RPMs from
> > samba.org web, and I get the same behaviour.
> > 
> > Thanx in advance!
> > 
> > -- 
> > Fermin Molina Ibarz
> > Tècnic sistemes - ASIC
> > Universitat de Lleida
> > Tel: +34 973 702151
> > GPG: 0x060F857A
> > 
> > 
> > -- 
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/listinfo/samba
> > 
-- 
Fermin Molina Ibarz
Tècnic sistemes - ASIC
Universitat de Lleida
Tel: +34 973 702151
GPG: 0x060F857A




More information about the samba mailing list