[Pacemaker] location anti affinity rule not working

Vladislav Bogdanov bubble at hoster-ok.com
Thu May 1 23:22:00 EDT 2014


02.05.2014 03:47, ESWAR RAO wrote:
> 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"

Typo in the configuration? oc_app_clon.

> 
> 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
> 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 





More information about the Pacemaker mailing list