[Pacemaker] location anti affinity rule not working
ESWAR RAO
eswar7028 at gmail.com
Fri May 2 00:47:51 UTC 2014
Hi All,
I am working on 3 node cluster with corosync+pacemaker on RHEL 6.
Eventhough I applied anti-affinity the app is still trying to run on 3rd
node.
# rpm -qa|grep corosync
corosync-1.4.1-17.el6_5.1.x86_64
corosynclib-1.4.1-17.el6_5.1.x86_64
# rpm -qa | grep -i pacemaker
pacemaker-1.1.10-14.el6_5.3.x86_64
pacemaker-libs-1.1.10-14.el6_5.3.x86_64
pacemaker-cluster-libs-1.1.10-14.el6_5.3.x86_64
pacemaker-cli-1.1.10-14.el6_5.3.x86_64
# rpm -qa | grep -i crm
crmsh-2.0+git5-1.1.x86_64
# crm configure primitive oc_app lsb::app meta migration-threshold=10
failure-timeout=300s op monitor interval=3s
# crm configure clone oc_app_clone oc_app meta clone-max=2
globally-unique=false interleave=true
# crm configure location nvp_prefer_node oc_app_clon -inf:
"common-test-redhat"
Online: [ common-test-redhat test-redhat-1 test-redhat-2 ]
Full list of resources:
Clone Set: oc_app_clone [oc_app]
oc_app (lsb:app): FAILED common-test-redhat (unmanaged)
Started: [ test-redhat-1 ]
Stopped: [ test-redhat-2 ]
The same configuration worked correctly on ubuntu and it started oc_app on
only 2 nodes and not on common-test-redhat node.
after some time:
-------------------------
Clone Set: oc_app_clone [oc_app]
Started: [ test-redhat-1 ]
Stopped: [ common-test-redhat test-redhat-2 ]
# crm configure show
node common-test-redhat
node test-redhat-1
node est-redhat-2
primitive oc_app lsb:app \
meta migration-threshold=10 failure-timeout=300s \
op monitor interval=3s
clone oc_app_clone oc_app \
meta clone-max=2 globally-unique=false interleave=true
location nvp_prefer_node oc_app_clone -inf: common-test-redhat
property cib-bootstrap-options: \
dc-version=1.1.10-14.el6_5.3-368c726 \
cluster-infrastructure="classic openais (with plugin)" \
expected-quorum-votes=3 \
stonith-enabled=false
Can someone please help me on the configuration.
Thanks
Eswar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140502/75fa3731/attachment-0003.html>
More information about the Pacemaker
mailing list