[Gluster-users] File locking while using NFS

Vijay Bellur vbellur at redhat.com
Fri Jan 10 05:42:59 UTC 2014


On 01/09/2014 09:06 PM, Chris Clarke wrote:
> Hi,
>
> Scenario - 3 servers each with 1 brick of storage on their local disk.
>   These 3 bricks make up a distributed Gluster volume.  This volume is
> mounted using the fuse client on all 3 servers so they can all
> concurrently access the files stored on the shared filesystem.
>
> As I understand it, Gluster will handle file locking and concurrency
> across the 3 nodes.  Is that true?
>
> Does gluster also handle the file locking if each of the 3 servers
> mounts the gluster volume as NFS (mount -t localhost:/blah /blah) or is
> locking then handled by each NFS daemon so it would not lock across the
> different servers?

All locking in glusterfs is handled by the locks translator in the brick 
processes. No locking is local to a gluster NFS server.

-Vijay




More information about the Gluster-users mailing list