[Pacemaker] collocating a set of resources with crmsh

Alexandre alxgomz at gmail.com
Mon Mar 24 19:01:25 UTC 2014


Hi,

I am configuring a cluster on nodes that doesn't have pcs installed
(pacemaker 1.1.7 with crmsh).
I would like to configure collocated sets of resources (as show
here:http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Pacemaker_Explained/#s-resource-sets-collocation)
in that cluster but can't find the proper way to do it with crm.
I have tried the command bellow but it just failed:

sudo crm configure xml "<constraints><rsc_colocation id="coloc-1"
score="INFINITY"/><resource_set id="collocated-set-example"
sequential="true"><resource_ref id="pri_apache2"/><resource_ref
id="pri_iscsi"/></resource_set></rsc_colocation></constraints>"

ERROR: not well-formed (invalid token): line 1, column 32

What is the way to proceed with crm?

Regards.




More information about the Pacemaker mailing list