[Linux-HA] Resend: Stopped working between 8c5da9553636 and 2.1.2-4

Andrew Beekhof beekhof at gmail.com
Wed Oct 10 02:02:27 MDT 2007


On 10/9/07, David S. Madole <david at madole.net> wrote:
> > On 10/9/07, Andrew Beekhof <beekhof at gmail.com> wrote:
> >>
> >>The relevant change is likely to be this one:
> >>   http://hg.beekhof.net/lha/crm-dev/rev/702e4f418ca8
> >>
> >> Take this constraint in your config:
> >>           <rsc_order id="cyrus_drbd_after_address" from="cyrus_drbd"
> >> action="promote" type="after" to="cyrus_address" to_action="start"/>
> >>
> >> Prior to the change, if cyrus_address couldn't be started then
> >> cyrus_drbd would still be promoted.  To prevent cyrus_drbd from
> >> starting in such situations one had to add score=INFINITY to the
> >> constraint.
> >>
> >> We decided that this was counter intuitive and changed the default.
> >>
> >> btw. are you sure you dont mean the other way around?  promote drbd
> >> then add the address?
>
> It's this way simply because I started experimenting with the ipaddr2
> resource first because it's simple and then built from there. Also, my
> application specifically binds the cluster resource address (not *.*) so
> it needs to be somewhere before the application actually starts, rather
> than at the end, so I just left it at the beginning.
>
>
> > fixed in http://hg.beekhof.net/lha/crm-dev/rev/4d8f7cfb7188
> > (with a regression test added to prevent the problem from re-occuring)
>
> This is better, as both DRBD instances now promote to master, but the
> dependent resources still do not start after the promotion.

thats because their monitor actions are returning 5

             <lrm_rsc_op id="named_volgroup_monitor_0"
operation="monitor" crm-debug-origin="build_active_RAs"
transition_key="11:0:2ec3b853-d18b-403e-afec-3ec79c9bfd2b"
transition_magic="4:5;11:0:2ec3b853-d18b-403e-afec-3ec79c9bfd2b"
call_id="10" crm_feature_set="2.0" rc_code="5" op_status="4"
interval="0" op_digest="42cb540c0d21749cae8b867ee233f3b2"/>

According to the OCF spec:
 *	EXECRA_NOT_INSTALLED = 5,



More information about the Linux-HA mailing list