<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>It was a copy paste error.<br></div>But all the configured resources are correct.<br><br></div>But still I could see pacemaker trying to start service on common-test-redhat where I kept anti-affinity rule and also the max-clone is 2.<br>
<br><br></div>Thanks<br></div>Eswar<br><div><div><div><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 2, 2014 at 8:52 AM, Vladislav Bogdanov <span dir="ltr"><<a href="mailto:bubble@hoster-ok.com" target="_blank">bubble@hoster-ok.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">02.05.2014 03:47, ESWAR RAO wrote:<br>
> Hi All,<br>
><br>
> I am working on 3 node cluster with corosync+pacemaker on RHEL 6.<br>
> Eventhough I applied anti-affinity the app is still trying to run on 3rd<br>
> node.<br>
><br>
> # rpm -qa|grep corosync<br>
> corosync-1.4.1-17.el6_5.1.x86_64<br>
> corosynclib-1.4.1-17.el6_5.1.x86_64<br>
> # rpm -qa | grep -i pacemaker<br>
> pacemaker-1.1.10-14.el6_5.3.x86_64<br>
> pacemaker-libs-1.1.10-14.el6_5.3.x86_64<br>
> pacemaker-cluster-libs-1.1.10-14.el6_5.3.x86_64<br>
> pacemaker-cli-1.1.10-14.el6_5.3.x86_64<br>
> # rpm -qa | grep -i crm<br>
> crmsh-2.0+git5-1.1.x86_64<br>
><br>
><br>
> # crm configure primitive oc_app lsb::app meta migration-threshold=10<br>
> failure-timeout=300s op monitor interval=3s<br>
> # crm configure clone oc_app_clone oc_app meta clone-max=2<br>
> globally-unique=false interleave=true<br>
> # crm configure location nvp_prefer_node oc_app_clon -inf:<br>
> "common-test-redhat"<br>
<br>
</div>Typo in the configuration? oc_app_clon.<br>
<div><div class="h5"><br>
><br>
> Online: [ common-test-redhat test-redhat-1 test-redhat-2 ]<br>
><br>
> Full list of resources:<br>
><br>
> Clone Set: oc_app_clone [oc_app]<br>
> oc_app (lsb:app): FAILED common-test-redhat (unmanaged)<br>
> Started: [ test-redhat-1 ]<br>
> Stopped: [ test-redhat-2 ]<br>
><br>
> The same configuration worked correctly on ubuntu and it started oc_app<br>
> on only 2 nodes and not on common-test-redhat node.<br>
><br>
> after some time:<br>
> -------------------------<br>
> Clone Set: oc_app_clone [oc_app]<br>
> Started: [ test-redhat-1 ]<br>
> Stopped: [ common-test-redhat test-redhat-2 ]<br>
><br>
> # crm configure show<br>
> node common-test-redhat<br>
> node test-redhat-1<br>
> node est-redhat-2<br>
> primitive oc_app lsb:app \<br>
> meta migration-threshold=10 failure-timeout=300s \<br>
> op monitor interval=3s<br>
> clone oc_app_clone oc_app \<br>
> meta clone-max=2 globally-unique=false interleave=true<br>
> location nvp_prefer_node oc_app_clone -inf: common-test-redhat<br>
> property cib-bootstrap-options: \<br>
> dc-version=1.1.10-14.el6_5.3-368c726 \<br>
> cluster-infrastructure="classic openais (with plugin)" \<br>
> expected-quorum-votes=3 \<br>
> stonith-enabled=false<br>
><br>
> Can someone please help me on the configuration.<br>
><br>
><br>
> Thanks<br>
> Eswar<br>
><br>
><br>
</div></div>> _______________________________________________<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://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
><br>
<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://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br></div></div></div></div></div></div></div></div>