The RA needs to return $OCF_ERR_INSTALLED instead of any other erorr code.<div>Check the configuration explained doc for what the error codes mean and how they're handled.  <br><br><div class="gmail_quote">On Thu, Sep 24, 2009 at 7:53 AM, Luke Bigum <span dir="ltr"><<a href="mailto:lbigum@iseek.com.au">lbigum@iseek.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">









<div lang="EN-AU" link="blue" vlink="purple">

<div>

<p>Hi all,</p>

<p> </p>

<p>I have a problem with a four node asymmetric CentOS 5
pacemaker 1.0.5 / heartbeat 3.0.0 cluster.</p>

<p> </p>

<p>Two nodes are for ldirectord, the other two for services,
currently only DNS while testing. My problem is that CRM / LRM thinks that an ocf:heartbeat:ldirectord
resource is running on the dns nodes and is attempting to stop / cleanup the
resource when there isn't any ldirectord software installed or configured on these
nodes. This fails, putting the resource in an unmanaged state. Reset fail
counts  and clean it up again and it repeats the same thing - tries to
stop the resource and goes unmanaged.</p>

<p> </p>

<p>At the moment there's no location constraint so the resource
shouldn't try run anywhere (asymmetric), however I did have one before with the
same result: the cluster would attempt to do "something" with
ldirectord on the DNS nodes and get itself unmanaged. This is the XML I had for
that constraint:<br>
<br>
</p>

<p><rsc_location id="bne-ldirectord-loc"
rsc="bne-ldirectord"></p>

<p><rule boolean-op="and"
id="bne-ldirectord-loc-rule" score="+INFINITY"></p>

<p><expression attribute="anycast-server-location"
id="bne-ldirectord-loc-rule-anycast-server-location"
operation="eq" value="brisbane"/></p>

<p><expression attribute="anycast-server-type" id="bne-ldirectord-loc-rule-anycast-server-type"
operation="eq" value="lb"/></p>

<p></rule></p>

<p></rsc_location></p>

<p> </p>

<p>I've experimented with lrmadmin -D on the offending nodes
but no success. Basically the only way I can return the cluster to a nicely
managed state is to install ldirectord on the DNS nodes and touch an empty
configuration file, but I don't really want to do this, especially if I plan on
putting many different kinds of services on this cluster.</p>

<p> </p>

<p>I vaguely remember reading about someone with a similar
problem but I can't find that post. Attached is a hb_report if you'd like to
peruse. Any help is greatly appreciated.</p>

<p> </p>

<p>Thanks,</p>

<p> </p>

<p>-Luke</p>

<p> </p>

<p><b><span lang="EN-US" style="font-size:14.0pt;color:#0B53B6">Luke Bigum</span></b></p>

<p><b><span lang="EN-US" style="font-size:9.0pt;color:#3989F3">Systems Administrator</span></b></p>

<p><span lang="EN-US" style="font-size:8.0pt;color:#5C5C5C"> (p) 1300 661 668</span></p>

<p><span lang="EN-US" style="font-size:8.0pt;color:#5C5C5C"> (f)  1300 661 540</span></p>

<p><span lang="EN-US" style="font-size:8.0pt;color:#5C5C5C">(e)  </span><span><a href="mailto:lbigum@iseek.com.au" target="_blank"><span lang="EN-US" style="font-size:8.0pt;color:#3989F3">lbigum@iseek.com.au</span></a></span><span lang="EN-US" style="font-size:8.0pt;color:#5C5C5C"></span></p>


<p><span><a href="http://www.iseek.com.au/" target="_blank"><span lang="EN-US" style="font-size:8.0pt;color:#3989F3">http://www.iseek.com.au</span></a></span><span lang="EN-US" style="font-size:8.0pt;color:#3989F3"></span></p>


<p><span lang="EN-US" style="font-size:8.0pt;color:#5C5C5C">Level 1, 100 Ipswich Road Woolloongabba QLD 4102</span></p>

<p><span lang="EN-US" style="font-size:8.0pt;color:#5C5C5C"> </span></p>

<p><span style="font-size:8.0pt;color:#5C5C5C"><img border="0" width="251" height="29" src="cid:image001.jpg@01CA3D2D.BE5514B0" alt="iseekbar.jpg"></span></p>

<p><span style="font-size:8.0pt;color:#5C5C5C"> </span></p>

<p><span style="font-size:8.0pt;color:#1F497D">This e-mail and
any files transmitted with it may contain confidential and privileged material
for the sole use of the intended recipient. Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorised to receive for the recipient), please contact the
sender by reply e-mail and delete all copies of this message.</span></p>

<p><span lang="EN-US" style="font-size:8.0pt;color:#5C5C5C"> </span></p>

<p> </p>

</div>

</div>


<br>_______________________________________________<br>
Pacemaker mailing list<br>
<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></blockquote></div><br></div>