[Gluster-users] NFS file locking with gluster 3.7.3

Thibault Godouet tibo92 at godouet.net
Tue Aug 4 12:23:48 UTC 2015


Hi,



I have a cluster of 2 servers running 3.7.3 with replication, and standard
NFS (no ganesha).  This in on CentOS 6.

I use CTDB with 2 virtual IPs (one for each server in a normal
situation) to share the volume over NFS and CIFS (samba).



fnctl() file locking doesn't seem to work when the volume is mounted over
NFS.

This is apparent with a 'svn info' (svn 1.8 if it made any difference) in a
local working copy:



$ svn info
svn: E200033: Another process is blocking the working copy database, or the
underlying filesystem does not support file locking; if the working copy is
on a network filesystem, make sure file locking has been enabled on the
file server
svn: E200033: sqlite[S5]: database is locked, executing statement 'PRAGMA
synchronous=OFF;PRAGMA recursive_triggers=ON;PRAGMA foreign_keys=OFF;PRAGMA
locking_mode = NORMAL;'



a strace shows:



$ svn info
svn: E200033: Another process is blocking the working copy database, or the
underlying filesystem does not support file locking; if the working copy is
on a network filesystem, make sure file locking has been enabled on the
file server
svn: E200033: sqlite[S5]: database is locked, executing statement 'PRAGMA
synchronous=OFF;PRAGMA recursive_triggers=ON;PRAGMA foreign_keys=OFF;PRAGMA
locking_mode = NORMAL;'



Everything seems to work fine on native Gluster (FUSE) mounts: the same
'svn info' works nicely.

I can't really use native mounts due to the performance hit (many small
files) and the fact I would need to install the gluster client software on
every server.



Is fnctl() file locking supported in Gluster NFS mounts?  If so, any idea
why it doesn't work for me?



Thanks,

Thibault.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150804/2e3bba8d/attachment.html>


More information about the Gluster-users mailing list