I&#39;m new to Pacemaker and trying to understand exactly what it can and can&#39;t do.<div><br></div><div>I currently have a small, mysql master/slave cluster setup that is getting monitored within Heartbeat/Pacemaker:  What I&#39;d like to be able to do (and am hoping Pacemaker will do) is to have 1 node designated as Master and in the event of a failure, automatically promote a slave to master and realign all of the existing slaves to be slaves of the newly promoted master.  Currently what seems to be happening, however, is heartbeat correctly sees that a node goes down and pacemaker promotes it up to master but the replication is not adjusted so that it is now feeding everyone else.  It seems like this should be possible to do from within Pacemaker but I feel like I&#39;m missing a part of the puzzle.  Any suggestions would be appreciated.</div>

<div><br></div><div><br></div><div>Here&#39;s an output of my crm configure show:</div><div><br></div><div><div>node $id=&quot;7deca2cd-9a64-476c-8ea2-372bca859a4f&quot; four \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>attributes 172.17.0.130-log-file-p_sql=&quot;mysql-bin.000013&quot; 172.17.0.130-log-pos-p_sql=&quot;632&quot;</div>

<div>node $id=&quot;9b355ab7-8c81-485c-8dcd-1facedde5d03&quot; three \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>attributes 172.17.0.131-log-file-p_sql=&quot;mysql-bin.000020&quot; 172.17.0.131-log-pos-p_sql=&quot;106&quot;</div>

<div>primitive p_sql ocf:heartbeat:mysql \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>params config=&quot;/etc/mysql/my.cnf&quot; binary=&quot;/usr/bin/mysqld_safe&quot; datadir=&quot;/var/lib/mysql&quot; \</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>params pid=&quot;/var/lib/mysql/novaSQL.pid&quot; socket=&quot;/var/run/mysqld/mysqld.sock&quot; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>params max_slave_lag=&quot;120&quot; \</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>params replication_user=&quot;novaSlave&quot; replication_passwd=&quot;nova&quot; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>params additional_parameters=&quot;--skip-external-locking --relay-log=novaSQL-relay-bin --relay-log-index=relay-bin.index --relay-log-info-file=<a href="http://relay-bin.info">relay-bin.info</a>&quot; \</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>op start interval=&quot;0&quot; timeout=&quot;120&quot; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op stop interval=&quot;0&quot; timeout=&quot;120&quot; \</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>op promote interval=&quot;0&quot; timeout=&quot;120&quot; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op demote interval=&quot;0&quot; timeout=&quot;120&quot; \</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>op monitor interval=&quot;10&quot; role=&quot;Master&quot; timeout=&quot;30&quot; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op monitor interval=&quot;30&quot; role=&quot;Slave&quot; timeout=&quot;30&quot;</div>

<div>primitive p_sqlIP ocf:heartbeat:IPaddr2 \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>params ip=&quot;172.17.0.96&quot; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>op monitor interval=&quot;10s&quot;</div>

<div>ms ms_sql p_sql \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>meta target-role=&quot;Started&quot; is-managed=&quot;true&quot;</div><div>location l_sqlMaster p_sqlIP 10: three</div><div>location l_sqlSlave1 p_sqlIP 5: four</div>

<div>property $id=&quot;cib-bootstrap-options&quot; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>dc-version=&quot;1.0.9-unknown&quot; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>cluster-infrastructure=&quot;Heartbeat&quot; \</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>stonith-enabled=&quot;false&quot; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>no-quorum-policy=&quot;ignore&quot; \</div><div>

<span class="Apple-tab-span" style="white-space:pre">        </span>last-lrm-refresh=&quot;1313187103&quot;</div></div><div><br></div><div><br></div><div>Thanks!</div><div><br></div><div>-Mike.</div>