I think you missed the op monitor operetion you primitive definition<br><br><div class="gmail_quote">Il giorno 22 marzo 2012 11:33, coma <span dir="ltr">&lt;<a href="mailto:coma.inf@gmail.com">coma.inf@gmail.com</a>&gt;</span> ha scritto:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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 lang="en"><span>but i want to know if it is</span> <span>possible to monitor</span> <span>the mysql service</span> <span></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=&quot;off&quot;<br>node node2 \<br>        attributes standby=&quot;off&quot;<br>primitive Cluster-VIP ocf:heartbeat:IPaddr2 \<br>


        params ip=&quot;x.x.x.x&quot; broadcast=&quot;x.x.x.x&quot; nic=&quot;eth0&quot; cidr_netmask=&quot;21&quot; iflabel=&quot;VIP1&quot; \<br>        op monitor interval=&quot;10s&quot; timeout=&quot;20s&quot; \<br>

        meta is-managed=&quot;true&quot;<br>
primitive datavg ocf:heartbeat:LVM \<br>        params volgrpname=&quot;datavg&quot; exclusive=&quot;true&quot; \<br>        op start interval=&quot;0&quot; timeout=&quot;30&quot; \<br>        op stop interval=&quot;0&quot; timeout=&quot;30&quot;<br>


primitive drbd_mysql ocf:linbit:drbd \<br>        params drbd_resource=&quot;drbd-mysql&quot; \<br>        op monitor interval=&quot;15s&quot;<br>primitive fs_mysql ocf:heartbeat:Filesystem \<br>        params device=&quot;/dev/datavg/data&quot; directory=&quot;/data&quot; fstype=&quot;ext3&quot;<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=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot;<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=&quot;cib-bootstrap-options&quot; \<br>


        dc-version=&quot;1.1.5-1.1.el5-01e86afaaa6d4a8c4836f68df80ababd6ca3902f&quot; \<br>        cluster-infrastructure=&quot;openais&quot; \<br>        expected-quorum-votes=&quot;2&quot; \<br>        stonith-enabled=&quot;false&quot; \<br>


        no-quorum-policy=&quot;ignore&quot; \<br>        last-lrm-refresh=&quot;1332254494&quot;<br>rsc_defaults $id=&quot;rsc-options&quot; \<br>        resource-stickiness=&quot;100&quot;<br><br>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera<br>