Propagating file locks across network

ronnie sahlberg ronniesahlberg at
Wed Jul 11 22:38:34 GMT 2007

On 7/11/07, Dominick Layfield <dom.layfield at> wrote:
> I expect that this issue has been debated extensively in the clustered
> samba discussions, but I did a quick search of the samba-technical
> archives, and couldn't find anything directly relevant.
> I'm using Samba as an interface to a distributed file system.  Each
> node in the filesystem has its own Samba server, and I would like to
> propagate locks across the network so that Samba server B is aware
> that a user on Samba server A has file f open.
> The goal, ultimately, is for a user opening f on B to be informed that
> another user currently has the file open.  (i.e. the Windows "File In Use"
> dialog box.)
> There are two parts to this:
> 1. Recognizing that a file is locked on A, and
> 2. Making server B recognize that lock.
> So my question is: how do I achieve both 1 and 2?

Install CTDB and the special CTDB version of samba3  from
and the magic happens.

What backend cluster filesystem are you using?
We have not tested with very many different cluster filesystems yet so
any input on how it works for you and your cluster filesystem will be
very appreciated.

More information about the samba-technical mailing list