Thank you,

understood it is working as expected. But how is it ensured that the two nodes holding the lock can't write
to the same file then?

Thank you

Vladimir Martinek




On 10/30/2015 09:12 PM, David Teigland wrote:
On Fri, Oct 30, 2015 at 03:04:34PM +0100, Vladimir Martinek wrote:
Hello,

I have a 3 node cluster and fencing agent that takes about 30
seconds to complete the fencing. In those 30 seconds it is possible
for two nodes of the cluster to get exclusive POSIX lock on the same
file.

Did I miss something here or is this correct behaviour?

Also, when trying with BSD flock, it works as I would expect - the
locks are only released after the fencing completes and node 1 is
confirmed to be fenced.

Following is output of dlm_tool dump command. Watch for the line
"gfs2fs purged 1 plocks for 1" - the locks of failed node 1 are
purged long before the fencing is completed.

Thank you for any advice.
It works as expected; recovery of posix locks does not need to wait for
fencing to complete.
Dave



--

*Ing. Vladimír Martinek*
Programmer

T: +420 723 908 968
@: v...@sykora.cz

Sykora Data Center s.r.o.
28. října 1512/123, 702 00 Ostrava
www.sykora.cz

-- 
Linux-cluster mailing list
Linux-cluster@redhat.com
https://www.redhat.com/mailman/listinfo/linux-cluster

Reply via email to