<?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; RAID</title>
	<atom:link href="http://en.jnlin.org/tags/raid/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>
		<item>
		<title>FreeBSD: vfs.read_max for Hardware RAID</title>
		<link>http://en.jnlin.org/2008/03/03/7/</link>
		<comments>http://en.jnlin.org/2008/03/03/7/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 05:46:18 +0000</pubDate>
		<dc:creator>jnlin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[ufs]]></category>

		<guid isPermaLink="false">http://en.jnlin.org/2008/03/03/7/</guid>
		<description><![CDATA[Tested with: bonnie -s 2048, FreeBSD 7.0 UFS2 , Hardware RAID 5 (6 PATA 7200rpm 250G disks) vfs.read_max=8 (default) -------Sequential Output-------- -Per Char- --Block--- -Rewrite-- Machine MB K/sec %CPU K/sec %CPU K/sec %CPU 2048 25812 24.8 26483 6.6 13886 4.4 ---Sequential Input-- --Random-- -Per Char- --Block--- --Seeks--- K/sec %CPU K/sec %CPU /sec %CPU 32162 32.5 [...]]]></description>
			<content:encoded><![CDATA[<p>Tested with: bonnie -s 2048, FreeBSD 7.0 UFS2 , Hardware RAID 5 (6 PATA 7200rpm 250G disks)<br />
vfs.read_max=8 (default)</p>
<blockquote><p><code>             -------Sequential Output--------<br />
-Per Char- --Block--- -Rewrite--<br />
Machine   MB K/sec %CPU K/sec %CPU K/sec %CPU<br />
2048 25812 24.8 26483  6.6 13886  4.4<br />
---Sequential Input-- --Random--<br />
-Per Char- --Block--- --Seeks---<br />
K/sec %CPU K/sec %CPU  /sec %CPU<br />
32162 32.5 33386  5.1 232.3  1.5</code></p></blockquote>
<p>vfs.read_mas=128</p>
<blockquote><p><code>             -------Sequential Output--------<br />
-Per Char- --Block--- -Rewrite--<br />
Machine MB   K/sec %CPU K/sec %CPU K/sec %CPU<br />
2048 25380 24.3 25949  6.5 13956  4.3<br />
---Sequential Input-- --Random--<br />
-Per Char- --Block--- --Seeks---<br />
K/sec %CPU K/sec %CPU  /sec %CPU<br />
41060 43.4 42839  8.3 224.9  1.4</code><code><br />
</code></p></blockquote>
<p>vfs.read_max=256</p>
<blockquote><p><code>             -------Sequential Output--------<br />
-Per Char- --Block--- -Rewrite--<br />
Machine   MB K/sec %CPU K/sec %CPU K/sec %CPU<br />
2048 25714 24.3 25939  6.5 13966  4.3<br />
---Sequential Input-- --Random--<br />
-Per Char- --Block--- --Seeks---<br />
K/sec %CPU K/sec %CPU  /sec %CPU<br />
41442 43.8 43737 8.6  225.2  1.5<br />
</code></p></blockquote>
<p>Conclusion: No performance gain on random access, but about 25% better sequential read performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://en.jnlin.org/2008/03/03/7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

