[Samba] Locking DB corruption

Ross McInnes ross at stvincent.ac.uk
Fri Sep 24 08:54:22 GMT 2004

This is the second time this has happened this week, im runing Samba 3.05
fairly standard config.

It happened on Tuesday, when there was no one about (2 maybe 3 users) we
were rebuilding a few machines and everything was going fine. 

Any machines that were logged on would work fine, but new machines failed to
log on.

We run a small perl script every 15 and 30 mins which run smbstatus to find
out who is logged on where, and then works out their quota to see if they
are close to running out of space. If they are we use smbclient to send that
machine a message.

This is the result of that perl script when it finds the locking.tdb is
tdb(/var/lock/samba/locking.tdb): rec_read bad magic 0xd9fee666 at
tdb_log: TDB /var/lock/samba/locking.tdb is corrupt. Removing file and
stopping this
PANIC: corrupt tdb

BACKTRACE: 9 stack frames:
 #0 /usr/local/samba/bin/smbstatus(smb_panic2+0x18c) [0x80782f8]
 #1 /usr/local/samba/bin/smbstatus(smbd_tdb_log+0x186) [0x805df02]
 #2 /usr/local/samba/bin/smbstatus [0x80876c7]
 #3 /usr/local/samba/bin/smbstatus [0x80889a3]
 #4 /usr/local/samba/bin/smbstatus(tdb_traverse+0x199) [0x8088c36]
 #5 /usr/local/samba/bin/smbstatus(share_mode_forall+0x2c) [0x805a99e]
 #6 /usr/local/samba/bin/smbstatus(main+0x2aa) [0x8058f0e]
 #7 /lib/tls/libc.so.6(__libc_start_main+0xed) [0x9b779d]
 #8 /usr/local/samba/bin/smbstatus(chroot+0x31) [0x80586c9]

Any thoughts/ideas as to what this could be?

Many thanks


More information about the samba mailing list