<?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>trentgardner.net &#187; fedora</title>
	<atom:link href="http://trentgardner.net/tag/fedora/feed/" rel="self" type="application/rss+xml" />
	<link>http://trentgardner.net</link>
	<description></description>
	<lastBuildDate>Tue, 02 Aug 2011 06:34:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Create a RAID 1 Array with an Existing Drive</title>
		<link>http://trentgardner.net/linux/create-a-raid-1-array-with-existing-drive/</link>
		<comments>http://trentgardner.net/linux/create-a-raid-1-array-with-existing-drive/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 23:48:17 +0000</pubDate>
		<dc:creator>Trent Gardner</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[raid 1]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://tgardner.net/?p=58</guid>
		<description><![CDATA[So, last month the IT department at DIRC was made redundant due to funding issues (The joys of working for the not-for-profit sector), as a result myself and colleague David were out of a job. If you&#8217;re looking for a &#8230; <a href="http://trentgardner.net/linux/create-a-raid-1-array-with-existing-drive/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, last month the IT department at <a title="The Disability Information and Resource Centre" href="http://www.dircsa.org.au"><abbr title="The Disability Information and Resource Centre">DIRC</abbr></a> was made redundant due to funding issues (The joys of working for the not-for-profit sector), as a result myself and colleague <a href="http://www.lifekludger.net/"><abbr title="David Wallace">David</abbr></a> were out of a job. If you&#8217;re looking for a new media consultant, Dave&#8217;s your man.</p>
<p>Luckily, after a weeks vacation and procrastinating about updating my resume / beginning to find a new source of income to cover my rent, I was offered a new job at <a title="http://www.tobacco.net.au" href="http://www.tobacco.net.au">http://www.tobacco.net.au</a> &#8211; Cheap Cigarettes made in Australia. The work&#8217;s completely different, so it&#8217;s a great new learning curve, and hopefully the addictive qualities of nicatine should keep me in a job! <img src='http://trentgardner.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I&#8217;ve got a new HP DL585 server that I&#8217;m using for development, and let me say, this thing is a beast. I set it up about 2 weeks ago with Fedora Core 10, but the problem was all our hard drives didn&#8217;t arrive with the server, and I needed to get it up and running. I needed to create a RAID 1 mirror of the 36GB 15k SAS system drive but only had 1 of the drives.</p>
<p>This morning, the second drive arrived and I had to figure out how to create a mirror of the existing drive, without having to reinstall the entire OS again or lose any data. Thanks to the power of the command line it made light work of a seemingly daunting problem.</p>
<p>&nbsp;</p>
<p>First, create an image of your drive onto another temporary drive:<br />
<em>Mount a partition to store the backup image of the system drive, in this case I used /dev/cciss/c0d1p1</em></p>
<p><span class="code">mkdir /media/backup<br />
mount -t ext3 /dev/cciss/c0d1p1 /media/backup</span></p>
<p><em>Create an image of the drive you&#8217;re wanting to use for the RAID array (/dev/cciss/c0d0)<br />
</em></p>
<p><span class="code">dd bs=4k if=/dev/cciss/c0d0 of=/media/backup/backup.img conv=noerror,sync</span></p>
<p>Secondly, install the new drive being used as the mirror and create the RAID 1 array using the controller.</p>
<p>Finally, reboot with the Fedora CD in the drive and enter recovery mode. Just skip past any menus that come up until you&#8217;re presented with a command prompt.<br />
<em>Now mount the partition with the backup image</em></p>
<p><span class="code">mkdir /mnt/backup<br />
mount -t ext3 /dev/cciss/c0d1p1 /mnt/backup</span></p>
<p><em>Restore the system drive</em></p>
<p><span class="code">dd bs=4k if=/mnt/backup/backup.img of=/dev/cciss/c0d0</span></p>
<p>&nbsp;</p>
<p>Once complete, take the Fedora CD out of the drive and reboot, and the system should be like you never touched it.</p>
<p>This new job has me doing 12 hour days when including travel to and from, so I&#8217;ve barely had time to myself. When I get a few days off, I&#8217;ll try and get a new update on Flickr Manager pushed out.</p>
]]></content:encoded>
			<wfw:commentRss>http://trentgardner.net/linux/create-a-raid-1-array-with-existing-drive/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

