<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Thank you,<br>
      <br>
      understood it is working as expected. But how is it ensured that
      the two nodes holding the lock can't write<br>
      to the same file then?<br>
      <br>
      Thank you<br>
      <br>
      Vladimir Martinek<br>
      <br>
      <br>
      <br>
      <br>
      On 10/30/2015 09:12 PM, David Teigland wrote:<br>
    </div>
    <blockquote cite="mid:20151030201222.GD14890@redhat.com" type="cite">
      <pre wrap="">On Fri, Oct 30, 2015 at 03:04:34PM +0100, Vladimir Martinek wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">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.
</pre>
      </blockquote>
      <pre wrap="">
It works as expected; recovery of posix locks does not need to wait for
fencing to complete.
Dave

</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <p style="color:#2f323a; font: 700 16px/20px 'Helvetica Neue',
        Helvetica, sans-serif;"><strong>Ing. Vladimír Martinek</strong><br>
        <span style="color:#2f323a; font: 400 12px/14px 'Helvetica
          Neue', Helvetica, sans-serif;">Programmer</span></p>
      <p style="color:#2f323a; font: 400 13px/16px 'Helvetica Neue',
        Helvetica, sans-serif;">
        T: +420 723 908 968<br>
        @: <a class="moz-txt-link-abbreviated" href="mailto:vm@sykora.cz">vm@sykora.cz</a>
      </p>
      <p style="color:#2f323a; font: 400 12px/16px 'Helvetica Neue',
        Helvetica, sans-serif;">
        Sykora Data Center s.r.o.<br>
        28. října 1512/123, 702 00 Ostrava<br>
        <a class="moz-txt-link-abbreviated" href="http://www.sykora.cz">www.sykora.cz</a>
      </p>
      <p>
        <img src="cid:part1.06020501.05040009@sykora.cz">
      </p>
    </div>
  </body>
</html>