[Linux-HA] "one-way" dependency

Andrew Beekhof beekhof at gmail.com
Sun Mar 4 01:04:50 MST 2007


On 3/3/07, Max Hofer <max.hofer at apus.co.at> wrote:
> On Wednesday 28 February 2007 23:33, Yan Fitterer wrote:
> > >> > 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.
> > >> What's the deficiency? An how would the SLES10 SP1 version behave?
> > >> Sorry -  I need to explain this to the customer.
> > >
> > > The rsc_colocation constraint in <2.0.8 is bi- directional. If one can't
> > > run, the other side is assumed to also be unable to run.
> > >
> > > (Another effect of this is causing an entire group to stop as opposed to
> > > bringing the group partially online up to the failing resource, at
> > > least.)
> > >
> > > In >=2.0.8, it is no longer bi- directional by default and behaves as
> > > you'd expect it to.
> >
> > Well - I must have unusual expectation ... After upgrading to 2.0.8-0.10 I still have:
> >
> > For given resource group A with 4 resources (ABCD), with the last resource (D) set to "target_role = stopped".
> >
> > If that group is part of a colocation constraint (never run group A with group B), then the whole group is stopped.
> >
> > As soon as I remove the colocation constraint, resources A, B and C start.
> A,B,C of which group?
>
> It is a bit hard to follow your email because you have a group A and a resources A.
> Do i understand you correctly: you have a group GA with resource A,B,C,D and you
> have a group GB with which resources (also A,B,C,D?)?
>
> Maybe following point of view will help you ... groups dont exist ... they are only a short form
> of describing primitives with certain colocation and order rules .... like colocate all primtives
> on the same node, start A after B, C after B ... stop D before C, stop C before B ...
>
> If you make a dependency on form a group GB to a group GA all the primtives of group
> GB will get the same dependency to all primitives of GA.
>
> > This is _NOT_ what I'd expect.

sorry, i should have replied here too (there was a private thread
dealing with this as well).

Yan was experiencing a bug that is now fixed in:
    http://hg.beekhof.net/lha/crm-dev/rev/b7ed45034f09

> >
> > AS well, my original problem is still not fixed:
> >
> > With colocation constraint: Group B depends on Group A
> >
> > If resource A in group B is "target_role = stopped", none of the resources in group A or B start.
> > I have to set all resources in groups A and B to "started".
>
> It would help if you put the cib in the email so we could help you better.
> cibadmin -Q > cib.xml
> And send this cib -- then help is easier.
>
>
> kind regards
> Max
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>


More information about the Linux-HA mailing list