[Linux-HA] "one-way" dependency
Lars Marowsky-Bree
lmb at suse.de
Wed Feb 28 08:20:14 MST 2007
On 2007-02-28T14:53:14, Yan Fitterer <yfitterer at novell.com> wrote:
> I have two resource groups: A and B.
>
> I need:
> 1) B depends on A
> 2) A does NOT depend on B
> 3) A and B must always run on the same node.
>
> Currently, I have:
>
> <constraints>
> <rsc_colocation id="CL_A_B" from="A" to="B" score="INFINITY"/>
> <rsc_order id="OR_B_1" from="B" type="after" to="A" action="start" symmetrical="false"/>
> <rsc_order id="OR_B_2" from="B" type="before" to="A" action="stop" symmetrical="false"/>
> </constraints>
>
>
> But if I stop B, A gets stopped as well.
>
> How can I solve this?
First, you're hitting a deficiency in rsc_colocation constraints on the
version you're running. This will be fixed by the heartbeat version in
SLES10 SP1.
Second, your rsc_order constraints are pointless - a single rsc_order
symmetrical constraint would have done the same: <rsc_order id="A_B"
from="B" to="A"/>
--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
More information about the Linux-HA
mailing list