<?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: Converting Raid-1 to Raid-5</title> <atom:link href="http://www.davelachapelle.ca/2008/07/25/converting-raid-1-to-raid-5/feed/" rel="self" type="application/rss+xml" /><link>http://www.davelachapelle.ca/2008/07/25/converting-raid-1-to-raid-5/</link> <description>Web Technology Specialist</description> <lastBuildDate>Sat, 17 Sep 2011 17:20:24 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.5</generator> <item><title>By: Infinality</title><link>http://www.davelachapelle.ca/2008/07/25/converting-raid-1-to-raid-5/comment-page-1/#comment-813</link> <dc:creator>Infinality</dc:creator> <pubDate>Tue, 06 Sep 2011 03:24:24 +0000</pubDate> <guid
isPermaLink="false">http://www.davelachapelle.ca/2008/07/25/converting-raid-1-to-raid-5/#comment-813</guid> <description>For anyone else&#039;s edification, here is my experience.  My RAID 1 volumes were created recently, like 2010, using a very modern version of mdadm on Fedora.  I am using GPT partitioning, but as far as I know, this really shouldn&#039;t matter.  I have several RAID 1 volumes.  The first one I tried to convert was about 30GB, and I did it this way, all 100% online:Convert into a RAID5 array:
mdadm --grow /dev/md3 --level 5Add a hot spare(s):
mdadm --manage /dev/md3 --add /dev/sdc3Add a disk to the array, to get a clean state for the array:
mdadm --grow /dev/md3 --raid-devices 3Online resize to fill partition
resize2fs /dev/md3I think I got some kind of weird warning/error at some point there, but it worked fine, and was able to be mounted during rebuild / reshape.  Then, as I got more adventurous, I tried this with my 400GB partition.  I got some message like, &quot;Unable to set to raid 5&quot;.  (That&#039;s not verbatim... but something like that.)  I looked it up on Google and had very few results, none of which helped me.  I tried unmounting it and doing the same thing, but no.  It just wouldn&#039;t do anything with my RAID partition, and /var/log/messages really didn&#039;t help either.  Then, I stumbled upon this site, which gives a slightly older approach, that requires unmounting the volume and stopping it, prior to newly creating the RAID 5 one.  Ok, fine, I want/need to do this, so I went into init 3 and tried it out.  The part where you run this (in my case):mdadm --create /dev/md5 --level=5 -n 2 /dev/sda5 /dev/sdb5... started rebuilding the array in RAID5, but I got e2fsck errors when I tried to run it, and was unable to mount it, whereas this blog says it mounted just fine.  It said something about how the superblocks claimed the filesystem (?) was slightly larger than the partition, er something.  I thought, &quot;OK, well it will probably fix itself once it&#039;s done rebuilding.  Then, shortly after I thought that, I suspected otherwise, and my latter suspicions were right.  e2fsck didn&#039;t like it when I ran it with -n during rebuild or normally, but after the rebuild I ran resize2fs and it resized to fill the partition which was just a couple more blocks.  (I can only assume the extra space has something to do with RAID 5.  The resize that doubles the space is still yet to happen....)  Then, it mounts just fine, all RAID1 data intact.  So, I boot back into graphical mode and proceed with the rest of the process outlined here, with the &quot;--grow&quot; and stuff.  Now I&#039;m golden.  I run another resize2fs to make it fill the partition, and it starts showing more and more space available as I run &quot;df&quot; to check it.  Point being, you may run into an issue where it&#039;s just not going to mount properly until you resize it, even during the initial setup or RAID 5.So, I now have my RAID1 ---&gt; RAID5 transition that worked fine, but needed some slight adjustements from this (admittedly old) process described here.  Not sure if it&#039;s because of a newer mdadm or what, but yes, it can be done.  So, good luck.  ;)Infinality</description> <content:encoded><![CDATA[<p>For anyone else&#8217;s edification, here is my experience.  My RAID 1 volumes were created recently, like 2010, using a very modern version of mdadm on Fedora.  I am using GPT partitioning, but as far as I know, this really shouldn&#8217;t matter.  I have several RAID 1 volumes.  The first one I tried to convert was about 30GB, and I did it this way, all 100% online:</p><p>Convert into a RAID5 array:<br
/> mdadm &#8211;grow /dev/md3 &#8211;level 5</p><p>Add a hot spare(s):<br
/> mdadm &#8211;manage /dev/md3 &#8211;add /dev/sdc3</p><p>Add a disk to the array, to get a clean state for the array:<br
/> mdadm &#8211;grow /dev/md3 &#8211;raid-devices 3</p><p>Online resize to fill partition<br
/> resize2fs /dev/md3</p><p>I think I got some kind of weird warning/error at some point there, but it worked fine, and was able to be mounted during rebuild / reshape.  Then, as I got more adventurous, I tried this with my 400GB partition.  I got some message like, &#8220;Unable to set to raid 5&#8243;.  (That&#8217;s not verbatim&#8230; but something like that.)  I looked it up on Google and had very few results, none of which helped me.  I tried unmounting it and doing the same thing, but no.  It just wouldn&#8217;t do anything with my RAID partition, and /var/log/messages really didn&#8217;t help either.  Then, I stumbled upon this site, which gives a slightly older approach, that requires unmounting the volume and stopping it, prior to newly creating the RAID 5 one.  Ok, fine, I want/need to do this, so I went into init 3 and tried it out.  The part where you run this (in my case):</p><p>mdadm &#8211;create /dev/md5 &#8211;level=5 -n 2 /dev/sda5 /dev/sdb5</p><p>&#8230; started rebuilding the array in RAID5, but I got e2fsck errors when I tried to run it, and was unable to mount it, whereas this blog says it mounted just fine.  It said something about how the superblocks claimed the filesystem (?) was slightly larger than the partition, er something.  I thought, &#8220;OK, well it will probably fix itself once it&#8217;s done rebuilding.  Then, shortly after I thought that, I suspected otherwise, and my latter suspicions were right.  e2fsck didn&#8217;t like it when I ran it with -n during rebuild or normally, but after the rebuild I ran resize2fs and it resized to fill the partition which was just a couple more blocks.  (I can only assume the extra space has something to do with RAID 5.  The resize that doubles the space is still yet to happen&#8230;.)  Then, it mounts just fine, all RAID1 data intact.  So, I boot back into graphical mode and proceed with the rest of the process outlined here, with the &#8220;&#8211;grow&#8221; and stuff.  Now I&#8217;m golden.  I run another resize2fs to make it fill the partition, and it starts showing more and more space available as I run &#8220;df&#8221; to check it.  Point being, you may run into an issue where it&#8217;s just not going to mount properly until you resize it, even during the initial setup or RAID 5.</p><p>So, I now have my RAID1 &#8212;&gt; RAID5 transition that worked fine, but needed some slight adjustements from this (admittedly old) process described here.  Not sure if it&#8217;s because of a newer mdadm or what, but yes, it can be done.  So, good luck. <img
src='http://www.davelachapelle.ca/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><p>Infinality</p> ]]></content:encoded> </item> <item><title>By: Ron</title><link>http://www.davelachapelle.ca/2008/07/25/converting-raid-1-to-raid-5/comment-page-1/#comment-472</link> <dc:creator>Ron</dc:creator> <pubDate>Sat, 25 Dec 2010 18:38:24 +0000</pubDate> <guid
isPermaLink="false">http://www.davelachapelle.ca/2008/07/25/converting-raid-1-to-raid-5/#comment-472</guid> <description>Awesome, thanks for this. I just used it to convert my 2x2TB RAID1 into a 4x2TB RAID5. Now to find stuff to fill it. haha</description> <content:encoded><![CDATA[<p>Awesome, thanks for this. I just used it to convert my 2x2TB RAID1 into a 4x2TB RAID5. Now to find stuff to fill it. haha</p> ]]></content:encoded> </item> <item><title>By: Jett</title><link>http://www.davelachapelle.ca/2008/07/25/converting-raid-1-to-raid-5/comment-page-1/#comment-71</link> <dc:creator>Jett</dc:creator> <pubDate>Thu, 26 Feb 2009 16:00:22 +0000</pubDate> <guid
isPermaLink="false">http://www.davelachapelle.ca/2008/07/25/converting-raid-1-to-raid-5/#comment-71</guid> <description>Thanks for the post Kelly - I unfortunately don&#039;t get on my blog  very often, but am glad this worked for you as well.  I&#039;m actually looking to upgrade some old 160s to 1TB drives, which will be interesting, if things go well I&#039;ll post another guide here.</description> <content:encoded><![CDATA[<p>Thanks for the post Kelly &#8211; I unfortunately don&#8217;t get on my blog  very often, but am glad this worked for you as well.  I&#8217;m actually looking to upgrade some old 160s to 1TB drives, which will be interesting, if things go well I&#8217;ll post another guide here.</p> ]]></content:encoded> </item> <item><title>By: Kelly</title><link>http://www.davelachapelle.ca/2008/07/25/converting-raid-1-to-raid-5/comment-page-1/#comment-69</link> <dc:creator>Kelly</dc:creator> <pubDate>Mon, 23 Feb 2009 19:03:36 +0000</pubDate> <guid
isPermaLink="false">http://www.davelachapelle.ca/2008/07/25/converting-raid-1-to-raid-5/#comment-69</guid> <description>I can confirm that it indeed does work and is reliable. Did this on two RAID arrays a little while back, and am liable to do it again soon when I get new drives.Setting up the 2x500Gb originally as RAID1 -&gt; RAID5 was easy... adding the 3rd 500Gb drive later took a LOT of time for the array to rebuild (was a slow Dual PIII/1.2Ghz machine mind). but otherwise no problems.</description> <content:encoded><![CDATA[<p>I can confirm that it indeed does work and is reliable. Did this on two RAID arrays a little while back, and am liable to do it again soon when I get new drives.</p><p>Setting up the 2x500Gb originally as RAID1 -&gt; RAID5 was easy&#8230; adding the 3rd 500Gb drive later took a LOT of time for the array to rebuild (was a slow Dual PIII/1.2Ghz machine mind). but otherwise no problems.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 6/13 queries in 0.038 seconds using disk
Object Caching 249/252 objects using disk

Served from: www.davelachapelle.ca @ 2012-02-05 14:28:51 -->
