[Linux-HA] resource ordering
Andrew Beekhof
beekhof at gmail.com
Tue Oct 9 02:20:46 MDT 2007
On 10/9/07, Raoul Bhatia [IPAX] <r.bhatia at ipax.at> wrote:
> hello andrew, hello all,
>
> i am once more confused about the inner working of rsc_order.
>
> in all emails and in all docs (e.g. on
> http://hg.linux-ha.org/dev/file/tip/crm/crm-1.0.dtd) one can read:
I'd suggest:
http://oss.beekhof.net/~beekhof/heartbeat/docs/Ordering-Explained.pdf
>
> > rsc_ordering
> >
> > Read as:
> > to_action to type action from
it seems i got that backwards. it should be:
action from type to_action to
the above link has it right however.
> ok, so i have got my rsc_order, for starting the filesystem after the
> drbd device, as below.
>
> > <rsc_order id="drbd_before_fs" to_action="start" to="fs_mysql" type="after" action="promote" from="ms_drbd_mysql" />
>
> but this does not work! the ptest output reads:
>
> > ...
> > ptest[5279]: 2007/10/09_10:08:42 debug: unpack_rsc_order: order-5 (drbd_before_fs): fs_mysql_start before ms_drbd_mysql_promote flags=0x000112
> > ptest[5279]: 2007/10/09_10:08:42 debug: unpack_rsc_order: order-6 (drbd_before_fs): ms_drbd_mysql_demote before fs_mysql_stop flags=0x000101
> > ...
>
> changing the type to before (which would effectivly revert the default
> meaning of to/from) solves the issue, and the resources are started as
> expected!
>
> my rsc_order contraint now looks like:
> > <rsc_order id="drbd_before_fs" to_action="start" to="fs_mysql" type="before" action="promote" from="ms_drbd_mysql" />
>
> and the ptest output reads:
> > ...
> > ptest[4090]: 2007/10/09_10:07:36 debug: unpack_rsc_order: order-5 (drbd_before_fs): ms_drbd_mysql_promote before fs_mysql_start flags=0x000112
> > ptest[4090]: 2007/10/09_10:07:36 debug: unpack_rsc_order: order-6 (drbd_before_fs): fs_mysql_stop before ms_drbd_mysql_demote flags=0x000101
> > ...
>
> which point do i miss? what am i not able to get in the simple
> description: "to_action to type action from" ?
>
> thank you,
> raoul
> --
> ____________________________________________________________________
> DI (FH) Raoul Bhatia M.Sc. email. r.bhatia at ipax.at
> Technischer Leiter
>
> IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at
> Barawitzkagasse 10/2/2/11 email. office at ipax.at
> 1190 Wien tel. +43 1 3670030
> FN 277995t HG Wien fax. +43 1 3670030 15
> ____________________________________________________________________
> _______________________________________________
> 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