[Pacemaker] Adding a ressource

Dejan Muhamedagic dejanmm at fastmail.fm
Mon Aug 2 10:37:21 EDT 2010


On Fri, Jul 16, 2010 at 11:52:42AM +0200, pierre.casenove at almerys.com wrote:
> Hello all,
> I'm running an active/passive cluster with apache running on it.
> I've declared 2 IPs and the apache process as ressources. I've declared a 
> colocation between these IP and apache, and an order so that apache is 
> brung up after the IPs.
> As my system is in production now, I can't really play around with it!
> I'm wondering how I can add a third IP to the cluster and modify the 
> colocation and order directives?
> To create the ressource, it's ok:
> crm configure primitive ClusterIP_3 ocf:heartbeat:IPaddr2 params 
> ip= cidr_netmask=32 op monitor interval=30s
> But I don't know how to modify the existing colocation and order 
> directives.

Just use the edit command. Note that adding a third resource to a
constraint will make it a resource set. Otherwise, you can add a
second constraint. See chapter 6 in

> If you could also point me to a complete crm commands guide, it would be 
> perfect.


The help command prints the reference part from the document.



> Pierre

> _______________________________________________
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

More information about the Pacemaker mailing list