<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></blockquote><div><br>Yes.  I usually have it at 1, but was trying different settings here.  <br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
you can leave most replication related configuration out of your<br>
mysql config files. except for the server-id i think.</blockquote><div><br>OK.  I&#39;ll try striping that stuff out of my.cnf and see how it goes.<br><br>What about in the DB?  Should  CHANGE MASTER TO MASTER_HOST= be set?<br>
If I set it to empty, then I can get Pacemaker to show my nodes ina master/slave configuration, but when I write to the master, changes do not get replicated to the slave.  If I don&#39;t use Pacemaker and start the DB manually, replication works great when I have  CHANGE MASTER TO MASTER_HOST= set properly, i.e. pointing at the other node, log file and position.  When that&#39;s working, I shut down MySQL manually and then cleanup the resources and try to start with Pacemaker, but get the errors I&#39;ve included here.<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><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></blockquote><div><br>Yes. They do.  I did have a problem early where I had permission problems, but worked that out.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

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></blockquote><div><br>I&#39;m on Ubuntu 10.10 and it had an older version of the mysql agent that didn&#39;t include replication.  So, I grabber the latest off of github and patched up the shellfunc path like you suggested, previously.  That got rid of of bunch of errors and looked promising about 8 hours ago :)<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
and please provide the log files! otherwise, its hard to correctly<br>
diagnose the problem.<br></blockquote><div><br>Please find logs attached and let me know if you&#39;d like to look at some others.<br><br>Thanks for all the help.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<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>