<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks Andrew for pointing towards the
      OCF resource agent's list of "must implement" actions. I noticed
      that our OCF script only implements start, stop and monitor. It
      does not implement meta-data and validate-all.  Could this error
      be a result of these un-implemented actions? <br>
      <br>
      Thanks<br>
      <br>
      On 02/16/2014 09:15 PM, Andrew Beekhof wrote:<br>
    </div>
    <blockquote
      cite="mid:373A1BF9-AA8C-418A-894D-FED06C45D9F6@beekhof.net"
      type="cite">
      <pre wrap="">
On 12 Feb 2014, at 1:39 am, Ajay Aggarwal <a class="moz-txt-link-rfc2396E" href="mailto:aaggarwal@verizon.com"><aaggarwal@verizon.com></a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Yes, we have cman (version: cman-3.0.12.1-49). We use manual fencing ( I know it is not recommended).  There is an external monitoring and fencing service that we use (our own).

Perhaps subject line "resource is too active problem in a 2-node cluster" was misleading. Real problem is that resource is *NOT* too active, but pacemaker thinks it is.
</pre>
      </blockquote>
      <pre wrap="">
It only thinks what the resource agent tells us.
Sounds like script.sh isn't OCF compliant.

 <a class="moz-txt-link-freetext" href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_actions.html">http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_actions.html</a>

</pre>
      <blockquote type="cite">
        <pre wrap="">Which leads to undesirable recovery procedure. See log lines below

Feb 04 11:27:38 [45167] gol-5-7-0    pengine:  warning: unpack_rsc_op:     Processing failed op monitor for GOL-HA on gol-5-7-0: unknown error (1)
Feb 04 11:27:38 [45167] gol-5-7-0    pengine:  warning: unpack_rsc_op:     Processing failed op monitor for GOL-HA on gol-5-7-6: unknown error (1)
Feb 04 11:27:38 [45167] gol-5-7-0    pengine:    error: native_create_actions:     Resource GOL-HA (ocf::script.sh) is active on 2 nodes attempting recovery





On 02/10/2014 09:43 PM, Digimer wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">On 10/02/14 09:13 PM, Aggarwal, Ajay wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">I have a 2 node cluster with no-quorum-policy=ignore. I call these nodes as node-0 and node-1. In addition, I have two cluster resources in a group; an IP-address and an OCF script.
</pre>
          </blockquote>
          <pre wrap="">
Turning off quorum on a 2-node cluster is fine, in fact, it's required. However, that makes stonith all the more important. Without stonith, in any cluster but in particualr on two node clusters, things will not work right.

First and foremost; Configure stonith and test to make sure it works.

</pre>
          <blockquote type="cite">
            <pre wrap="">   Pacemaker version: 1.1.10
   Corosync version: 1-4.1-15
   OS: CentOS 6.4
</pre>
          </blockquote>
          <pre wrap="">
With CentOS/RHEL 6, you need cman as well. Please be sure to also configure fence_pcmk in cluster.conf to "hook" it into pacemaker's real fencing.

</pre>
          <blockquote type="cite">
            <pre wrap="">What am I doing wrong?
</pre>
          </blockquote>
          <pre wrap=""><snip>
</pre>
          <blockquote type="cite">
            <pre wrap="">        <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
</pre>
          </blockquote>
          <pre wrap="">
That. :)

Once you have stonith working, see if the problem remains.

</pre>
        </blockquote>
        <pre wrap="">

_______________________________________________
Pacemaker mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>

Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Pacemaker mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>

Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>