Hello, in the past I have a problem with Pacemaker. This problem was a
inncesary suffling of master/slave resource
(http://developerbugs.linux-foundation.org/show_bug.cgi?id=1852).
Now I can't do a failover. I started two heartbeat servers and the mysql
servers startup OK, heartbeat is OK and all constraints seems to be OK.
Then I failed the master mysql server. Heartbeat detects the problem but
It doesn't do failover. If I stop the heartbeat, the result is the same.
Constraints:
<constraints>
<rsc_location rsc="MySQL_Server" id="loc:mysql_slave_master">
<rule id="loc:mysql_slave_master:debianQuagga2" role="master"
score="100">
<expression id="loca:mysql_slave_master:debianQuagga2"
attribute="#uname" operation="eq" value="debianQuagga2"/>
</rule>
<rule id="my_resource:connected:rule" score="-INFINITY"
boolean_op="or">
<expression id="my_resource:connected:expr:undefined"
attribute="pingd" operation="not_defined"/>
<expression id="my_resource:connected:expr:zero"
attribute="pingd" operation="lte" value="0"/>
</rule>
</rsc_location>
</constraints>
Resources:
<resources>
<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="40s" prereq="nothing"/>
<op id="mysqld-child-start" name="start" prereq="nothing"/>
<op id="mysqld-child-stop" name="stop" timeout="600"
on_fail="fence"/>
<op name="monitor" id="mysql-child-start-Slave"
interval="10s" timeout="10s" role="Slave"/>
<op name="monitor" id="mysql-child-start-Master"
interval="5s" timeout="10s" role="Master"/>
</operations>
</primitive>
</master_slave>
<clone id="pingd">
<instance_attributes id="pingd">
<attributes>
<nvpair id="pingd-clone_node_max" name="clone_node_max"
value="1"/>
</attributes>
</instance_attributes>
<primitive id="pingd-child" provider="heartbeat" class="ocf"
type="pingd">
<operations>
<op id="pingd-child-monitor" name="monitor" interval="20s"
timeout="40s" prereq="nothing"/>
<op id="pingd-child-start" name="start" prereq="nothing"/>
</operations>
<instance_attributes id="pingd_inst_attr">
<attributes>
<nvpair id="pingd-dampen" name="dampen" value="5s"/>
<nvpair id="pingd-multiplier" name="multiplier" value="100"/>
</attributes>
</instance_attributes>
</primitive>
</clone>
</resources>
===============
Thank you!!
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems