[Pacemaker] location anti affinity rule not working
ESWAR RAO
eswar7028 at gmail.com
Fri May 2 05:41:24 UTC 2014
Hi,
On RHEL6 systems with corosync+pacemaker+crmsh
# crm configure property expected-quorum-votes="2"
(its not getting changed)
# crm configure show
node nvsd-common-test-redhat
node nvsd-test-redhat-1
node nvsd-test-redhat-2
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 \
cluster-recheck-interval=3min
Thanks
Eswar
On Fri, May 2, 2014 at 10:21 AM, Andrew Beekhof <andrew at beekhof.net> wrote:
>
> On 2 May 2014, at 2:40 pm, ESWAR RAO <eswar7028 at gmail.com> wrote:
>
> > Hi,
> >
> > It was a copy paste error.
> > But all the configured resources are correct.
> >
> > But still I could see pacemaker trying to start service on
> common-test-redhat
>
> We cant though. You'll need to send through a crm_report archive covering
> the period of your test for us to investigate.
>
> > where I kept anti-affinity rule and also the max-clone is 2.
> >
> >
> > Thanks
> > Eswar
> >
> >
> > On Fri, May 2, 2014 at 8:52 AM, Vladislav Bogdanov <bubble at hoster-ok.com>
> wrote:
> > 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
> > >
> >
> >
> > _______________________________________________
> > 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
> >
> > _______________________________________________
> > 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
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140502/d7922e40/attachment.htm>
More information about the Pacemaker
mailing list