Hello again,
A few days ago I sent to you a MySQL Master/Slave OCF Script. After a
hard test I find some errors on the script (Now, some are partially
solved but I didn't upload the script for now...) and in my config:
This is the config of Master/Slave:
<master_slave id="MySQL_Server">
<instance_attributes id="mysql_server_1">
<attributes>
<nvpair id="mysql_server_nv1" name="clone_max" value="2"/>
<nvpair id="mysql_server_nv2" name="clone_node_max" value="1"/>
<nvpair id="mysql_server_nv3" name="master_max" value="1"/>
<nvpair id="mysql_server_nv4" name="master_node_max"
value="1"/>
</attributes>
</instance_attributes>
<primitive id="mysqld-child" class="ocf"
type="mysql_slave_master" provider="heartbeat">
<operations>
<op id="mysqld-child-monitor" name="monitor" interval="20s"
timeout="19s" prereq="nothing"/>
<op id="mysqld-child-start" name="start" prereq="nothing"/>
</operations>
</primitive>
</master_slave>
I think that this line: <op id="mysqld-child-monitor"
name="monitor" interval="20s" timeout="19s" prereq="nothing"/> is the
line to config monitoring operations and the time to do that. In this
line I think interval is 20 seconds, but I am testing and I manually
make an error in the Master MySQL server to test failover. I saw that
monitoring operation isn't being executed and the error isn't detected
by Heartbeat.
If I run the script manually the error is detected but Heartbeat is not
running the script in monitor mode and it don't know the problem. This
is the crm_mon output:
Last updated: Thu Feb 21 13:30:58 2008
Current DC: semsor10 (2658f3c0-66a9-4348-b598-b9ff49769be7)
2 Nodes configured.
3 Resources configured.
============
Node: debian_master (2658f3c0-66a9-4348-b598-b9ff49769be7): online
Node: debian (965ec846-da89-468a-b31e-9eea5af911e5): online
Resource Group: IP_ADDR
IPaddr (heartbeat::ocf:IPaddr): Started debian_master
Master/Slave Set: MySQL_Server
mysqld-child:0 (heartbeat::ocf:mysql_slave_master): Started
debian
mysqld-child:1 (heartbeat::ocf:mysql_slave_master): Master
debian_master
Clone Set: pingd
pingd-child:0 (heartbeat::ocf:pingd): Started debian_master
pingd-child:1 (heartbeat::ocf:pingd): Started debian
Are you looking some strange ?
Thank you!
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems