[Pacemaker] resource running on both nodes

ESWAR RAO eswar7028 at gmail.com
Tue Jun 4 01:28:12 UTC 2013


Hi Lars,

Thanks for the response.

Should I configure the resource as below?
# crm configure primitive oc_proxyapp lsb::proxyapp  meta
allow-migrate="true" migration-threshold="3" failure-timeout="30s" op
monitor interval="5s"

# crm oc_proxyapp_clone oc_proxyapp

I couldn't find anywhere about one shot configuring the clone resource
instead of primitive configuration first.

Thanks
Eswar



On Mon, Jun 3, 2013 at 6:54 PM, Lars Marowsky-Bree <lmb at suse.com> wrote:

> On 2013-06-03T18:22:39, ESWAR RAO <eswar7028 at gmail.com> wrote:
>
> > Hi All,
> >
> > Can someone please help me in my below setup??
> >
> > I have 2 node setup with HB+pacemaker.
> > I have my app running on both the nodes before the start of HB and
> > pacemaker.
> >
> > Later I configured the crm as below:
> >
> > # crm configure primitive havip ocf:IPaddr2 params ip=192.168.101.205
> > cidr_netmask=32 nic=eth1 op monitor interval=30s
> > # crm configure primitive oc_proxyapp lsb::proxyapp  meta
> > allow-migrate="true" migration-threshold="3" failure-timeout="30s" op
> > monitor interval="5s"
> >
> > #crm configure colocation oc-havip INFINITY: havip oc_proxyapp
>
> If you want it to be running on multiple nodes, you have to configure
> thart particular resource as a clone, not as a primitive.
>
> A primitive resource, by definition, is only allowed to run once in the
> cluster.
>
>
> Regards,
>     Lars
>
> --
> Architect Storage/HA
> SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix
> Imendörffer, HRB 21284 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
>
>
> _______________________________________________
> 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/20130604/9b9cdbb6/attachment.htm>


More information about the Pacemaker mailing list