<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: openais: an alternative to clvm with cman</title>
	<atom:link href="http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/</link>
	<description>random bits for your terminal</description>
	<lastBuildDate>Thu, 02 Feb 2012 05:31:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dave</title>
		<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/comment-page-1/#comment-19847</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sun, 10 Jul 2011 04:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=106#comment-19847</guid>
		<description>I&#039;ve now also had success using clvm directly with corosync on Squeeze by compiling clvm by changing --with-clvmd=cman to --with-clvmd=corosync.

The above patch to /etc/init.d/corosync is still needed if you plan to layer o2cb (OCFS2) on your cLVM as o2cb depends upon openais services.

Sorry JCL - I really should create my own blog ;)

Dave</description>
		<content:encoded><![CDATA[<p>I&#8217;ve now also had success using clvm directly with corosync on Squeeze by compiling clvm by changing &#8211;with-clvmd=cman to &#8211;with-clvmd=corosync.</p>
<p>The above patch to /etc/init.d/corosync is still needed if you plan to layer o2cb (OCFS2) on your cLVM as o2cb depends upon openais services.</p>
<p>Sorry JCL &#8211; I really should create my own blog ;)</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/comment-page-1/#comment-19615</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 05 Jul 2011 06:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=106#comment-19615</guid>
		<description>To help Googlers find this page, the output you would receive when starting clvmd -d without the above patch would be similar to this:

root@xen5.tst:/etc/corosync# clvmd -d
CLVMD[7276f7a0]: Jul  5 16:27:12 CLVMD started
CLVMD[7276f7a0]: Jul  5 16:27:12 Cannot initialise OpenAIS lock service: 12

CLVMD[7276f7a0]: Jul  5 16:27:12 Can&#039;t initialise cluster interface
  Can&#039;t initialise cluster interface</description>
		<content:encoded><![CDATA[<p>To help Googlers find this page, the output you would receive when starting clvmd -d without the above patch would be similar to this:</p>
<p><a href="mailto:root@xen5.tst">root@xen5.tst</a>:/etc/corosync# clvmd -d<br />
CLVMD[7276f7a0]: Jul  5 16:27:12 CLVMD started<br />
CLVMD[7276f7a0]: Jul  5 16:27:12 Cannot initialise OpenAIS lock service: 12</p>
<p>CLVMD[7276f7a0]: Jul  5 16:27:12 Can&#8217;t initialise cluster interface<br />
  Can&#8217;t initialise cluster interface</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/comment-page-1/#comment-19614</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 05 Jul 2011 06:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=106#comment-19614</guid>
		<description>Thanks for the kind words ;)

I hit another issue with using a patched clvm on Debian Squeeze today which I have resolved using the following patch to /etc/init.d/corosync (thanks to Michael Schwartzkopff who has alerted the Debian corosync maintainer). As of corosync-1.2.1-4 this is not yet patched in the Debian package. I have provided the required change as a unified diff here for people who follow the above and hit this issue. In addition to this patch please add

OPENAIS_SERVICES=yes

to your /etc/default/corosync.

--- /etc/init.d/corosync	2011-01-03 00:49:16.000000000 +1000
+++ /etc/init.d/corosync.patched	2011-07-05 16:32:21.000000000 +1000
@@ -31,6 +31,11 @@
 	exit 0
 fi
 
+if [ &quot;$OPENAIS_SERVICES&quot; = &quot;yes&quot; ]; then
+	export COROSYNC_DEFAULT_CONFIG_IFACE
+	: ${COROSYNC_DEFAULT_CONFIG_IFACE=&quot;openaisserviceenableexperimental:corosync_parser&quot;}
+fi
+
 # Define LSB log_* functions.
 # Depend on lsb-base (&gt;= 3.0-6) to ensure that this file is present.
 . /lib/lsb/init-functions</description>
		<content:encoded><![CDATA[<p>Thanks for the kind words ;)</p>
<p>I hit another issue with using a patched clvm on Debian Squeeze today which I have resolved using the following patch to /etc/init.d/corosync (thanks to Michael Schwartzkopff who has alerted the Debian corosync maintainer). As of corosync-1.2.1-4 this is not yet patched in the Debian package. I have provided the required change as a unified diff here for people who follow the above and hit this issue. In addition to this patch please add</p>
<p>OPENAIS_SERVICES=yes</p>
<p>to your /etc/default/corosync.</p>
<p>&#8212; /etc/init.d/corosync	2011-01-03 00:49:16.000000000 +1000<br />
+++ /etc/init.d/corosync.patched	2011-07-05 16:32:21.000000000 +1000<br />
@@ -31,6 +31,11 @@<br />
 	exit 0<br />
 fi</p>
<p>+if [ "$OPENAIS_SERVICES" = "yes" ]; then<br />
+	export COROSYNC_DEFAULT_CONFIG_IFACE<br />
+	: ${COROSYNC_DEFAULT_CONFIG_IFACE=&#8221;openaisserviceenableexperimental:corosync_parser&#8221;}<br />
+fi<br />
+<br />
 # Define LSB log_* functions.<br />
 # Depend on lsb-base (&gt;= 3.0-6) to ensure that this file is present.<br />
 . /lib/lsb/init-functions</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jcl</title>
		<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/comment-page-1/#comment-19466</link>
		<dc:creator>jcl</dc:creator>
		<pubDate>Fri, 01 Jul 2011 14:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=106#comment-19466</guid>
		<description>Thanks for the excellent comments Dave :)</description>
		<content:encoded><![CDATA[<p>Thanks for the excellent comments Dave :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/comment-page-1/#comment-19452</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 01 Jul 2011 07:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=106#comment-19452</guid>
		<description>Thought I should update that the openais init script and everything related to it are not required on Squeeze. Use corosync instead.</description>
		<content:encoded><![CDATA[<p>Thought I should update that the openais init script and everything related to it are not required on Squeeze. Use corosync instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/comment-page-1/#comment-19364</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 29 Jun 2011 06:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=106#comment-19364</guid>
		<description>And a more robust sed expression for updating /etc/lvm/lvm.conf would be:

sed -i &#039;s/^\([[:space:]]*locking_type = \)1$/\13/&#039; /etc/lvm/lvm.conf</description>
		<content:encoded><![CDATA[<p>And a more robust sed expression for updating /etc/lvm/lvm.conf would be:</p>
<p>sed -i &#8216;s/^\([[:space:]]*locking_type = \)1$/\13/&#8217; /etc/lvm/lvm.conf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/comment-page-1/#comment-19363</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 29 Jun 2011 05:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=106#comment-19363</guid>
		<description>You should then also add openais to Required-Start and Required-Stop in clvm&#039;s init script when updating the clvm deb config. That is, just replace cman on those lines with openais.</description>
		<content:encoded><![CDATA[<p>You should then also add openais to Required-Start and Required-Stop in clvm&#8217;s init script when updating the clvm deb config. That is, just replace cman on those lines with openais.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/comment-page-1/#comment-19362</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 29 Jun 2011 05:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=106#comment-19362</guid>
		<description>Users of dependency-managed run control will probably prefer this openais init script:


#!/bin/sh
#
### BEGIN INIT INFO
# Provides:          openais
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: start and stop the openais cluster management daemon
### END INIT INFO
#

PATH=/sbin:/usr/sbin:/bin:/usr/bin
#PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC=&quot;OpenAIS Cluster Management Daemon&quot;
NAME=openais
DAEMON=/usr/sbin/aisexec
SCRIPTNAME=/etc/init.d/openais

FLAGS=

test -f $DAEMON &#124;&#124; exit 0

set -e

JOIN_TIMEOUT=15

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] &amp;&amp; . /etc/default/$NAME

case &quot;$1&quot; in
  start)
	echo -n &quot;Starting $DESC: &quot;
	start-stop-daemon --start --quiet -o --exec $DAEMON -- $FLAGS
	time=0
	while [ &quot;$JOIN_TIMEOUT&quot; -eq 0 ] &#124;&#124; [ &quot;$time&quot; -lt &quot;$JOIN_TIMEOUT&quot; ] ; do
		sleep 1
		if openais-cfgtool -s &amp;&gt;/dev/null ; then
			echo &quot;$NAME.&quot;
			exit 0
		else
			echo -n &quot; . &quot;
			time=$(($time + 1))
		fi
		
	done
	echo &quot;FAILED&quot;
	exit 1
	;;
  stop)
	echo -n &quot;Stopping $DESC: &quot;
	start-stop-daemon --stop --quiet -o --exec $DAEMON
	echo &quot;$NAME.&quot;
	;;
  reload&#124;force-reload)
	 echo &quot;Reloading $DESC configuration files.&quot;
	 start-stop-daemon --stop --signal 1 --quiet -o --exec $DAEMON
	;;
  restart)
	echo -n &quot;Restarting $DESC: &quot;
	start-stop-daemon --stop --quiet -o --exec $DAEMON
	sleep 1
	start-stop-daemon --start --quiet -o --exec $DAEMON -- $FLAGS
	echo &quot;$NAME.&quot;
	;;
  *)
	N=/etc/init.d/$NAME
	echo &quot;Usage: $N {start&#124;stop&#124;restart&#124;reload&#124;force-reload}&quot; &gt;&amp;2
	exit 1
	;;
esac

exit 0</description>
		<content:encoded><![CDATA[<p>Users of dependency-managed run control will probably prefer this openais init script:</p>
<p>#!/bin/sh<br />
#<br />
### BEGIN INIT INFO<br />
# Provides:          openais<br />
# Required-Start:    $network $remote_fs $syslog<br />
# Required-Stop:     $network $remote_fs $syslog<br />
# Default-Start:     S<br />
# Default-Stop:      0 6<br />
# Short-Description: start and stop the openais cluster management daemon<br />
### END INIT INFO<br />
#</p>
<p>PATH=/sbin:/usr/sbin:/bin:/usr/bin<br />
#PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin<br />
DESC=&#8221;OpenAIS Cluster Management Daemon&#8221;<br />
NAME=openais<br />
DAEMON=/usr/sbin/aisexec<br />
SCRIPTNAME=/etc/init.d/openais</p>
<p>FLAGS=</p>
<p>test -f $DAEMON || exit 0</p>
<p>set -e</p>
<p>JOIN_TIMEOUT=15</p>
<p># Read configuration variable file if it is present<br />
[ -r /etc/default/$NAME ] &amp;&amp; . /etc/default/$NAME</p>
<p>case &#8220;$1&#8243; in<br />
  start)<br />
	echo -n &#8220;Starting $DESC: &#8221;<br />
	start-stop-daemon &#8211;start &#8211;quiet -o &#8211;exec $DAEMON &#8212; $FLAGS<br />
	time=0<br />
	while [ "$JOIN_TIMEOUT" -eq 0 ] || [ "$time" -lt "$JOIN_TIMEOUT" ] ; do<br />
		sleep 1<br />
		if openais-cfgtool -s &amp;&gt;/dev/null ; then<br />
			echo &#8220;$NAME.&#8221;<br />
			exit 0<br />
		else<br />
			echo -n &#8221; . &#8221;<br />
			time=$(($time + 1))<br />
		fi</p>
<p>	done<br />
	echo &#8220;FAILED&#8221;<br />
	exit 1<br />
	;;<br />
  stop)<br />
	echo -n &#8220;Stopping $DESC: &#8221;<br />
	start-stop-daemon &#8211;stop &#8211;quiet -o &#8211;exec $DAEMON<br />
	echo &#8220;$NAME.&#8221;<br />
	;;<br />
  reload|force-reload)<br />
	 echo &#8220;Reloading $DESC configuration files.&#8221;<br />
	 start-stop-daemon &#8211;stop &#8211;signal 1 &#8211;quiet -o &#8211;exec $DAEMON<br />
	;;<br />
  restart)<br />
	echo -n &#8220;Restarting $DESC: &#8221;<br />
	start-stop-daemon &#8211;stop &#8211;quiet -o &#8211;exec $DAEMON<br />
	sleep 1<br />
	start-stop-daemon &#8211;start &#8211;quiet -o &#8211;exec $DAEMON &#8212; $FLAGS<br />
	echo &#8220;$NAME.&#8221;<br />
	;;<br />
  *)<br />
	N=/etc/init.d/$NAME<br />
	echo &#8220;Usage: $N {start|stop|restart|reload|force-reload}&#8221; &gt;&amp;2<br />
	exit 1<br />
	;;<br />
esac</p>
<p>exit 0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/comment-page-1/#comment-19353</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 29 Jun 2011 02:06:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=106#comment-19353</guid>
		<description>Thanks for the great howto. 
As of lvm2-2.02.66 (possibly earlier) you must also install libcorosync-dev in order to build your modified clvm.

I also suggest providing patches (using diff -u) rather than full file listings for the modified files, as this simplifies applying your changes to later source versions.

Dave</description>
		<content:encoded><![CDATA[<p>Thanks for the great howto.<br />
As of lvm2-2.02.66 (possibly earlier) you must also install libcorosync-dev in order to build your modified clvm.</p>
<p>I also suggest providing patches (using diff -u) rather than full file listings for the modified files, as this simplifies applying your changes to later source versions.</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CLVM + OpenAIS on Ubuntu Karmic : How to get AIS to start? Drija</title>
		<link>http://www.pixelchaos.net/2009/04/23/openais-an-alternative-to-clvm-with-cman/comment-page-1/#comment-10575</link>
		<dc:creator>CLVM + OpenAIS on Ubuntu Karmic : How to get AIS to start? Drija</dc:creator>
		<pubDate>Wed, 17 Nov 2010 23:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.pixelchaos.net/?p=106#comment-10575</guid>
		<description>[...] am basically doing the same thing described here, but using a newer version of [...]</description>
		<content:encoded><![CDATA[<p>[...] am basically doing the same thing described here, but using a newer version of [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

