[Gluster-users] Posix locks AFR and high availability

Andrew McGill list2008 at lunch.za.net
Mon Oct 20 10:00:43 UTC 2008

Is it possible to get posix locks in a high availability configuration 
with glusterfs?  

Specifically, is it sufficient to have locking enabled on the server side 
below the AFR layer?

|glusterfsd....| |.......glusterfs client..

[u3]---[u3-lock]---+          |
[u2]---[u2-lock]---+          |  |
                   :=:--afr0--+  |
[u4]---[u4-lock]---+             |

Here is part of the server configuration ...

volume u1
  type storage/posix
  option directory /glusterfs/u1/export

volume u2
  type storage/posix
  option directory /glusterfs/u2/export

volume u1-lock
  type features/posix-locks
  subvolumes u1

volume u2-lock
  type features/posix-locks
  subvolumes u2

I have a bad feeling that in a race condition, half of the clients will check 
the locks on one brick while the other half will check the other brick ... 
and that simultaneous transactions may be quite happy with getting one out of 
two flocks, or only release one of the two when they are done ...


More information about the Gluster-users mailing list