Joe:<br><br>Yes.  There is now support for replication (master/slave):<br><ul><li>See if the installed MySQL RA (Resource Agent) includes support for replication (your paths might be different)<pre class="wiki">grep -i &#39;replication capability&#39; /usr/lib/ocf/resource.d/heartbeat/mysql
#                Marian Marinov, Florian Haas: add replication capability
</pre></li><li>If not (grep&#39;s empty), then grab the latest from <a class="missing wiki" href="https://trac.dechocorp.com/wiki/GitHub" rel="nofollow">GitHub?</a>:
<pre class="wiki">wget <a href="https://raw.github.com/ClusterLabs/resource-agents/master/heartbeat/mysql">https://raw.github.com/ClusterLabs/resource-agents/master/heartbeat/mysql</a> <br></pre></li></ul><ul><li>Backup the current MySQL RA, move the new one in place (paths might be different):
<pre class="wiki">mv /usr/lib/ocf/resource.d/heartbeat/mysql /usr/lib/ocf/resource.d/heartbeat/mysql.backup
mv mysql /usr/lib/ocf/resource.d/heartbeat/mysql
chmod +x /usr/lib/ocf/resource.d/heartbeat/mysql
</pre></li><li>You might have to do something like this if your paths are off -- Patch the new MySQL RA::
</li></ul><blockquote>
<blockquote>
<blockquote>
<blockquote>
<p>
Open /usr/lib/ocf/resource.d/heartbeat/mysql and replace:
</p>
<pre class="wiki">: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat}
. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
</pre><p>
with
</p>
<pre class="wiki">: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/resource.d/heartbeat}
. ${OCF_FUNCTIONS_DIR}/.ocf-shellfuncs
</pre></blockquote>
</blockquote>
</blockquote>
</blockquote><br>~Mike<br><br><br><div class="gmail_quote">On Mon, Oct 31, 2011 at 1:39 PM, Joe <span dir="ltr">&lt;<a href="mailto:weester@hotmail.com">weester@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <span style="color:rgb(34, 34, 34);font-family:palatino,georgia,verdana,arial,sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:19px;text-align:justify;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255, 255, 255);font-size:small;display:inline ! important;float:none">I have a quick question is the Master Slave setting in
      pacemaker only allowed in regards to a DRBD device? Can you use it
      to create other Master Slave relationships such as mysql . What I
      am trying to do is to failover mysql service on a primary to a
      secondary if the mysql service fails on the primary . Here is my
      RA Mysql Service.<br>
    </span><br>
    <u>crm configure show</u><br>
    node mysqldrbd01 \<br>
            attributes standby=&quot;off&quot;<br>
    node mysqldrbd02 \<br>
            attributes standby=&quot;off&quot;<br>
    primitive DRBD ocf:linbit:drbd \<br>
            params drbd_resource=&quot;QD-RES&quot; \<br>
            operations $id=&quot;DRBD-operations&quot; \<br>
            op start interval=&quot;0&quot; timeout=&quot;240&quot; \<br>
            op stop interval=&quot;0&quot; timeout=&quot;100&quot; \<br>
            op monitor interval=&quot;120&quot; \<br>
            meta target-role=&quot;started&quot;<br>
    primitive FAILOVER-ADDR ocf:heartbeat:IPaddr2 \<br>
            params ip=&quot;192.168.1.160&quot; nic=&quot;eth1&quot; \<br>
            operations $id=&quot;FAILOVER-ADDR-operations&quot; \<br>
            op monitor start-delay=&quot;0&quot; interval=&quot;10&quot; \<br>
            meta target-role=&quot;started&quot;<br>
    primitive PING-NET ocf:pacemaker:ping \<br>
            params multiplier=&quot;100&quot; host_list=&quot;192.168.1.5&quot; \<br>
            operations $id=&quot;PING-NET-operations&quot; \<br>
            op start interval=&quot;0&quot; timeout=&quot;60&quot; \<br>
            op stop interval=&quot;0&quot; timeout=&quot;60&quot; \<br>
            op monitor interval=&quot;60&quot; timeout=&quot;60&quot; start-delay=&quot;0&quot; \<br>
            meta target-role=&quot;started&quot;<br>
    primitive SRV-MOUNT ocf:heartbeat:Filesystem \<br>
            params device=&quot;/dev/drbd0&quot; directory=&quot;/data/&quot; fstype=&quot;ext3&quot;
    \<br>
            operations $id=&quot;SRV-MOUNT-operations&quot; \<br>
            op start interval=&quot;0&quot; timeout=&quot;60&quot; \<br>
            op stop interval=&quot;0&quot; timeout=&quot;60&quot; \<br>
            meta target-role=&quot;started&quot;<br>
    primitive res_mysqld_MYSQL_SRV lsb:mysqld \<br>
            operations $id=&quot;res_mysqld_MYSQL_SRV-operations&quot; \<br>
            op start interval=&quot;0&quot; timeout=&quot;15&quot; \<br>
            op stop interval=&quot;0&quot; timeout=&quot;15&quot; \<br>
            op monitor interval=&quot;15&quot; timeout=&quot;15&quot; start-delay=&quot;15&quot;<br>
    group AP-CLUST SRV-MOUNT FAILOVER-ADDR<br>
    ms DRBD-DATA DRBD \<br>
            meta clone-max=&quot;2&quot; notify=&quot;true&quot; target-role=&quot;started&quot;<br>
    ms MYSQ_MASTER_SLAVE res_mysqld_MYSQL_SRV \<br>
            meta clone-max=&quot;2&quot; notify=&quot;true&quot; target-role=&quot;started&quot;<br>
    clone PING-NET-CLONE PING-NET \<br>
            meta clone-max=&quot;2&quot;<br>
    location connected_node DRBD-DATA \<br>
            rule $id=&quot;connected_node-rule&quot; -inf: not_defined pingd or
    pingd lte 0<br>
    colocation AP-CLUST_on_DRBD inf: AP-CLUST DRBD-DATA:Master<br>
    order AP-CLUST_after_DRBD-DATA inf: DRBD-DATA:promote AP-CLUST:start<br>
    property $id=&quot;cib-bootstrap-options&quot; \<br>
            expected-quorum-votes=&quot;2&quot; \<br>
            stonith-enabled=&quot;false&quot; \<br>
            dc-version=&quot;1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87&quot;
    \<br>
            no-quorum-policy=&quot;ignore&quot; \<br>
            cluster-infrastructure=&quot;openais&quot; \<br>
            last-lrm-refresh=&quot;1320082592&quot;<br>
    rsc_defaults $id=&quot;rsc-options&quot; \<br>
            resource-stickiness=&quot;100&quot;<br>
    <br>
    <div style="color:rgb(34, 34, 34);font-family:palatino, georgia, verdana, arial, sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:19px;text-align:justify;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255, 255, 255);font-size:small">
<br>
      <br>
      <br>
      thank you very much,<br><font color="#888888">
      Joe<br>
    </font></div>
    <br>
  </div>

<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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
<br></blockquote></div><br>