Adrian Chapela wrote:
Hello,

I am trying to make a MySQL system with high availability. One Master server and one slave server wich will assume the master functions when the master server goes down.

My problem is to make a rule for the execution in slave server when master server goes down. When master server goes down, the slave server assume the VIP and then must execute a script to test something and then the server can go up but it can't go up until the first test has finished.

Can you say me how to write this rule ??

Thank you!

Can you give a bit more details on what you've gotten setup so far? Are you using heartbeat v2? Are you using the /etc/ha.d/haresources file or CRM? Are you using DRBD?

In my case (still working on DRBD issues) my ha.cf file is:

http://tle-bu.org/misc/ha.cf.vash

And my haresources file is:

http://tle-bu.org/misc/haresources.vash

Do note though that the haresources file above may be broken. As I mentioned, I am currently working on a DRBD problem. However, the commented out line (second from the bottom) works fine.

If you can provide more details and/or ask specific questions I might be able to help you more. At the moment though, I'm still learning as well, though I have gotten past a few of the early trip-ups.

Madi
_______________________________________________
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