<div dir="ltr"><div><div>Hi All,<br><br></div>I am working on 3 node cluster with corosync+pacemaker on RHEL 6.<br></div>Eventhough I applied anti-affinity the app is still trying to run on 3rd node.<br><div><div><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><div>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></div># crm configure primitive oc_app lsb::app meta migration-threshold=10 failure-timeout=300s op monitor interval=3s<br>
# crm configure clone oc_app_clone oc_app meta clone-max=2 globally-unique=false interleave=true<br># crm configure location nvp_prefer_node oc_app_clon -inf: "common-test-redhat"<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></div>
<div>The same configuration worked correctly on ubuntu and it started oc_app on only 2 nodes and not on common-test-redhat node.<br></div><div><br></div><div>after some time:<br>-------------------------<br></div><div> 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></div><div>Can someone please help me on the configuration.<br>
<br><br></div><div>Thanks<br></div><div>Eswar<br></div></div></div>