[Pacemaker] resource running on both nodes

Lars Marowsky-Bree lmb at suse.com
Mon Jun 3 13:24:35 UTC 2013


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





More information about the Pacemaker mailing list