[Linux-HA] Sequence of service & resource transfer

Lewis Shobbrook mylists at blue-matrix.org
Mon Sep 4 20:55:13 MDT 2006


Hi All,

I have a question concerning the transfer of services & resources.
When I perform a heartbeat service restart, I note that the order that the 
services & resources are listed in the hareresources file, translates to the 
order that they stop and are restarted on the takeover node.  
The problem is that I'd like to use squid and mysql on a drbd volume and use 
drbdlinks to update the relevant db & cache directories.  The issue for me is 
that the order in which the services stop need to be different from the order 
they start during a resource takeover.
I understand that in the event or genuine failure that corruptions may ocurr 
on the primary node and prevent the services restarting successfully on the 
takeover node; the services are not mission critical I'm sure I can cope with 
it if it occurs.

E.g. I 'd  like mysql and squid to terminate before drbdlinks attempts to 
modify the directory structure in the node allowing the resource takeover, 
but I'd like drbdlinks to modify the directory structure before the mysql & 
squid services start in the node assuming the resources.

Can anyone direct me as to how I might best achieve this, or if it is 
currently possible?

Cheers,

Lew


More information about the Linux-HA mailing list