<p dir="ltr">Looking around I get the impression that file locking (NLM) may simply not be supported in glusterfs&#39;s built-in NFS server.</p>
<p dir="ltr">I get the impression that Ganesha is aimed at supporting NFS better, and presumably supports locking well, so I should give it a try (If I understand well the performance is also likely to be higher, which is a nice bonus!)</p>
<p dir="ltr">If someone could confirm this that would be useful to make sure I&#39;m going in the right direction.</p>
<p dir="ltr">Thanks,<br>
Thibault.</p>
<div class="gmail_quote">On 4 Aug 2015 1:23 pm, &quot;Thibault Godouet&quot; &lt;<a href="mailto:tibo92@godouet.net">tibo92@godouet.net</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi,</p>
<p dir="ltr"> </p>
<p dir="ltr">I have a cluster of 2 servers running 3.7.3 with replication, and standard NFS (no ganesha).  This in on CentOS 6.</p>
<p dir="ltr">I use CTDB with 2 virtual IPs (one for each server in a normal situation) to share the volume over NFS and CIFS (samba).</p>
<p dir="ltr"> </p>
<p dir="ltr">fnctl() file locking doesn&#39;t seem to work when the volume is mounted over NFS.</p>
<p dir="ltr">This is apparent with a &#39;svn info&#39; (svn 1.8 if it made any difference) in a local working copy:</p>
<p dir="ltr"> </p>
<p dir="ltr">$ svn info<br>
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<br>
svn: E200033: sqlite[S5]: database is locked, executing statement &#39;PRAGMA synchronous=OFF;PRAGMA recursive_triggers=ON;PRAGMA foreign_keys=OFF;PRAGMA locking_mode = NORMAL;&#39;</p>
<p dir="ltr"> </p>
<p dir="ltr">a strace shows:</p>
<p dir="ltr"> </p>
<p dir="ltr">$ svn info<br>
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<br>
svn: E200033: sqlite[S5]: database is locked, executing statement &#39;PRAGMA synchronous=OFF;PRAGMA recursive_triggers=ON;PRAGMA foreign_keys=OFF;PRAGMA locking_mode = NORMAL;&#39;</p>
<p dir="ltr"> </p>
<p dir="ltr">Everything seems to work fine on native Gluster (FUSE) mounts: the same &#39;svn info&#39; works nicely.</p>
<p dir="ltr">I can&#39;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.</p>
<p dir="ltr"> </p>
<p dir="ltr">Is fnctl() file locking supported in Gluster NFS mounts?  If so, any idea why it doesn&#39;t work for me?</p>
<p dir="ltr"> </p>
<p dir="ltr">Thanks,</p>
<p dir="ltr">Thibault.<br>
</p>
</blockquote></div>