[Linux-HA] "one-way" dependency
Alan Robertson
alanr at unix.sh
Wed Feb 28 09:11:20 MST 2007
Yan Fitterer 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?
The symmetrical option should be applited to the rsc_colocation item I
believe, instead of the rsc_order. AND you have to be running >= 2.0.8
Ordering has never been symmetric - as that actually doesn't make any
sense. A cannot be before B and at the same time have B be before A.
--
Alan Robertson <alanr at unix.sh>
"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
More information about the Linux-HA
mailing list