<?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>Jui-Nan Lin's Blog &#187; mdadm</title>
	<atom:link href="http://en.jnlin.org/tags/mdadm/feed/" rel="self" type="application/rss+xml" />
	<link>http://en.jnlin.org</link>
	<description>My Mumuring in English, about Un*x, FreeBSD, Network in Taiwan</description>
	<lastBuildDate>Sat, 28 May 2011 14:28:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Linux: Move / to Software RAID 1</title>
		<link>http://en.jnlin.org/2008/11/08/14/</link>
		<comments>http://en.jnlin.org/2008/11/08/14/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 03:18:33 +0000</pubDate>
		<dc:creator>jnlin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[RAID]]></category>

		<guid isPermaLink="false">http://en.jnlin.org/2008/11/08/14/</guid>
		<description><![CDATA[It&#8217;s a simple thought: build a software RAID 1 disk array with an empty hard disk, and copy data on / to it. After data copied, add the old disk to the array. For example, (sda is the old /, and sdb is the new disk) # sfdisk -d /dev/sda &#124; sfdisk /dev/sdb # mdadm [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a simple thought: build a software RAID 1 disk array with an empty hard disk, and copy data on / to it. After data copied, add the old disk to the array.</p>
<p>For example, </p>
<blockquote><p>(sda is the old /, and sdb is the new disk)      <br /># sfdisk -d /dev/sda | sfdisk /dev/sdb       <br /># mdadm -C /dev/md0 &#8211;level=raid1 &#8211;raid-devices=2 /dev/sdb1 missing       <br /># mkfs -t ext3 /dev/md0       <br /># mount /dev/md0 /mnt       <br /># rsync -ax / /mnt/       <br /># vim /etc/fstab       <br /># vim /boot/grub/menu.lst</p>
<p>Modify fstab and menu.lst, and make sure all /dev/sda is changed to /dev/md0.</p>
<p># reboot</p>
<p>Make sure that md0 is mounted successfully.</p>
<p># mdadm &#8211;manage /dev/md0 &#8211;add /dev/sda1</p>
</blockquote>
<p>Now, we successfully moved / to software RAID 1 <img src='http://en.jnlin.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://en.jnlin.org/2008/11/08/14/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

