[Samba] File locks are not preserved when IP is moved to another node.

Volker Lendecke vl at samba.org
Mon Jul 18 12:45:38 UTC 2016


On Mon, Jul 18, 2016 at 02:02:46PM +0200, Krzysztof Sienkiewicz wrote:
> Recently I was testing samba and ctdb with the glusterfs. Everything works
> well but I got some problems with file locking. When I exclusively lock a
> file from one Windows client the second client sees that this file is in
> use and doesn't allow access - this is correct. But when I move public IP
> to the second node these locks are lost and it is possible to access the
> file on the second client machine.
> 
> There are two servers in cluster, both are connected to domain and running
> ctdb, samba and winbind. Share is placed on the glusterfs and it is
> accessible on both nodes. I use two Windows clients to connects to this
> share. The samba version used is 4.4.3.

What you need is persistent file handles, which are right now not
present in Samba, sorry for that.

With best regards,

Volker Lendecke



More information about the samba mailing list