[Samba] locking db corruption with 2.2.5?

adam at morrison-ind.com adam at morrison-ind.com
Fri Aug 23 09:40:00 GMT 2002


Things I tried that each had no effect (in order)
- Disableing oplocks on shares (oplocks = no)
- Upgrade to 2.2.6pre1
- Upgraded to most recent RedHat Kernel RPMs, confirmed most recent gcc, glibc,
etc...
- Rebuild 2.2.6pre1
- Rebooted server into uniprocessor mode
- Droped back to the RedHat "OEM" samba-2.2.3a-6 RPMs.
- "Set kernel oplock = no"

Then I set "use mmap = no" and restarted 2.2.3a-6.  I can see in lsof that smbd
is no longer openning *.tdb as memory mapped.  It has been several hours and I
can still 'smbclient -L" without blowing up my terminal window,  all the file
names seem intact and legitimate.  I can now complete an index of a Goldmine DBF
database stored on the server. :)

But I am still having phantom locking problems where users cannot save Office
documents,  or cannot open them because they are reported as already in use. 
smbstatus -L shows them locked,  but by the person trying to open them.

I don't know if it is relevant but smbtorture fails the LOCK1 test:

[root at sardine bench]# smbtorture \\\\sardine\\torture -N 10 -W BACKBONE -U adam
LOCK1
Password:
host=sardine share=torture user=adam myname=sardine
Running LOCK1
starting locktest1
Testing lock timeouts
close3 failed (ERRDOS - ERRlock (A Lock request conflicted with an existing lock
or specified an  invalid mode,  or an Unlock requested attempted to remove a
lock held by another process.))
LOCK1 took 12.315 secs

[root at sardine bench]# smbtorture \\\\sardine\\torture -N 1 -W BACKBONE -U adam LOCK1
Password:
host=sardine share=torture user=adam myname=sardine
Running LOCK1
starting locktest1
Testing lock timeouts
close3 failed (ERRDOS - ERRlock (A Lock request conflicted with an existing lock
or specified an  invalid mode,  or an Unlock requested attempted to remove a
lock held by another process.))
LOCK1 took 12.8157 secs

[root at sardine bench]# smbtorture \\\\sardine\\torture -N 10 -W BACKBONE -U adam
LOCK2
Password:
host=sardine share=torture user=adam myname=sardine
Running LOCK2
starting locktest2
locktest2 finished
LOCK2 took 1.17856 secs

[root at sardine bench]# smbtorture \\\\sardine\\torture -N 10 -W BACKBONE -U adam
LOCK3
Password:
host=sardine share=torture user=adam myname=sardine
Running LOCK3
starting locktest3
finished locktest3
LOCK3 took 2.65536 secs





More information about the samba mailing list