Hello,<br><br>I have a question about mysql service monitoring into a MySQL HA cluster with pacemaker and DRBD, <br>I have set up a configuration to allow a failover between two nodes, it work fine when a node is offline (or standby), <span id="result_box" class="" lang="en"><span class="hps">but i want to know if it is</span> <span class="hps">possible to monitor</span> <span class="hps">the mysql service</span> <span class="hps"></span></span>to perform a failover if mysql is stopped or unavailable?<br>
<br>Thank you in advance for any response.<br><br>My crm configuration:<br><br>node node1 \<br> attributes standby="off"<br>node node2 \<br> attributes standby="off"<br>primitive Cluster-VIP ocf:heartbeat:IPaddr2 \<br>
params ip="x.x.x.x" broadcast="x.x.x.x" nic="eth0" cidr_netmask="21" iflabel="VIP1" \<br> op monitor interval="10s" timeout="20s" \<br>
meta is-managed="true"<br>
primitive datavg ocf:heartbeat:LVM \<br> params volgrpname="datavg" exclusive="true" \<br> op start interval="0" timeout="30" \<br> op stop interval="0" timeout="30"<br>
primitive drbd_mysql ocf:linbit:drbd \<br> params drbd_resource="drbd-mysql" \<br> op monitor interval="15s"<br>primitive fs_mysql ocf:heartbeat:Filesystem \<br> params device="/dev/datavg/data" directory="/data" fstype="ext3"<br>
primitive mysqld lsb:mysqld<br>group mysql datavg fs_mysql Cluster-VIP mysqld<br>ms ms_drbd_mysql drbd_mysql \<br> meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"<br>
location master-prefer-node-1 Cluster-VIP 25: node1<br>colocation mysql_on_drbd inf: mysql ms_drbd_mysql:Master<br>order mysql_after_drbd inf: ms_drbd_mysql:promote mysql:start<br>property $id="cib-bootstrap-options" \<br>
dc-version="1.1.5-1.1.el5-01e86afaaa6d4a8c4836f68df80ababd6ca3902f" \<br> cluster-infrastructure="openais" \<br> expected-quorum-votes="2" \<br> stonith-enabled="false" \<br>
no-quorum-policy="ignore" \<br> last-lrm-refresh="1332254494"<br>rsc_defaults $id="rsc-options" \<br> resource-stickiness="100"<br><br>