Andrew Beekhof escribió:
On Thu, Feb 28, 2008 at 1:30 PM, Adrian Chapela
<[EMAIL PROTECTED]> wrote:
Hello,
I am working in a script to make possible MySQL Master/Slave. This
script sends an error when it is promoted again if if had been failed.
When this happens the actually master (one slave promoted to master..)
is changed to slave and the new master will try to be a master. It will
fail and then it will be stopped and then again. It is a loop and it
won't final never.
I am looking for an option as resource stickness to do the same with a
Master. I will have two possible masters with preference for only one
but if one is a master the other couldn't be a master.
How can I do that ?
If I understand the question correctly, you need to use the crm_master
command in your RA.
See the drbd agent for how this is done.
I have stopped "developing" and testing this mysql agent because I have
another heartbeat problems.
In my agent I don't use crm_master, I am sending output values as you
can find in documentation: OCF_RUNNING_MASTER; OCF_FAILED_MASTER,
OCF_NOT_RUNNING, OCF_SUCCESS, etc.
You can find my "alpha release" here:
http://code.adrianchapela.net/heartbeat/mysql_slave_master
Regards!
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems