On Tue, Mar 18, 2008 at 11:16 AM, Andrew Beekhof <[EMAIL PROTECTED]> wrote:
>
> On Tue, Mar 11, 2008 at 3:13 PM, Andreas Kurz <[EMAIL PROTECTED]> wrote:
>  > On Tue, Mar 11, 2008 at 2:32 PM, Dejan Muhamedagic <[EMAIL PROTECTED]> 
> wrote:
>  >  > Hi,
>  >  >
>  >  >
>  >  >  On Tue, Mar 11, 2008 at 11:56:07AM +0100, Andreas Kurz wrote:
>  >  >  > On Tue, Mar 11, 2008 at 11:02 AM, Sebastian Reitenbach
>  >  >  > <[EMAIL PROTECTED]> wrote:
>  >  >  > > Hi,
>  >  >  > >
>  >  >  > >  I want to achieve the following:
>  >  >  > >  I have two groups of resources, these shall run on the same host, 
> and
>  >  >  > >  startup in a given order.
>  >  >  > >
>  >  >  > >  Therefore I created an order and an collocation constraint.
>  >  >  > >  So group1 starts before group2, and the collocation says, if 
> group1 is not
>  >  >  > >  able to run on a node, group2 will not start.
>  >  >  > >
>  >  >  > >  However, if all resources in group1 are started, then the 
> resources in
>  >  >  > >  group2 are started too. But when I then shutdown any single 
> resource in
>  >  >  > >  group1, then group2 stops working too.
>  >  >  > >  I am not sure, whether my collocation or order is the reason for 
> the
>  >  >  > >  observed behavior.
>  >  >  >
>  >  >  > I have not tried it by myself but there are these "Advisory-Only
>  >  >  > Ordering" constraints:
>  >  >  >
>  >  >  > <rsc_order id="orderid" from="res2" to="res1" score="0"/>
>  >  >
>  >  >  Good advice. Though even when all of the group1 is stopped,
>  >  >  group2 won't stop either.
>  >
>  >  According to the documentation it should ... and after doing some
>  >  ptests, I see it does ;-). If the complete group1 is stopped, group2
>  >  is stopped to. If only one resource in group1 is stopped, group2 does
>  >  nothing.
>
>  Maybe I've been on vacation too long, but that sounds strange.
>  Where did I write that?  I'd have expected group2 to keep running in
>  either case.

I read it in the "Configuration Explained" pdf ... Advisory Ordering
... and it is also mentioned in your "Ordering Explained" pdf.

By the way, I found it a little bit confusing that "from" and "to" are
interchanged in "Ordering Explained" without mentioning that this is
not the default behaviour ( type=after ) ... e.g. :

<rsc_order from=A to=B>
Start A before starting B and stop B before stopping A

... or A and B are interchanged, as you prefer ;-)

Regards,
Andreas

>
>
> _______________________________________________
>  Linux-HA mailing list
>  [email protected]
>  http://lists.linux-ha.org/mailman/listinfo/linux-ha
>  See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to