linux cluster

Hi all,

we have setup one cluster with two nodes.
-drbd
-corosync
-pacemaker
-mysql
-piranha

sometimes, we loose connection between the two nodes (node 1 and node 2). When this happens, the two nodes starts both the services as masters,because they don't see each other.
is there any way to tell to one node when connection is lost, for example " see if sec_vip of mysql is up. If so, do start the service drbd but not as master, do not start mysql, and do not start sec_vip. So in such way, only one node will be the master and we wouldnt have duplicated logs on databases or lost transactions.

Thank u very much for your time!!

Ervin

ps. i dont know if this is the right forum to post such thread, im new to this forum.

The cluster software LVS's extention KeepAlived is a pretty good choice for the health check between a master server and a slave server which is widely used with those architecture: LVS/Nginx/Haproxy+KeepAlived

Hi,

thank u for your answer.

I am reading documentation for keepalived, but seems to much information :).
Would you please show me how can this software solve my problem?

Thank you in advance!