Richard Maclannan
2002-Jun-20 01:04 UTC
[Samba] brlock.tdb and locking.tdb always missing on RH 7.2
Hi! I've been fighting with Samba for over a week now and I can't seem to work it out. It all started when I installed the standard samba (2.2.1a-4) which came with RH7.2. I ran "smbstatus" and got the following error: Failed to open byte range locking database ERROR: Failed to initialise locking database Can't initialise locking module - exiting. I've tried the following to fix this: - Added a "lock directory" parameter in my smb.conf file pointing to /var/cache/samba - Created a blank STATUS..LCK file in /var/cache/samba - Upgraded to 2.2.3 and 2.2.4 with the same error. - Added various debug levels within smb.conf to get information on why this is failing - all without success I finally got some information by running "strace smbstatus". This told me it couldn't find /var/cache/samba/brlock.tdb and /var/cache/samba/locking.tdb. Bizarrely, these files don't seem to be created *ever*, regardless of which version I use. I got rid of the error messages by performing the most awful hack. cp /var/cache/samba/messages.tdb /var/cache/samba/brlock.tdb cp /var/cache/samba/messages.tdb /var/cache/samba/locking.tdb This is clearly *wrong*. Then any shares I set up in my smb.conf file just don't respond. Basically, the question is: How do I get my brlock.tdb and locking.tdb files to appear where they should? I think this will solve the whole problem. Thanks in advance to anyone who considers this question. Richard Maclannan
Gerald Carter
2002-Jun-21 06:30 UTC
[Samba] brlock.tdb and locking.tdb always missing on RH 7.2
On Thu, 20 Jun 2002, Richard Maclannan wrote:> Basically, the question is: How do I get my brlock.tdb and locking.tdb files > to appear where they should? I think this will solve the whole problem.They are created automatically by smbd when it first starts. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--