Hi -
I've got a v2 cluster running heartbeat 2.1.4 on CentOS 5.2 that's set
up as active-passive. I wanted to emulate the v1 behavior of
"auto_failback off", but I haven't got it quite right. In general, it
works, but if the cluster has failed over to node2 because of an
actual failure on node1 (i.e. not an administrative action), and node1
is restarted, the cluster will automatically move back to node1. I'd
like to make sure that the only ways it would ever move back to node1
are because of an administrative action, or an actual node failure.
I've gone over the documentation for stickiness and scoring, but I
admit I have a hard time wrapping my head around how it really works.
Intuitively, I'd think that the prefered_location of both nodes should
be the same value, but I got unpredictable results when I tried that
(the cluster seemed to not move sometimes when service failures
occurred). My config:
<nvpair id="cib-bootstrap-options-default-resource-stickiness"
name="default-resource-stickiness" value="100"/>
<nvpair id="cib-bootstrap-options-default-resource-failure-stickiness"
name="default-resource-failure-stickiness" value="-100"/>
<constraints>
<rsc_location id="rsc_location_phone-cluster" rsc="phone-cluster">
<rule id="prefered_location_phone-cluster" score="100">
<expression attribute="#uname"
id="prefered_location_phone-cluster_expr" operation="eq"
value="asterisk1"/>
</rule>
<rule id="prefered_location_phone-cluster_2" score="50">
<expression attribute="#uname"
id="prefered_location_phone-cluster_2_expr" operation="eq"
value="asterisk2"/>
</rule>
</rsc_location>
<rsc_location rsc="phone-cluster" id="cli-prefer-phone-cluster">
<rule score="100" id="cli-prefer-rule-phone-cluster-1">
<expression attribute="#uname" operation="eq" type="string"
id="cli-prefer-expr-phone-cluster-1" value="asterisk1"/>
</rule>
<rule score="50" id="cli-prefer-rule-phone-cluster-2">
<expression attribute="#uname" operation="eq" type="string"
id="cli-prefer-expr-phone-cluster-2" value="asterisk2"/>
</rule>
<rule score="INFINITY" id="cli-prefer-rule-phone-cluster">
<expression attribute="#uname" operation="eq" type="string"
id="cli-prefer-expr-phone-cluster" value="asterisk1"/>
</rule>
</rsc_location>
</constraints>
Can anyone point out what I've done wrong here?
Thanks,
Noah
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems