<?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: LVM2 Mirrors vs. MD Raid 1</title>
	<atom:link href="http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/</link>
	<description>ruminations &#038; occupations</description>
	<lastBuildDate>Mon, 09 Jan 2012 22:02:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ???????? ? mdadm ? lvm &#124; Just another IT blog&#8230;</title>
		<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/comment-page-1/#comment-10331</link>
		<dc:creator>???????? ? mdadm ? lvm &#124; Just another IT blog&#8230;</dc:creator>
		<pubDate>Tue, 18 Oct 2011 08:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/#comment-10331</guid>
		<description>[...] ????? ????????? ?????????? ????? ????? ? ????????? (????????: http://serverfault.com/questions/126851/linux-lvm-mirror-vs-md-mirror ??? http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/). [...]</description>
		<content:encoded><![CDATA[<p>[...] ????? ????????? ?????????? ????? ????? ? ????????? (????????: <a href="http://serverfault.com/questions/126851/linux-lvm-mirror-vs-md-mirror" rel="nofollow">http://serverfault.com/questions/126851/linux-lvm-mirror-vs-md-mirror</a> ??? http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LVM mirroring VS RAID1 - Admins Goodies</title>
		<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/comment-page-1/#comment-10258</link>
		<dc:creator>LVM mirroring VS RAID1 - Admins Goodies</dc:creator>
		<pubDate>Sun, 21 Aug 2011 08:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/#comment-10258</guid>
		<description>[...] http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/" rel="nofollow">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gwpl</title>
		<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/comment-page-1/#comment-10213</link>
		<dc:creator>gwpl</dc:creator>
		<pubDate>Mon, 25 Jul 2011 11:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/#comment-10213</guid>
		<description>Update: write barriers are fully supported in linux kernel 2.6.33 according to : http://en.wikipedia.org/wiki/Logical_Volume_Manager_%28Linux%29</description>
		<content:encoded><![CDATA[<p>Update: write barriers are fully supported in linux kernel 2.6.33 according to : <a href="http://en.wikipedia.org/wiki/Logical_Volume_Manager_%28Linux%29" rel="nofollow">http://en.wikipedia.org/wiki/Logical_Volume_Manager_%28Linux%29</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linux LVM mirroring comes at a price &#124; deranfangvomen.de</title>
		<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/comment-page-1/#comment-9935</link>
		<dc:creator>Linux LVM mirroring comes at a price &#124; deranfangvomen.de</dc:creator>
		<pubDate>Mon, 04 Apr 2011 23:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/#comment-9935</guid>
		<description>[...] You can find some nice article about clvm mirroring here http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1 [...]</description>
		<content:encoded><![CDATA[<p>[...] You can find some nice article about clvm mirroring here http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darkfader</title>
		<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/comment-page-1/#comment-9934</link>
		<dc:creator>darkfader</dc:creator>
		<pubDate>Mon, 04 Apr 2011 23:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/#comment-9934</guid>
		<description>Definitely follow the advice from post #3

Barriers are lost in devicemapper layer, so unless you use a filesystem right on top of the md (or DR:BD) devices you are in this situation. 

[ ] Faster 
[ ] Safe
chose one.

I&#039;ll add some moreo n that in my blog and link back here</description>
		<content:encoded><![CDATA[<p>Definitely follow the advice from post #3</p>
<p>Barriers are lost in devicemapper layer, so unless you use a filesystem right on top of the md (or DR:BD) devices you are in this situation. </p>
<p>[ ] Faster<br />
[ ] Safe<br />
chose one.</p>
<p>I&#8217;ll add some moreo n that in my blog and link back here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Der neue Server: Teil 1 Installation und Basiskonfiguration &#124; johker&#8217;s blog</title>
		<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/comment-page-1/#comment-3974</link>
		<dc:creator>Der neue Server: Teil 1 Installation und Basiskonfiguration &#124; johker&#8217;s blog</dc:creator>
		<pubDate>Tue, 17 Mar 2009 19:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/#comment-3974</guid>
		<description>[...] Der Grund ist einfach: über ein Software-RAID erhalte ich höhere Leseraten (siehe auch: http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/, insbesondere auch die Kommentare). Beim Dateisystem setze ich auf ext3 bzw. ext2 für [...]</description>
		<content:encoded><![CDATA[<p>[...] Der Grund ist einfach: über ein Software-RAID erhalte ich höhere Leseraten (siehe auch: <a href="http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/" rel="nofollow">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/</a>, insbesondere auch die Kommentare). Beim Dateisystem setze ich auf ext3 bzw. ext2 für [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prateek Donni</title>
		<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/comment-page-1/#comment-3590</link>
		<dc:creator>Prateek Donni</dc:creator>
		<pubDate>Wed, 21 Jan 2009 06:06:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/#comment-3590</guid>
		<description>How does RAID behave in case of presence of an intermittently connected storage, and in case of hot unplug of the same on a booted system ?</description>
		<content:encoded><![CDATA[<p>How does RAID behave in case of presence of an intermittently connected storage, and in case of hot unplug of the same on a booted system ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott C.</title>
		<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/comment-page-1/#comment-2068</link>
		<dc:creator>Scott C.</dc:creator>
		<pubDate>Thu, 02 Oct 2008 21:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/#comment-2068</guid>
		<description>LVM is not safe in a power failure, it does not respect write barriers and pass those down to the lower drives.

hence, it is often faster than MD by default, but to be safe you would have to turn off your drive&#039;s write caches, which ends up making it slower than if you used write barriers.

http://lwn.net/Articles/283161/

&quot;Unless, of course, their filesystem is based on an LVM volume (as certain distributions do by default); it turns out that the device mapper code does not pass through or honor barriers.&quot;</description>
		<content:encoded><![CDATA[<p>LVM is not safe in a power failure, it does not respect write barriers and pass those down to the lower drives.</p>
<p>hence, it is often faster than MD by default, but to be safe you would have to turn off your drive&#8217;s write caches, which ends up making it slower than if you used write barriers.</p>
<p><a href="http://lwn.net/Articles/283161/" rel="nofollow">http://lwn.net/Articles/283161/</a></p>
<p>&#8220;Unless, of course, their filesystem is based on an LVM volume (as certain distributions do by default); it turns out that the device mapper code does not pass through or honor barriers.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/comment-page-1/#comment-1226</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Wed, 02 Jul 2008 07:17:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/#comment-1226</guid>
		<description>Hi,
I also made some comparisons, but under Ubuntu Hardy. 
My first results showed almost the same throughput for LVM-mirror and MD-RAID1 with a slight better performance on LVM-mirror (but only 1-2 MB/sec).
But then I tested with _two_ files simultaneously on the same filesystem and there I found a much better performance on read with MD-RAID1 (about 1.5 times of LVM-mirror or no mirror).
The explanation is: MD always reads simultaneously from both disks, whereas LVM-mirror only reads from one mirror and uses the second mirror only in case of failure!
That&#039;s a poor design flaw in my opinion. :-(

This design flaw and the fact, that on my system mirror failures were not recognized correctly, makes LVM-mirror useless for me. I suspect one needs dmeventd to recognize mirror failures correctly, but this is not yet available in Ubuntu and I don&#039;t want to go into long compilation sessions.

It&#039;s a pity, because I like the idea of LVM-mirroring more than the MD-mirroring.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I also made some comparisons, but under Ubuntu Hardy.<br />
My first results showed almost the same throughput for LVM-mirror and MD-RAID1 with a slight better performance on LVM-mirror (but only 1-2 MB/sec).<br />
But then I tested with _two_ files simultaneously on the same filesystem and there I found a much better performance on read with MD-RAID1 (about 1.5 times of LVM-mirror or no mirror).<br />
The explanation is: MD always reads simultaneously from both disks, whereas LVM-mirror only reads from one mirror and uses the second mirror only in case of failure!<br />
That&#8217;s a poor design flaw in my opinion. <img src='http://www.joshbryan.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>This design flaw and the fact, that on my system mirror failures were not recognized correctly, makes LVM-mirror useless for me. I suspect one needs dmeventd to recognize mirror failures correctly, but this is not yet available in Ubuntu and I don&#8217;t want to go into long compilation sessions.</p>
<p>It&#8217;s a pity, because I like the idea of LVM-mirroring more than the MD-mirroring.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JP</title>
		<link>http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/comment-page-1/#comment-1002</link>
		<dc:creator>JP</dc:creator>
		<pubDate>Mon, 12 May 2008 16:25:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.joshbryan.com/blog/2008/01/02/lvm2-mirrors-vs-md-raid-1/#comment-1002</guid>
		<description>Thanks for the comparison. I too am having the same debate. If LVM is just as fast or faster, there seems to be no question which is the better solution. Have you noticed any issues since this post?</description>
		<content:encoded><![CDATA[<p>Thanks for the comparison. I too am having the same debate. If LVM is just as fast or faster, there seems to be no question which is the better solution. Have you noticed any issues since this post?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

