bob.reven@unix1.trinity.ox.ac.uk
2002-Jul-23 10:09 UTC
[Samba] locking.tdb - Failed to open byte range locking database
i have taken a default intel redhat 7.2 machine which came with
samba 2.2.1a and removed samba, samba-common, samba-client and
samba-swat.
i also removed /etc/samba and /var/lock/samba and all samba log files
i then installed the samba RPM for samba 2.2.5 from:
http://se.samba.org/samba/ftp/Binary_Packages/redhat/RPMS/7.2/samba-2.2.5-
1.i386.rpm
i then installed this with rpm -ivh samba-2.2.5-1.i386.rpm and samba
appears to work but smbstatus reports the following:
Samba version 2.2.5
Service uid gid pid machine
----------------------------------------------
Failed to open byte range locking database
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting
the files locking.tdb and brlock.tdb are indeed missing. in fact looking in
/var/lock/samba i can only see:
-rw-r--r-- 1 root root 8192 Jul 23 16:43 connections.tdb
-rw------- 1 root root 696 Jul 23 16:43 messages.tdb
-rw-r--r-- 1 root root 8192 Jul 23 16:43 unexpected.tdb
why has locking.tdb not been created either by the RPM or more likely when
samba was started.
can anyone suggest how to resolve this?
any advice would be most appreciated
sincerely,
bob reven
Gerald Carter
2002-Jul-26 08:45 UTC
[Samba] locking.tdb - Failed to open byte range locking database
On Tue, 23 Jul 2002 bob.reven@unix1.trinity.ox.ac.uk wrote:> the files locking.tdb and brlock.tdb are indeed missing. in fact looking in > /var/lock/samba i can only see: > -rw-r--r-- 1 root root 8192 Jul 23 16:43 connections.tdb > -rw------- 1 root root 696 Jul 23 16:43 messages.tdb > -rw-r--r-- 1 root root 8192 Jul 23 16:43 unexpected.tdb > > why has locking.tdb not been created either by the RPM or more likely when > samba was started. > > can anyone suggest how to resolve this?They are created by smbd as needed (when it needs to record lock information). Ignore the error message reported by smbstatus. 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--