<div dir="ltr"><div><div><div><div><div>Hello.<br><br>I have gluster 3.3.2-ubuntu1~precise1 running on Ubuntu 12.04.2 LTS (Precise).<br><br></div>I mount a gluster volume via NFS with the following mount options: &quot;defaults,nfsvers=3,proto=tcp&quot;. (I figured it might be better to mount via NFS to take advantage of the caching in the NFS client, the files being used for read 90% of the time.)<br>

<br></div>I noticed that in php applications, the flock function gives &quot;-1 EACCES (Permission denied)&quot;. The behaviour is that it blocks in flock about 2 minutes, after which it times out and continues. If I mount with &quot;defaults,nfsvers=3,proto=tcp,nolock&quot;, php flock function is working fast again.<br>

<br></div><div>I have the rpcbind, rpc.statd running on the NFS client.<br></div><div><br></div>Questions:<br>1. Does the NFS server from gluster not support flock? Should I use the nolock mount option?<br></div>2. Should I mount the volume via the FUSE glusterfs client instead?<br>

<br></div>Thanks.<br><div><div><div><div><div><div><div>-- <br>Fita Adrian</div>
</div></div></div></div></div></div></div>