Raoul Bhatia [IPAX] wrote:
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
 > ...

please see the attached cib_using_after.xml.gz

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
 > ...

please see the attached cib_using_before.xml.gz

i now tested the following constraint (leaving out the type attribute),
and achieved my goal.

<!-- action from type to_action to (VALID) -->
<rsc_order id="drbd_before_fs_mysql" action="start" from="fs_mysql" to_action="promote" 
to="ms_drbd_mysql" />

cheers,
raoul
--
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          [EMAIL PROTECTED]
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            [EMAIL PROTECTED]
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________

Attachment: cib_using_after.xml.gz
Description: application/gzip

Attachment: cib_using_before.xml.gz
Description: application/gzip

_______________________________________________
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