<?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>Cloudweavers &#187; drbd</title>
	<atom:link href="http://www.cloudweavers.org/tag/drbd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudweavers.org</link>
	<description>Cutting-edge technology consultant</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:56:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>New cluster to be deploye&#8230;</title>
		<link>http://www.cloudweavers.org/2010/12/new-cluster-to-be-deploye/</link>
		<comments>http://www.cloudweavers.org/2010/12/new-cluster-to-be-deploye/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 10:57:23 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[#PUPPET]]></category>
		<category><![CDATA[#SMART_NETWORK]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[source:twitter]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://cloudweaver.org/2010/12/new-cluster-to-be-deploye/</guid>
		<description><![CDATA[@pacharest: New cluster to be deployed very soon. #VMWARE &#38; #SMART_NETWORK (#PUPPET #DRBD #ZABBIX #SNORT)]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.twitter.com/pacharest" target="_blank">@pacharest</a>: New cluster to be deployed very soon. <a href="http://search.twitter.com/search?q=VMWARE" target="_blank">#VMWARE</a> &amp; <a href="http://search.twitter.com/search?q=SMART_NETWORK" target="_blank">#SMART_NETWORK</a> (<a href="http://search.twitter.com/search?q=PUPPET" target="_blank">#PUPPET</a> <a href="http://search.twitter.com/search?q=DRBD" target="_blank">#DRBD</a> <a href="http://search.twitter.com/search?q=ZABBIX" target="_blank">#ZABBIX</a> <a href="http://search.twitter.com/search?q=SNORT" target="_blank">#SNORT</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2010/12/new-cluster-to-be-deploye/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>Cutting-edge of Cloud Computing</title>
		<link>http://www.cloudweavers.org/2009/11/cutting-edge-of-cloud-computing/</link>
		<comments>http://www.cloudweavers.org/2009/11/cutting-edge-of-cloud-computing/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 04:43:04 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[labsphoenix]]></category>
		<category><![CDATA[Montreal]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[vnodes.net]]></category>
		<category><![CDATA[wackamole]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1371</guid>
		<description><![CDATA[Just got off the bus in Montreal, Québec. This is a lightning visit, in 48 hours, I&#8217;ll be back in my office in Ottawa. But, right now, I&#8217;m taking a drink in one of my favorite downtown coffee shop and I&#8217;m planning. The next few hours will see little sleep and lots of action ; [...]]]></description>
			<content:encoded><![CDATA[<p>Just got off the bus in Montreal, Québec. This is a lightning visit, in 48 hours, I&#8217;ll be back in my office in Ottawa. But, right now, I&#8217;m taking a drink in one of my favorite downtown coffee shop and I&#8217;m planning.</p>
<p>The next few hours will see little sleep and lots of action ; More precisely I&#8217;ll be deploying lots of hardware (2 IBM SAN, 2 core servers, 2 switchs, 2 APC, 5 branchs servers &#8211; supporting up to 20 &#8216;leaf&#8217;/virtual servers), and then somes (3 couples of 2 systems in high redundancy (wackamole IP &#8216;fencing&#8217;, shared-storage through DRBD). All that will go in &#8216;my&#8217; new 48U cage @Hypertec (old nortel building) to act as a demo for some clients.  </p>
<p>Once that&#8217;s completed, the true fun start: A very big part of this infrastructure is going to be self-healing, failure resitant and high performance. We are speaking of : </p>
<li>automatic &#038; dynamic launch of new &#8216;branch&#8217; systems (xen dom0), without having to do anything more than to rack them (no OS install needed, can be upgraded by rebooting them), </li>
<li>high redundancy at the leaf level (xen domU, automatic migration toward less used dom0), </li>
<li>failure resistace through bonded interface, multi-path &#038; multi-host fiberchannel SAN &#038; controller&#8230; </li>
<p></p>
<p> This is going to be <strong>solid, scalable, fast</strong> : the holy grail of a lot of service provider that are aiming at automatization of their &#8216;hosting&#8217; business. The result of a lot of planning and testing ; <strong>the cutting-edge of cloud-computing</strong>. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/11/cutting-edge-of-cloud-computing/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>It is clichée &#8211; I know.</title>
		<link>http://www.cloudweavers.org/2009/02/it-is-clichee-i-know/</link>
		<comments>http://www.cloudweavers.org/2009/02/it-is-clichee-i-know/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 13:43:19 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cloudweavers]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[labsphoenix]]></category>
		<category><![CDATA[Personnel]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1010</guid>
		<description><![CDATA[I know it is so much of a cliché to write a blog post about why you haven&#8217;t update in quite some times &#8211; but I can&#8217;t stand not writing anything. Putting so much time in my enterprise (Les Laboratoires Phoenix) also took me away from some very interesting project ; such as DRBD-8.3 releases. [...]]]></description>
			<content:encoded><![CDATA[<p>I know it is so much of a cliché to write a blog post about why you haven&#8217;t update in quite some times &#8211; but I can&#8217;t stand not writing anything.<br />
<br />
Putting so much time in my enterprise (<a href="http://labsphoenix.com">Les Laboratoires Phoenix</a>) also took me away from some very interesting project ; such as DRBD-8.3 releases. It now allows stacked resources &#8211; meaning that you can have 3 (maybe more?) nodes in your setup. <em>This is a very good news and make this release the next thing that goes through my labs. </em><br />
<br />
There is so much to do! Got at least 3 big projects for <a href="http://cloudweavers.org">cloudweavers</a>, the social/community aspect of my corp. Haven&#8217;t had any time to draft some press release but just yesterday, 2 lucky dev. got free access to brand new servers &#8211; for their apps, sites, and codes. I am now hosting around 6 projects on those servers and it will be growing very fast next month.<br />
<br />
Btw, there&#8217;s going to be a new photos posted today. <em>Garanti ou argent remis</em>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/02/it-is-clichee-i-know/feed/</wfw:commentRss>
		<slash:comments>101</slash:comments>
		</item>
		<item>
		<title>drbd_selector.sh</title>
		<link>http://www.cloudweavers.org/2009/01/drbd_selectorsh/</link>
		<comments>http://www.cloudweavers.org/2009/01/drbd_selectorsh/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 16:29:39 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=971</guid>
		<description><![CDATA[Here is a quick bash code snippet. It allows the execution of code/scripts on a server with a Primary drbd array. It does not take into account that there can be more than one array, or that split-brain scenario exist, or that the script might be not-executable, or &#8230; I&#8217;m really posting that because I [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a quick bash code snippet. It allows the execution of code/scripts on a server with a Primary drbd array.<br />
<br />
It does not take into account that there can be more than one array, or that split-brain scenario exist, or that the script might be not-executable, or &#8230;<br />
<br />
I&#8217;m really posting that because I get to use it quite often and always forget &#8216;how I did it last time&#8217;&#8230;  the search function on this blog is kinda nice ;-).<br />
</p>
<blockquote><p>
if [ $(grep st:Primary /proc/drbd | wc -l) = 1 ] ;<br />
 then $@ ;<br />
 fi
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/01/drbd_selectorsh/feed/</wfw:commentRss>
		<slash:comments>140</slash:comments>
		</item>
		<item>
		<title>glusterfs &amp; synchronous data storage</title>
		<link>http://www.cloudweavers.org/2008/09/glusterfs-synchronous-data-storage/</link>
		<comments>http://www.cloudweavers.org/2008/09/glusterfs-synchronous-data-storage/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 04:11:31 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[freesoftware]]></category>
		<category><![CDATA[glusterfs]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[s3]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=710</guid>
		<description><![CDATA[Labs: installation &#038; configuration of GlusterFS as synchronous data storage solution. By: Pascal Charest, Freesoftware consultant Date: September, 2008. Synchronization of files in a cloud environment is a challenge in the path of high-{availability, performance}. From simple load balanced web sites to full-blown applications &#8211; some files always need to be in sync. Peoples, for [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Labs</strong>: installation &#038; configuration of GlusterFS as synchronous data storage solution.<br />
<strong>By</strong>: Pascal Charest, Freesoftware consultant<br />
<strong>Date</strong>: September, 2008.<br/><br />
<b>Synchronization of files</b> in a cloud environment is a challenge in the path of high-{availability, performance}. From simple load balanced web sites to full-blown applications &#8211; some files always need to be in sync. Peoples, for simplicity, rely on asynchronous transfer (ie: rsync ), others deploy bigger solutions (ie: block device replication through DRBD or shared storage through AoE protocol &#038; concurrency management with OCFSv2) or even go for the &#8220;lazy&#8221; &#8220;no-shared-storage&#8221; solution through NFS.<br />
<br />
To address this problem in the PraizedMedia software stack, I decided to give FUSE based GlusterFS a try. Awesome, really ! The technical knowledge to deploy a basic solution is very very low. The modularity of the program also help to have &#8220;something working right now&#8221;. This isn&#8217;t meant as a direct alternative to DRBD or a good SAN deployment but in my use case, it fit perfectly.<br />
<br />
In this lab, I will guide you through the installation of GlusterFS on 2 networked systems. They will be both used as &#8220;servers&#8221; &#038; &#8220;client&#8221; for the GlusterFS filesystem. <strong>They will be sharing a directory (on both system : /var/production/brick), re-mounted as /var/production/static through GlusterFS</strong>. Any write I/O on this directory (of any client server) will be synchronized to the pool. This last feature is called &#8220;AFR&#8221; (for automatic file replication) and is a module (called a translator) to the GlusterFS file system.<br />
<br />
The specificity of my environment is around the file-locking management : I don&#8217;t need any. By design, the application will never try to write the same file twice on any of the server.<br />
<br />
<strong>#Installation of requirement (standard tools)</strong><br />
<code>apt-get install flex bison libfuse-dev linux-headaers-`uname -r` curl</code><br />
<br />
<strong>#download of the sources</strong><br />
<code>cd /usr/local/src/<br />
curl -O http://ftp.zresearch.com/pub/gluster/glusterfs/1.3/glusterfs-CURRENT.tar.gz<br />
tar zxf glusterfs-CURRENT.tar.gz</code><br />
<br />
<strong># configure</strong><br />
<code>cd glusterfs-1.3.11<br />
./configure --prefix=/usr/local/glusterfs-1.3.11<br />
make &#038;&#038; make install<br />
ln -s /usr/local/glusterfs-1.3.11 /usr/local/glusterfs</code><br />
<br />
So we now have a basic 2 servers GlusterFS systems installed. Lets be honest, that wasn&#8217;t really hard! We are still missing configuration files though.<br />
<br />
<strong>#Editing /usr/local/glusterfs/etc/glusterfs/glusterfs-server.vol</strong><br />
<code>#<br />
# glusterfs-servers definition<br />
# volume definition are on first lvl, other are on second lvl (tabbed)<br />
volume brick<br />
        type storage/posix<br />
        option directory /mnt/production/brick<br />
end-volume<br />
<br />
volume server<br />
        type protocol/server<br />
        option transport-type tcp/server<br />
        option auth.ip.brick.allow *<br />
        subvolumes brick<br />
end-volume</code><br />
<br />
<strong>#Editing the /usr/local/glusterfs/etc/glusterfs/glusterfs-client.vol</strong><br />
<code>#<br />
# glusterfs-client.vol<br />
# volume definition are on first lvl, other are on second lvl (tabbed)<br />
#<br />
volume remote1<br />
  type protocol/client<br />
  option transport-type tcp/client<br />
  option remote-host 002.praized.com<br />
  option remote-subvolume brick<br />
end-volume<br />
<br />
volume remote2<br />
  type protocol/client<br />
  option transport-type tcp/client<br />
  option remote-host 001.praized.com<br />
  option remote-subvolume brick<br />
end-volume<br />
<br />
volume mirror0<br />
  type cluster/afr<br />
  subvolumes remote1 remote2<br />
end-volume</code><br />
<br />
<strong>#Launching services (servers and clients)</strong><br />
<code>mkdir -p /mnt/production/brick<br />
/usr/local/glusterfs-1.3.11/sbin/glusterfsd -f /usr/local/glusterfs-1.3.11/etc/glusterfs/glusterfs-server.vol<br />
<br />
mkdir -p /mnt/production/static<br />
/usr/local/glusterfs-1.3.11/sbin/glusterfs -f /usr/local/glusterfs-1.3.11/etc/glusterfs/glusterfs-client.vol /mnt/production/static/</code><br />
<br />
You now possess a synchronized directory between your two systems. Please note that GlusterFS require TCP/6996 port to be open. There is also some improvement that can be done to this setup through adding a locking mechanism &#038; i/o thread &#8211; I don&#8217;t currently need them, but you might.  <br />
Enjoy!<br />
<br />
Debugging notes ; after starting the server process you should have a kernel process call glusterfs. All log files are in /usr/local/glusterfs/var/log/glusterfs*. After starting the client, &#8220;df -h&#8221; should show you your new mount point. Careful with UID/GID (&#038;Permission), there is no such thing as root_squash_fs in GlusterFS yet.<br />
<br /> <br />
Other notes ; Using Amazon EBS would have been the perfect solution if they did allow multiple servers-volume mount and lets us deal with concurrency / lock problems. But, they don&#8217;t. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2008/09/glusterfs-synchronous-data-storage/feed/</wfw:commentRss>
		<slash:comments>574</slash:comments>
		</item>
		<item>
		<title>mass-storage.org</title>
		<link>http://www.cloudweavers.org/2008/02/mass-storageorg/</link>
		<comments>http://www.cloudweavers.org/2008/02/mass-storageorg/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 20:10:16 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[jobs]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=566</guid>
		<description><![CDATA[In the last couples of days, I&#8217;ve been doing a lot of experimentations on mass-storage systems. I do not want to saturate this blog with high-ends labs when most of my friends and family doesn&#8217;t clearly see the difference between a SAN and a NAS. On the other hand, I still want to publish my [...]]]></description>
			<content:encoded><![CDATA[<p>In the last couples of days, I&#8217;ve been doing a lot of experimentations on mass-storage systems. I do not want to saturate this blog with high-ends labs when most of my friends and family doesn&#8217;t clearly see the difference between a SAN and a NAS. On the other hand, I still want to publish my research process. Research might seem a bit presumptuous in the light of what I&#8217;ve published so far, but this is really just a side effect of this dichotomy.</p>
<p><a href="http://www.mass-storage.org/wiki">www.mass-storage.org</a> is my answer to this dilemma. As one of my pet project, it is an oasis (ok: small wiki) where I (and any so oriented researcher) can publish informations related to mass-storage. I&#8217;ve already published 2 articles about the recent storage labs i&#8217;ve concluded (DRBD , OCFSv2, AoE) and more is under way (about labs thatare currently under way [Lustre, AoE, DRBD Optimization])&#8230;</p>
<p>I should start posting more insight into my own life here (hey, it was always noted as MY private little place), and move the storage related (and more &quot;permanent&quot;) info at <a href="http://www.mass-storage.org/wiki">m-s.org</a>.</p>
<p>If you have any comments, as always, feel free to post.</p>
<p>Pascal Charest, directly from Camellia Sinensis on an IleSansfil connection.<br />
<u><strong><br />
<img src="http://blog.pacharest.com/wp-content/uploads/2008/03/ad.JPG" alt="" /></strong></u></p>
<blockquote><p>You may save your extra charges by having the final deals with the <a href="http://www.thehostplanet.com">cheap web hosting</a> companies. The functionality of <a href="http://www.envisionwebhosting.com/dedicated-servers.htm">dedicated servers</a> is well-liked by all small and large webmasters. The different tactics of <a href="http://www.iseeq.com">pay per click</a> are valuable to boost up the revenue of the internet marketers. There are a lot of the drawbacks of the <a href="http://www.asharedhosting.com">shared web hosting</a> due to the limited services of hosting providers. The <a href="http://www.sharphosts.com">web hosting services</a> of the reliable companies are more acceptable by all clients. The <a href="http://www.1-hit.com/web-hosting.htm">web hosting</a> services of the reputable service provider are featured with all-inclusive hosting packages in the affordable ratings.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2008/02/mass-storageorg/feed/</wfw:commentRss>
		<slash:comments>123</slash:comments>
		</item>
		<item>
		<title>drbd-8.2.4 as P/P setup (storage fun, part 2)</title>
		<link>http://www.cloudweavers.org/2008/02/drbd-824-as-pp-setup-take2/</link>
		<comments>http://www.cloudweavers.org/2008/02/drbd-824-as-pp-setup-take2/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 17:52:11 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[storage]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[aoe]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[ocfs]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=564</guid>
		<description><![CDATA[NOTE: Now on www.mass-storage.org, this blog-post isn&#8217;t up-to-date anymore. Please see mass-storage.org for the up-to-date labs note. Fun stuff with DRBD Ok, so yesterday, I&#8217;ve tried without much success to rebuild my computer lab with Debian/SID and unstable DRBD-8.2.5. Now that I know that the main branch of drbd can contain &#34;unusable version&#34;, it will [...]]]></description>
			<content:encoded><![CDATA[<p><strong>NOTE: Now on <a href="http://www.mass-storage.org">www.mass-storage.org</a>, this blog-post isn&#8217;t up-to-date anymore. Please see mass-storage.org for the up-to-date labs note. </p>
<p>Fun stuff with DRBD</strong></p>
<p>Ok, so yesterday, I&#8217;ve tried without much success to rebuild my computer lab with Debian/SID and unstable DRBD-8.2.5. Now that I know that the main branch of drbd can contain &quot;unusable version&quot;, it will go a bit faster. </p>
<p>Installation of DRBD-8.2.4 took around 60 seconds, most of it being the download from their website and the copy of the source tree between <em>Crystal</em> and <em>Ruby</em>, my two lab systems. </p>
<blockquote><p> # cd /usr/local/src<br />
# wget http://oss.linbit.com/drbd/8.2/drbd-8.2.4.tar.gz<br />
# tar xvf drbd-8.2.4.tar.gz <br />
# apt-get install linux-headers-`uname -r` build-essential flex docbook-utils<br />
# cd /usr/local/src/drbd-8.2.4<br />
# make all<br />
# make install
</p></blockquote>
<p>   <strong>Online verification of the sync. status</strong></p>
<p>Now the fun part : </p>
<blockquote><p> (ruby)# drbdadm verify store 
</p></blockquote>
<p>  It worked like a charm. I used the &quot;verify-alg md5;&quot; line in my config since the kernel crypto. API already had this algorithm available and loaded. Being able to have an online verify allow me to remove the &quot;data-integrity-alg&quot; function I had in some of my setup &#8211; verification once a while does really reduce the cpu processing overhead of DRBD.&nbsp; </p>
<p>The crypto. API interface speed can be tested with </p>
<blockquote><p># openssl speed
</p></blockquote>
<p>and currently available (loaded) functions can be queried with :</p>
<blockquote><p> # cat /proc/crypto 
</p></blockquote>
<p>
<strong>Adding some security</strong></p>
<p>Another thing I had never tried in the past is activating this security feature :</p>
<p>(/etc/drbd.conf)# cram-hmac-alg &quot;md5&quot; ;<br />
(/etc/drbd.conf)# shared-secret &quot;password&quot;;</p>
<p>Once again, worked as supposed. I can now see the HMAC handshake when the peer connect. The module is automatically loaded in the crypto API.</p>
<p><strong>Primary/Primary setup ?</strong></p>
<p>Now, here is the true test I wanted to do.</p>
<blockquote><p> (/etc/drbd.conf)# uncommenting the &quot;allow-two-primaries&quot; line<br />
(ruby&amp;crystal)# /etc/init.d/drbd stop ; /etc/init.d/drbd start<br />
(ruby&amp;crystal)# drbdadm store primary
</p></blockquote>
<p>I now have a Primary/Primary setup. Fun, yet we need a filesystem with support for concurrent connections. Lets go for OCFS2 (The docs say that GFS is also supported).</p>
<blockquote><p>(ruby&amp;crystal)# apt-get install ocfs2-tools<br />
(ruby&amp;crystal)# mkdir /etc/ocfs2
</p></blockquote>
<p>The creation of the config file is very straight forward : </p>
<blockquote><p>(/etc/ocfs2/cluster.conf)</p>
<p>node:<br />
ip_port = 7777<br />
ip_address = 10.0.0.18<br />
number = 0<br />
name = crystal<br />
cluster =lab</p>
<p>node:<br />
ip_port = 7777<br />
ip_address = 10.0.0.19<br />
number = 1<br />
name = ruby<br />
cluster = lab</p>
<p>cluster:<br />
node_count = 2<br />
name = lab
</p></blockquote>
<p>  Configuration of the Heartbeat process is also very easy (careful to use the good cluster name). </p>
<blockquote><p>(ruby&amp;crystal): dpkg-reconfigure ocfs2-tools
</p></blockquote>
<p>Then the magic begin:</p>
<blockquote><p>(ruby&amp;crystal)# /etc/init.d/o2cb start<br />
(ruby)# mkfs.ocfs2 /dev/drbd0<br />
(ruby&amp;crystal)# mount -t ocfs2 /dev/drbd0 /storage
</p></blockquote>
<p>
Et Voila.</p>
<p>Concurrent access to the same filesystem on 2 computers. Some-one said &quot;<strong>Cheap load-balancing/hot-fail-over for web-server</strong>&quot; ? For the optimization part, can I loudly suggest to go, at the very minimum, with giga speed network interfaced&#8230; which bring the point that infiniband isn&#8217;t the price it used to be&#8230; and performance/latency are really a big step forward&#8230;</p>
<p>
<img src="http://blog.pacharest.com/wp-content/uploads/2008/03/ad.JPG" alt="" /><u><strong></strong></u></p>
<blockquote><p><a href="http://www.braindumps.net/exam/220-602.htm">220-602</a> is very easy if you already have <a href="http://www.testking-questions.com/exam/640-863.htm">640-863</a> and <a href="http://www.infotechprep.com/cisco/642-432.htm">642-432</a> or only <a href="http://www.exam-builder.com/70-297.htm">70-297</a> on your credit. However, going for <a href="http://www.testking.net/testking-EX0-100.htm">EX0-100</a> might be a bit more difficult and doing <a href="http://www.exam-builder.com/70-431.htm">70-431</a> would help tremendously.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2008/02/drbd-824-as-pp-setup-take2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>DRBD-8.2.5 on Debian/SID</title>
		<link>http://www.cloudweavers.org/2008/02/drbd-825-on-debiansid/</link>
		<comments>http://www.cloudweavers.org/2008/02/drbd-825-on-debiansid/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 23:08:30 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[aoe]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[ocfs]]></category>
		<category><![CDATA[SAN]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=563</guid>
		<description><![CDATA[While updating my Gnu/Linux lab, I&#8217;ve decided to put the latest version of DRBD (stable: 8.2.4, unstable: 8.2.5) on the testing bench. I wanted to try the &#34;online verification&#34; and &#34;primary/primary&#34; state for cluster filesystem (OCFS2, GFS). The current version available through Debian repository is out-of-date (v8.0.8) and doesn&#8217;t have the online verification option, so [...]]]></description>
			<content:encoded><![CDATA[<p>While updating my Gnu/Linux lab, I&#8217;ve decided to put the latest version of DRBD (stable: 8.2.4, unstable: 8.2.5) on the testing bench. I wanted to try the &quot;online verification&quot; and &quot;primary/primary&quot; state for cluster filesystem (OCFS2, GFS). </p>
<p>The current version available through Debian repository is out-of-date (v8.0.8) and doesn&#8217;t have the online verification option, so I&#8217;ve had no other choice than to build my own modules &amp; utils. Another problem was the &quot;out-of-date&quot; status of the ./drbd-8.2/INSTALL file. Especially about Debian systems &#8211; in fact, most of the debian related stuff seem to be broken. </p>
<p>So here goes the missing &quot;<a href="http://docs.google.com/View?docid=dhcjg4tt_31dhhpc2c2">INSTALL.debian</a>&quot; for DRBD-8.2.x. This is hosted on googledocs and will change as I invest time into it. </p>
<p>The whole &quot;normal procedure&quot; for the unstable version of DRBD over a minimal Debian/SID install would be summarized as : </p>
<blockquote><p># apt-get install git-core<br />
# cd /usr/local/src<br />
# git-clone git://git.drbd.org/drbd-8.2.git drbd-8.2 <br />
# apt-get install linux-headers-`uname -r` build-essential flex docbook-utils<br />
# cd /usr/local/src/drbd-8.2<br />
# make<br />
# make doc<br />
# make install
</p></blockquote>
<p>
This will give you a valid DRBD-8.2.5 installation. You&#8217;ll need to modify /etc/drbd.conf to match your setup. One cool new feature is the &quot;online verification&quot;:</p>
<p>You add the following line inside your syncer section of /etc/drbd.conf and modprobe the kernel module: </p>
<blockquote><p>// in /etc/drbd.conf, syncer section: verify-alg crc32c; <br />
# modprobe crc32c
</p></blockquote>
<blockquote><p># drbdadm verify store
</p></blockquote>
<p>where store is my ressource name. But&#8230;. this isn&#8217;t the end of my problems&#8230; because the command doesn&#8217;t work here. This cause my primary system to lose connection with the secondary node. Humfff&#8230; i&#8217;ll see what I can do about that tomorrow. </p>
<p>
NOTE: finall, the problem is easy enough : the unstable is not a working version of DRBD.</p>
<p>
<img src="http://blog.pacharest.com/wp-content/uploads/2008/03/ad.JPG" alt="" /><u><strong></strong></u></p>
<blockquote><p> For <a href="http://www.infotechprep.com/cisco/640-863.htm">640-863</a> or even <a href="http://www.testking-questions.com/exam/642-642.htm">642-642</a> it is important to have some background knowledge of <a href="http://www.exam-builder.com/70-292.htm">70-292</a> and <a href="http://www.infotechprep.com/microsoft/70-528.htm">70-528</a>. If you already have <a href="http://www.braindumps.net/exam/70-536.htm">70-536</a> to your credit, you may be exempted from <a href="http://www.testking.net/testking-SY0-101.htm">SY0-101</a> as well.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2008/02/drbd-825-on-debiansid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

