[Samba] Oplocks

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Jul 19 07:40:32 MDT 2010

On Mon, Jul 19, 2010 at 01:13:56PM +0200, Lukas Hejtmanek wrote:
> I'm using the Samba server 3.0.33 that exports volume from a GPFS. The GPFS
> strongly dislikes unlinking files that are locked (resulting in permission
> denied) using fcntl F_SETLEASE.
> It seems that the Samba *sometimes* tries to unlink a file that is oplocked.
> Why? Is this a bug? Why it does not happen always but only sometimes? I have
> strace logs showing:

You're sure that you are not exporting the same file space
via two different nodes simultaneously? In theory, what you
describe should not happen, at least not with current Samba.
I'm not sure about ancient 3.0.33, but with current Samba
this can only happen if you run Samba on the same file
system from two different nodes. This is an invalid
configuration, you need to use the clustered Samba with ctdb
for that.


More information about the samba mailing list