Hi, I have two cloned resources in my cluster that have the following
properties:
* There are a maximum of two instances of R1 in the cluster, with a maximum of
two per node
* When any instance of R1 is started on a node, exactly one instance of R2
should run on that node
When I configure this, and verify the configuration with "crm_verify -LV", I
get the following error:
clone_rsc_colocation_rh) error: Cannot interleave R2-clone and R1-clone
because they do not support the same number of instances per node
How can I make this work? Any help would be greatly appreciated.
Current configuration is as follows:
<resources>
<clone id="R1-clone">
<meta_attributes id="R1-clone-meta_attributes">
<nvpair name="interleave" value="true"
id="R1-clone-meta_attributes-interleave"/>
<nvpair name="resource-stickiness" value="0"
id="R1-clone-meta_attributes-resource-stickiness"/>
<nvpair name="clone-max" value="2"
id="R1-clone-meta_attributes-clone-max"/>
<nvpair name="clone-node-max" value="2"
id="R1-clone-meta_attributes-clone-node-max"/>
<nvpair name="globally-unique" value="true"
id="R1-clone-meta_attributes-globally-unique"/>
<nvpair name="failure-timeout" value="300"
id="R1-clone-meta_attributes-failure-timeout"/>
<nvpair name="migration-threshold" value="0"
id="R1-clone-meta_attributes-migration-threshold"/>
<nvpair id="R1-clone-meta_attributes-target-role" name="target-role"
value="Stopped"/>
</meta_attributes>
</clone>
<clone id="R2-clone">
<meta_attributes id="R2-clone-meta_attributes">
<nvpair name="interleave" value="true"
id="R2-clone-meta_attributes-interleave"/>
<nvpair name="resource-stickiness" value="0"
id="R2-clone-meta_attributes-resource-stickiness"/>
<nvpair name="failure-timeout" value="300"
id="R2-clone-meta_attributes-failure-timeout"/>
<nvpair name="migration-threshold" value="0"
id="R2-clone-meta_attributes-migration-threshold"/>
<nvpair id="R2-clone-meta_attributes-target-role" name="target-role"
value="Stopped"/>
</meta_attributes>
</clone>
</resources>
<constraints>
<rsc_order id="R1-order" kind="Mandatory" first="R1-clone" then="R2-clone"/>
<rsc_colocation id="R2-clone-colocation" score="INFINITY" rsc="R2-clone"
with-rsc="R1-clone"/>
</constraints>
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/