Hello everyone<br><br>I've having trouble trying to set up a simple MySQL failover (make Pacemaker start it on one node, and if it shuts down, start it on the other). CRM shows as if MySQL is not running but it actually is, and since it doesn't see it that way, it tries to start it on the other node as well.<br>
I'm using Debian Lenny, corosync 1.2.0, Pacemaker 1-0-051b78d5f321 and cluster glue<br><br>Thanks for any help!<br><br>This is my setup:<br><br>hpblade02:~# crm configure show<br>node hpblade01<br>node hpblade02 \<br>
    attributes standby="off"<br>primitive MySQLIP ocf:heartbeat:IPaddr \<br>    params ip="10.10.99.57" cidr_netmask="32" \<br>    op monitor interval="30s" \<br>    meta target-role="Started"<br>
primitive mysql ocf:heartbeat:mysql \<br>    op monitor interval="30s" timeout="60s" \<br>    meta target-role="Started"<br>location cli-prefer-mysql mysql \<br>    rule $id="cli-prefer-rule-mysql" inf: #uname eq hpblade01<br>
property $id="cib-bootstrap-options" \<br>    dc-version="1.0.7-051b78d5f32195bd9d83447343606211993169e7" \<br>    cluster-infrastructure="openais" \<br>    expected-quorum-votes="2" \<br>
    stonith-enabled="false" \<br>    no-quorum-policy="ignore" \<br>    last-lrm-refresh="1266599381"<br>rsc_defaults $id="rsc-options" \<br>    resource-stickiness="100"<br>
hpblade02:~# <br><br>And here is crm_mon output:<br><br>hpblade02:~# crm_mon<br>Defaulting to one-shot mode<br>You need to have curses available at compile time to enable console mode<br>============<br>Last updated: Fri Feb 19 14:16:30 2010<br>
Stack: openais<br>Current DC: hpblade01 - partition with quorum<br>Version: 1.0.7-051b78d5f32195bd9d83447343606211993169e7<br>2 Nodes configured, 2 expected votes<br>2 Resources configured.<br>============<br><br>Online: [ hpblade01 hpblade02 ]<br>
<br> MySQLIP    (ocf::heartbeat:IPaddr):    Started hpblade01<br><br>Failed actions:<br>    mysql_start_0 (node=hpblade01, call=22, rc=-2, status=Timed Out): unknown exec error<br>    mysql_start_0 (node=hpblade02, call=24, rc=-2, status=Timed Out): unknown exec error<br>
hpblade02:~#<br>