[Linux-HA] resource ordering

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Tue Oct 9 02:17:24 MDT 2007


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.          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
____________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cib_using_after.xml.gz
Type: application/gzip
Size: 2854 bytes
Desc: not available
URL: <http://lists.linux-ha.org/pipermail/linux-ha/attachments/20071009/17ebe127/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cib_using_before.xml.gz
Type: application/gzip
Size: 2930 bytes
Desc: not available
URL: <http://lists.linux-ha.org/pipermail/linux-ha/attachments/20071009/17ebe127/attachment-0001.bin>


More information about the Linux-HA mailing list