<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kill the radio &#187; openais</title>
	<atom:link href="http://blog.killtheradio.net/tag/openais/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.killtheradio.net</link>
	<description>or die trying</description>
	<lastBuildDate>Tue, 17 Aug 2010 23:37:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>More cluster fun (MySQL on Pacemaker)</title>
		<link>http://blog.killtheradio.net/technology/more-cluster-fun-mysql-on-pacemaker/</link>
		<comments>http://blog.killtheradio.net/technology/more-cluster-fun-mysql-on-pacemaker/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 00:31:53 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[clusters]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[openais]]></category>
		<category><![CDATA[pacemaker]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=291</guid>
		<description><![CDATA[I decided to try to get more than an IP address clustered on my new OpenAIS setup. I was successful. I have two MySQL db nodes (db1, db2) running at 10.0.2.10[1,2]. Make sure you turn off all mysqld instances before proceeding&#8230;pacemaker will start/manage them for you. # chmod a-x /etc/rc.d/rc.mysqld (run on both nodes!) # [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to try to get more than an IP address clustered on my new <a href="http://blog.killtheradio.net/technology/pacemaker-openais-and-your-average-clusterfuck/">OpenAIS setup</a>. I was successful. I have two MySQL db nodes (db1, db2) running at 10.0.2.10[1,2]. Make sure you turn off all mysqld instances <em>before proceeding</em>&#8230;pacemaker will start/manage them for you.</p>
<pre># chmod a-x /etc/rc.d/rc.mysqld	(run on both nodes!)
# crm configure property no-quorum-policy="ignore"
# crm configure primitive ip_mysql ocf:heartbeat:IPaddr2 params ip="10.0.2.21"
# crm configure primitive mysqld \
	ocf:heartbeat:mysql \
	params binary="/usr/local/bin/mysqld_safe" \
	config="/etc/my.cnf" \
	socket="/srv/tmp/sockets/mysql.sock" \
	datadir="/srv/var/mysql" \
	user="mysql" \
	test_user="ha" \
	test_password="lololol" \
	test_table="beeets.omglolwtf" \
	op monitor interval="20s" timeout="20s" \
	meta migration-threshold="10" target-role="Started"
# crm configure group mysql mysqld ip_mysql</pre>
<p>That should do it. Here&#8217;s a step-by-step:</p>
<ol>
<li>First, we turn off automatic execution of mysql on node startup. Since pacemaker will be managing mysql, we don&#8217;t want two instances conflicting.</li>
<li>Turn off the quorum checking. Since we&#8217;re only running two nodes, it doesn&#8217;t make sense to stop all services if on of them goes down. In fact, that would sort of defeat the purpose.</li>
<li>Add an IP address that will represent our MySQL cluster.</li>
<li>Add the actual definition for MySQL. Obviously, you&#8217;ll be substituting your own values in for mine.</li>
<li>Configure a group. Now MySQL will always run on the same machine as the ip_mysql (we want this!).</li>
</ol>
<p>With this setup, you can contact MySQL at 10.0.2.21. A failure of db1 will result in db2 assimilating the 10.0.2.21 IP and the MySQL service. Pretty wicked. Next up, How this can relate to replication and/or DRBD.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/more-cluster-fun-mysql-on-pacemaker/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pacemaker, OpenAIS, and your average cluster(fuck)</title>
		<link>http://blog.killtheradio.net/technology/pacemaker-openais-and-your-average-clusterfuck/</link>
		<comments>http://blog.killtheradio.net/technology/pacemaker-openais-and-your-average-clusterfuck/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 03:57:53 +0000</pubDate>
		<dc:creator>Andrew Lyon</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[clusters]]></category>
		<category><![CDATA[ha computing]]></category>
		<category><![CDATA[openais]]></category>
		<category><![CDATA[pacemaker]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://blog.killtheradio.net/?p=261</guid>
		<description><![CDATA[Recently I read about compute clusters and how they&#8217;re used. I just had to try it. I successfully installed (from source) OpenAIS and Pacemaker (guide here) on Slackware 12. The experience was, overall, extremely smooth. I had a few hiccups I can only attribute to my not being able to follow directions, but with a [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I read about compute clusters and how they&#8217;re used. I just had to try it. I successfully installed (from source) OpenAIS and Pacemaker (<a rel="nofollow" href="http://www.clusterlabs.org/wiki/Install#From_Source" target="_blank">guide here</a>) on Slackware 12. The experience was, overall, extremely smooth. I had a few hiccups I can only attribute to my not being able to follow directions, but with a few Makefile tweaks and some very small code tweaks, I got everything to compile and run.</p>
<p>Keep in mind, this is all using <a rel="nofollow" href="http://www.virtualbox.org/" target="_blank">VirtualBox</a> VMs, so once the cluster stuff is installed on one machine, I can more or less copy and paste and have a 3-computer linux cluster running from the comfort of Windows 7 (it&#8217;s just for games, I swear!!). Aside from having to mess a bit with the networking in VirtualBox, everything was almost completely automatic.</p>
<p>The next step is to figure out DRBD and how it fits in with all this HA stuff. I&#8217;ve been trying to find a guide on using Pacemaker with MySQL, but no guide is written JUST for MySQL&#8230;it&#8217;s all MySQL with DRBD. I&#8217;d rather not complicate things too much until I can figure out how the hell this is all working.</p>
<p>Anyway, I&#8217;ll report back with my findings sometime soon.</p>
<p>Please note &#8211; at the time of installing (about 6 or 7 days ago), there was a bug in the Debian packaged distribution of OpenAIS/Pacemaker that makes the &#8220;expected votes&#8221; value of the quorum formula &gt; 3 billion. Unless you have 3 billion machines laying around, you will NOT be able to start any resources unless you configure to <strong>ignore the quorum</strong>. I&#8217;ve confirmed this bug on the IRC channel, and to my knowledge, it still exists.</p>
<p>My advice is to compile from source (but that&#8217;s always my advice anyway :) )</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.killtheradio.net/technology/pacemaker-openais-and-your-average-clusterfuck/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
