When I CHANGE MASTER TO MASTER_HOST=&#39;&#39; on both nodes, I can get a master/slave in pacemaker, as follows:<br><br>============<br>Last updated: Sat Oct 22 13:17:26 2011<br>Stack: Heartbeat<br>Current DC: vsaas-test-web-2 (b06e9042-c6a8-4acd-b81e-23728214a30a) - partition with quorum<br>
Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd<br>4 Nodes configured, unknown expected votes<br>1 Resources configured.<br>============<br><br>Node vsaas-test-web-1 (ee3e7d7e-7828-42c1-b093-b732fc3a2877): standby<br>
Node vsaas-test-web-2 (b06e9042-c6a8-4acd-b81e-23728214a30a): standby<br>Online: [ vsaas-test-sql-1 vsaas-test-sql-2 ]<br><br> Master/Slave Set: ms_mysql<br>     Masters: [ vsaas-test-sql-1 ]<br>     Slaves: [ vsaas-test-sql-2 ]<br>
<br>But, no replication from vsaas-test-sql-1 to vsaas-test-sql-2 and these errors in the log:<br><br>111022 13:04:56 [Note] Event Scheduler: Purging the queue. 0 events<br>111022 13:04:56  InnoDB: Starting shutdown...<br>
111022 13:04:57  InnoDB: Shutdown completed; log sequence number 0 44293<br>111022 13:04:57 [Note] /usr/sbin/mysqld: Shutdown complete<br><br>111022 13:09:18 [Note] Plugin &#39;FEDERATED&#39; is disabled.<br>111022 13:09:18  InnoDB: Started; log sequence number 0 44293<br>
111022 13:09:18 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use &#39;--relay-log=vsaas-test-sql-1-relay-bin&#39; to avoid this problem.<br>
111022 13:09:18 [Note] Event Scheduler: Loaded 0 events<br>111022 13:09:18 [Note] /usr/sbin/mysqld: ready for connections.<br>Version: &#39;5.1.49-1ubuntu8.1&#39;  socket: &#39;/var/run/mysqld/mysqld.sock&#39;  port: 3306  (Ubuntu)<br>
111022 13:09:18 [Note] Slave SQL thread initialized, starting replication in log &#39;mysql-bin.000001&#39; at position 106, relay log &#39;./vsaas-test-sql-1-relay-bin.000010&#39; position: 4<br>111022 13:09:18 [ERROR] Slave I/O: error connecting to master &#39;slaveuser@vsaas-test-sql-2:3306&#39; - retry-time: 60  retries: 86400, Error_code: 2013<br>
111022 13:09:45 [Note] Slave I/O thread killed while connecting to master<br>111022 13:09:45 [Note] Slave I/O thread exiting, read up to log &#39;mysql-bin.000001&#39;, position 106<br>111022 13:09:45 [Note] Error reading relay log event: slave SQL thread was killed<br>
111022 13:09:50 [Note] &#39;CHANGE MASTER TO executed&#39;. Previous state master_host=&#39;vsaas-test-sql-2&#39;, master_port=&#39;3306&#39;, master_log_file=&#39;mysql-bin.000001&#39;, master_log_pos=&#39;106&#39;. New state master_host=&#39;&#39;, master_port=&#39;3306&#39;, master_log_file=&#39;&#39;, master_log_pos=&#39;4&#39;.<br>
111022 13:10:58 [Note] /usr/sbin/mysqld: Normal shutdown<br><br>111022 13:10:58 [Note] Event Scheduler: Purging the queue. 0 events<br>111022 13:10:58  InnoDB: Starting shutdown...<br>111022 13:11:03  InnoDB: Shutdown completed; log sequence number 0 44293<br>
111022 13:11:03 [Note] /usr/sbin/mysqld: Shutdown complete<br><br>111022 13:11:29 [Note] Plugin &#39;FEDERATED&#39; is disabled.<br>111022 13:11:29  InnoDB: Started; log sequence number 0 44293<br>111022 13:11:29 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use &#39;--relay-log=mysqld-relay-bin&#39; to avoid this problem.<br>
111022 13:11:29 [ERROR] Failed to open the relay log &#39;./vsaas-test-sql-1-relay-bin.000001&#39; (relay_log_pos 4)<br>111022 13:11:29 [ERROR] Could not find target log during relay log initialization<br>111022 13:11:29 [ERROR] Failed to initialize the master info structure<br>
111022 13:11:29 [Note] Event Scheduler: Loaded 0 events<br>111022 13:11:29 [Note] /usr/sbin/mysqld: ready for connections.<br>Version: &#39;5.1.49-1ubuntu8.1&#39;  socket: &#39;/var/run/mysqld/mysqld.sock&#39;  port: 3306  (Ubuntu)<br>
<br><div class="gmail_quote">On Sat, Oct 22, 2011 at 3:34 PM, Raoul Bhatia [IPAX] <span dir="ltr">&lt;<a href="mailto:r.bhatia@ipax.at">r.bhatia@ipax.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hi!<div class="im"><br>
<br>
On 22.10.2011 20:33, Michael Marrotte wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
primitive p_mysql ocf:heartbeat:mysql \<br>
     params binary=&quot;/usr/sbin/mysqld&quot; config=&quot;/etc/mysql/my.cnf&quot;<br>
replication_user=&quot;slaveuser&quot; replication_passwd=&quot;slavepw&quot;<br>
test_passwd=&quot;root&quot; pid=&quot;/var/run/mysqld/mysqld.<u></u>pid&quot;<br>
socket=&quot;/var/run/mysqld/<u></u>mysqld.sock&quot; \<br>
     params additional_parameters=&quot;--skip-<u></u>slave-start&quot; \<br>
     op start interval=&quot;0&quot; timeout=&quot;120&quot; \<br>
     op stop interval=&quot;0&quot; timeout=&quot;120&quot; \<br>
     op promote interval=&quot;0&quot; timeout=&quot;120&quot; \<br>
     op demote interval=&quot;0&quot; timeout=&quot;120&quot; \<br>
     op monitor interval=&quot;30&quot; timeout=&quot;30&quot; OCF_CHECK_LEVEL=&quot;1&quot;<br>
ms ms_mysql p_mysql \<br>
     meta notify=&quot;true&quot; master-max=&quot;2&quot; clone-max=&quot;2&quot; target-role=&quot;Started&quot;<br>
property $id=&quot;cib-bootstrap-options&quot; \<br>
     dc-version=&quot;1.0.8-<u></u>042548a451fce8400660f6031f4da6<u></u>f0223dd5dd&quot; \<br>
     cluster-infrastructure=&quot;<u></u>Heartbeat&quot; \<br>
     stonith-enabled=&quot;false&quot; \<br>
     no-quorum-policy=&quot;ignore&quot; \<br>
     last-lrm-refresh=&quot;1319301867&quot;<br>
</blockquote>
<br></div>
master-max should be set to 1 if you&#39;re using a master-slave mysql<br>
setup.<br>
<br>
you can leave most replication related configuration out of your<br>
mysql config files. except for the server-id i think.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
When I start ms_sql, I&#39;m getting the following:<br>
<br>
Failed actions:<br>
     p_mysql:0_start_0 (node=vsaas-test-sql-1, call=73, rc=1,<br>
status=complete): unknown error<br>
     p_mysql:1_start_0 (node=vsaas-test-sql-2, call=63, rc=1,<br>
status=complete): unknown error<br>
</blockquote>
<br></div>
do all of the above files/paths exist?<br>
my configuration looks this:<br>
<br>
primitive wdb-mysql ocf:heartbeat:mysql \<br>
        op monitor interval=&quot;30&quot; timeout=&quot;30&quot; \<br>
        op monitor interval=&quot;300&quot; timeout=&quot;30&quot; OCF_CHECK_LEVEL=&quot;10&quot; \<br>
        op monitor interval=&quot;301&quot; role=&quot;Master&quot; timeout=&quot;30&quot; OCF_CHECK_LEVEL=&quot;10&quot; \<br>
        op monitor interval=&quot;31&quot; role=&quot;Slave&quot; timeout=&quot;30&quot; OCF_CHECK_LEVEL=&quot;10&quot; \<br>
        op monitor interval=&quot;15&quot; role=&quot;Slave&quot; timeout=&quot;30&quot; \<br>
        op monitor interval=&quot;10&quot; role=&quot;Master&quot; timeout=&quot;30&quot; \<div class="im"><br>
        op start interval=&quot;0&quot; timeout=&quot;120&quot; \<br>
        op stop interval=&quot;0&quot; timeout=&quot;120&quot; \<br></div>
        params config=&quot;/etc/mysql/my.cnf&quot; datadir=&quot;/data/db/mysql/data/&quot; socket=&quot;/var/run/mysqld/<u></u>mysqld.sock&quot; binary=&quot;/usr/sbin/mysqld&quot; additional_parameters=&quot;--<u></u>basedir=/usr --skip-external-locking --log-bin=/data/db/mysql/log/<u></u>mysql-bin.log --relay-log=mysqld-relay-bin &quot; pid=&quot;/var/run/mysqld/mysqld.<u></u>pid&quot; test_table=&quot;nagiostest.test_<u></u>table&quot; test_user=&quot;nagios&quot; test_passwd=&quot;xxxx&quot; replication_user=&quot;ruser&quot; replication_passwd=&quot;rpass&quot;<br>

<br>
which version of the mysql ra/which resource agent release do you use?<br>
<br>
and please provide the log files! otherwise, its hard to correctly<br>
diagnose the problem.<br>
<br>
cheers,<br>
raoul<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>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/<u></u>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-<u></u>foundation.org/enter_bug.cgi?<u></u>product=Pacemaker</a><br>
</blockquote></div><br>