<br><br><div class="gmail_quote">On Thu, Nov 18, 2010 at 2:08 AM, Rick Kint <span dir="ltr"><<a href="mailto:rwkint@yahoo.com">rwkint@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hello --<br><br>We've experienced a weird problem 3 times in the last month on different clusters.<br><br>Environment:<br>
- Pacemaker 1.0.9.1-1<br>- Corosync 1.2.5-1<br>- RHEL5.4<br>- 2 nodes<br><br>We run a simple configuration with a master/slave resource, appended below.<br><br>Three times we have found different clusters in a state where both instances are slaves and Pacemaker seems perfectly happy with this.  Looking at the configuration (cib.xml) reveals that the target-role attribute for the master/slave resource has changed from Master to Started.  Changing the value of this attribute back to Master fixes the problem immediately.<br>
<br>Any ideas what might be causing this?  Nobody is doing it manually.<br></td></tr></tbody></table></blockquote><div><br></div><div>Sorry to say this, but they are.</div><div>No part of the software manually changes target-role.</div>
<div><br></div><div>Options are:</div><div>1) human</div><div>2) cron job</div><div>3) resource agent</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><br>I'll hold off on logs until asked, this stuff can get voluminous.<br><br><br>Thanks, Rick
 Kint<br><br><br><configuration><br>  <crm_config><br>    <cluster_property_set id="cib-bootstrap-options"><br>      <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/><br>
      <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/><br>      <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.0.9-89bd754939df5150de7cd76835f98fe90851b677"/><br>
      <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="openais"/><br>      <nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes" value="2"/><br>
      <nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh"
 value="1289857566"/><br>    </cluster_property_set><br>  </crm_config><br>  <nodes><br>    <node id="fnord004" type="normal" uname="fnord004"/><br>    <node id="fnord005" type="normal" uname="fnord005"/><br>
  </nodes><br>  <resources><br>    <master id="Bar"><br>      <meta_attributes id="Bar-meta_attributes"><br>        <nvpair id="Bar-meta_attributes-clone-max" name="clone-max" value="2"/><br>
        <nvpair id="Bar-meta_attributes-clone-node-max" name="clone-node-max" value="1"/><br>        <nvpair id="Bar-meta_attributes-master-max" name="master-max" value="1"/><br>
        <nvpair id="Bar-meta_attributes-notify" name="notify"
 value="false"/><br>        <nvpair id="Bar-meta_attributes-target-role" name="target-role" value="Master"/><br>        <nvpair id="Bar-meta_attributes-is-managed" name="is-managed" value="true"/><br>
      </meta_attributes><br>      <primitive class="ocf" id="Foo" provider="fnord" type="foo"><br>        <operations><br>          <op id="Foo-start-0s" interval="0s" name="start" timeout="300s"/><br>
          <op id="Foo-monitor-2s" interval="2s" name="monitor" role="Master" timeout="20s"/><br>          <op id="Foo-monitor-3s" interval="3s" name="monitor" role="Slave"
 timeout="20s"/><br>        </operations><br>      </primitive><br>    </master><br>  </resources><br>  <constraints/><br>  <op_defaults/><br>  <rsc_defaults><br>    <meta_attributes id="rsc-options"><br>
      <nvpair id="rsc-options-resource-stickiness" name="resource-stickiness" value="100"/><br>    </meta_attributes><br>  </rsc_defaults><br></configuration><br><br><br>
<br></td></tr></tbody></table><br>

      <br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
<br></blockquote></div><br>