On Wednesday 25 July 2007, matilda matilda wrote: > Hi all, > > I want to accomplish the following behaviour for two > resource A and B: > > * If A is running and B will be started, B should run > on the same node as A > * If A is NOT started and B will be started, B can be > run whereever it wants. > * If A is not running, B is running on node X, A is > started on node Y because of its prefences, B should > move to node Y (same node as A) > * Both resources can be started and stopped independently. > * Only if they run B have to run on same node as A > > How can I accomplish that with HAv2, 2.1.0? > Happy puzzling! This is a simple assymetric co-location rule (since 2.0.8 all co-location rules are assymetric).
This means write a rule that B follows A: <rsc_colocation id="B_follows_A" from="B" to="A" score="INFINITY"/> INFINITY is only a suggection. Just make sure the co-location rule has high enough score so that it over powers the resource-stickiness of B (if you defined one - this should be the case if the resource stickiness of B is 0). _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
