Gluster 3.3.2 NFS & flock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

I have gluster 3.3.2-ubuntu1~precise1 running on Ubuntu 12.04.2 LTS
(Precise).

I mount a gluster volume via NFS with the following mount options:
"defaults,nfsvers=3,proto=tcp". (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.)

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

I have the rpcbind, rpc.statd running on the NFS client.

Questions:
1. Does the NFS server from gluster not support flock? Should I use the
nolock mount option?
2. Should I mount the volume via the FUSE glusterfs client instead?

Thanks.
-- 
Fita Adrian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20130722/92439a72/attachment.html>


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux