<?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>Modern Toil &#187; SAN NAS FreeNAS</title>
	<atom:link href="http://moderntoil.com/?feed=rss2&#038;tag=san-nas-freenas" rel="self" type="application/rss+xml" />
	<link>http://moderntoil.com</link>
	<description>Technology, Life, &#38; Work</description>
	<lastBuildDate>Sun, 29 Dec 2019 22:49:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Build your own 10TB SAN for less than $800</title>
		<link>http://moderntoil.com/?p=509</link>
		<comments>http://moderntoil.com/?p=509#comments</comments>
		<pubDate>Fri, 17 Feb 2012 21:57:41 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[SAN NAS FreeNAS]]></category>

		<guid isPermaLink="false">http://moderntoil.com/?p=509</guid>
		<description><![CDATA[I&#8217;ve been upgrading my storage every 2 years or so for at least the last 10 years, and it was time to get serious.
The last two upgrades I made were 2 x 1TB drives in a RAID1, and then up to 2 x 2TB drives in a RAID1.  Both configurations were attached to a mid-level [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been upgrading my storage every 2 years or so for at least the last 10 years, and it was time to get serious.</p>
<p>The last two upgrades I made were 2 x 1TB drives in a RAID1, and then up to 2 x 2TB drives in a RAID1.  Both configurations were attached to a mid-level RAID card and offered &#8220;ok&#8221; performance and &#8220;ok&#8221; redundancy, since it was a simple RAID1.</p>
<p>Enter, &#8220;The problem&#8221;:  In addition to growing my storage needs quicker, largely around the fact that my wife and I were downloading a lot of HD TV content, I also started leveraging  VMware a lot more, and disk I/O was becoming a real bottleneck on the pair of 320GB drives I had running in that box (another simple RAID1).  It was only a year since I had moved up to 2 x 2TB HD&#8217;s and 3TB HD&#8217;s would have barely been a band-aid.</p>
<p>My goal was to solve both problems with 1 solution:</p>
<p>Build a SAN that provided higher I/O capabilities than the current local storage in my VMware box, AND provide bulk storage for the increasing amount of videos we download, pictures we take, music we collect, etc.</p>
<p>I had heard about ZFS years ago, but when I dug deeper, it seemed like it wasn&#8217;t ready for prime-time.  Well, things have changed.  ZFS is becoming widely used at the enterprise level and considered stable for production.  ZFS works similarly to how a basic RAID controller functions, but uses a whole x86 computer to act as the controller with ZFS acting like the &#8220;firmware&#8221; running on the controller.  ZFS offers data integrity verification against data corruption modes, support for high storage capacities, snapshots, copy-on-write clones, continuous integrity checking with automatic repair, and iSCSI through COMSTAR at the OS level.</p>
<p>ZFS running on a moderately priced x86 box will far outperform high-end RAID cards that alone cost more than this whole build.  Since ZFS does the &#8220;work&#8221; you previously counted on the RAID card for, you DON&#8217;T NEED high-end RAID cards to attach your drives to in a ZFS box.  You do want &#8220;fast&#8221; HBA&#8217;s, but they&#8217;re still cheap. especially if you&#8217;re willing to buy used, since these simple HBA&#8217;s are what typically ships with base-model servers and are typically &#8220;pulled&#8221; and sold on eBay.  The HBA in my recipe below is an LSI1068E with a Dell part #.  Several vendors make HBA&#8217;s with this chip, so if you can&#8217;t readily find the dell part, try looking for cards branded under Lenovo or HP.</p>
<p><strong>Now, the recipe:</strong></p>
<p><a href="http://moderntoil.com/wp-content/uploads/2011/10/san_case2.jpg"><img class="alignnone size-medium wp-image-527" title="san_case" src="http://moderntoil.com/wp-content/uploads/2011/10/san_case2-300x179.jpg" alt="" width="300" height="179" /></a></p>
<h3><strong>1x</strong> NORCO 10-bay Hot Swap Server Chassis = $240</h3>
<p><a title="http://www.newegg.com/Product/Product.aspx?Item=N82E16811219037" href="http://www.newegg.com/Product/Product.aspx?Item=N82E16811219037" target="_blank">http://www.newegg.com/Product/Product.aspx?Item=N82E16811219037</a></p>
<p><a href="http://moderntoil.com/wp-content/uploads/2012/02/wd20ears.jpg"><img class="alignnone size-medium wp-image-695" title="wd20ears" src="http://moderntoil.com/wp-content/uploads/2012/02/wd20ears-300x225.jpg" alt="" width="300" height="225" /></a></p>
<h3><strong>6x</strong> Western Digital WD20EARS 2TB SATA HD&#8217;s = $540</h3>
<p><a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16822136514" target="_blank">http://www.newegg.com/Product/Product.aspx?Item=N82E16822136514</a></p>
<p><a href="http://moderntoil.com/wp-content/uploads/2011/10/san_cable1.jpg"><img class="alignnone size-medium wp-image-514" title="san_cable" src="http://moderntoil.com/wp-content/uploads/2011/10/san_cable1-300x183.jpg" alt="" width="300" height="183" /></a></p>
<h3><strong>2x</strong> 1M SAS 32-pin to 4 SATA = $40</h3>
<p><a href="http://www.provantage.com/cables-go-10249~7CBT9212.htm" target="_blank">http://www.provantage.com/cables-go-10249~7CBT9212.htm</a></p>
<p><a href="http://moderntoil.com/wp-content/uploads/2011/10/san_controller1.jpg"><img class="alignnone size-medium wp-image-516" title="san_controller" src="http://moderntoil.com/wp-content/uploads/2011/10/san_controller1-300x238.jpg" alt="" width="300" height="238" /></a></p>
<h3><strong>1x</strong> LSI 1068E PCIe SATA/SAS Controller = $19 on eBay</h3>
<p><a href="http://accessories.dell.com/sna/products/Hard_Drives_Storage/productdetail.aspx?c=ca&amp;l=en&amp;s=biz&amp;cs=calca1&amp;sku=313-8239" target="_blank">http://accessories.dell.com/sna/products/Hard_Drives_Storage/productdetail.aspx?c=ca&amp;l=en&amp;s=biz&amp;cs=calca1&amp;sku=313-8239</a></p>
<p><a href="http://moderntoil.com/wp-content/uploads/2012/02/Oracle_Solaris_logo.png"><img class="alignnone size-full wp-image-697" title="Oracle_Solaris_logo" src="http://moderntoil.com/wp-content/uploads/2012/02/Oracle_Solaris_logo.png" alt="" width="252" height="122" /></a></p>
<h3>Oracle Solaris Express 11 = FREE</h3>
<p><a href="http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html" target="_blank">http://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html</a></p>
<h2>TOTAL = $799</h2>
<p>This build does expect you have some general experience with storage, x86 PC&#8217;s, and a few parts laying around you can re-use.  You&#8217;ll notice the above recipe doesn&#8217;t include the mobo, cpu, mem, or power supply.  These are all things I had laying around from other builds, and it doesn&#8217;t have to be fancy.  Anything dual-core with at least 2GB of mem and a PCIe slot that works with storage adapters will be just fine.  MOST motherboards will work with an HBA in their PCIe slot, but it&#8217;s a good idea to do a few google searches before you pull the trigger on a purchase to see if anyone else has tried with that specific board.  I used a Gigabyte mobo and had no issues.  You will want to make sure the power supply you use has enough umphh to power the system and all the drives.  I had a  550w of good quality in my parts pile and used that.</p>
<p>If you don&#8217;t have any of the above items, figure another $200-$250 for the build. . which still only puts the total at around $1,000.  If you&#8217;re buying a new mobo and cpu, buy something low power.  The difference between a dual core i3 and a quad core i7 will be very little.  Spend your money on memory instead, which will make a far greater impact on performance than raw CPU speed.  The memory in your home-built SAN is used similarly to how the cache would function on a classic RAID card.  The more you have, the faster it goes.</p>
<p>If you plan on building a SAN similar to the one above with ~6 drives, you&#8217;ll be fine with a single HBA and the cable linked above.  In addition to the drives you&#8217;ll use for your storage, you&#8217;ll want a drive or two for the OS.  One drive is all that&#8217;s needed, but if you have two laying around, it&#8217;s a good idea to have redundancy for Solaris Express, since if the OS goes down, your data will be inaccessible until you reload Solaris on a fresh drive and remount your data pools.</p>
<p>So, build your rig, install Solaris Express (instructions available at the same site linked above for download), and make sure Solaris can &#8220;see&#8221; all of the hardware in your box.  The next step is configuration.  I opted for configuring via a GUI, but ZFS does have a full-featured command line implementation.  The GUI I used is napp-<em>it</em>, available here (for free):</p>
<p><a href="http://www.napp-it.org/downloads/index_en.html" target="_blank">http://www.napp-it.org/downloads/index_en.html</a></p>
<p>You can actually install it as easily as running the below one-liner from a root shell on your SAN:</p>
<blockquote><p><strong>wget -O &#8211; www.napp-it.org/nappit | perl</strong></p></blockquote>
<p>napp-<em>it</em> is basically a simple web app that interfaces with ZFS underneath,  but presents a nice GUI in your browser for building and managing storage pools and their accessability.  There&#8217;s LOTS of different ways you can build a storage pool or pools with the 6 drives suggested above, but I would suggest a RAID-Z2.  This works similarly to the classic RAID-6, in that you can lose up to two drives without losing any data.  I won&#8217;t go into the other pool types  and/or their merits here, but the ZFS wikipedia page has tons of info:</p>
<p><a href="http://en.wikipedia.org/wiki/ZFS" target="_blank">http://en.wikipedia.org/wiki/ZFS</a></p>
<p>A 6 disk RAID-Z2 built from 2TB drives will yield about 7.1 terabytes of usable space after formatting.   The same 6 disks in a RAID-Z1 would yield ~9 terabytes formatted, and a simple volume with no redundancy would yield over 10 terabytes.   The reward of up to 30% more usable space is NOT worth the risk of  a single disk failure wiping out all your data.  I would strongly suggest the RAID-Z2 option.</p>
<p>Go build!</p>
<p>Here&#8217;s my home network rack with the completed SAN on the bottom shelf:</p>
<p><a href="http://moderntoil.com/wp-content/uploads/2012/02/network_rack.jpg"><img class="alignnone size-medium wp-image-728" title="network_rack" src="http://moderntoil.com/wp-content/uploads/2012/02/network_rack-199x300.jpg" alt="" width="199" height="300" /></a></p>
<p><em>click the pic for full-size view</em></p>
<p>NOTE:  The price for the 2TB drives linked above was $89.99/ea when I put this article together.  With the flooding in Thailand, the prices for all drives skyrocketed, but is starting to settle down again.  If you&#8217;re not in a hurry, wait until the price stabilizes.  It  *will* come back down to the $89.99 price point, if it hasn&#8217;t already by the time you&#8217;re reading this <img src='http://moderntoil.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><ins datetime="2012-02-17T21:42:21+00:00"></ins></p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><a name='fb_share' type='button_count' share_url='http://moderntoil.com/?p=509' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggCompact' href='http://digg.com/submit?url=http://moderntoil.com/?p=509&amp;title=Build+your+own+10TB+SAN+for+less+than+%24800'></a></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://moderntoil.com/?p=509&amp;source=&amp;style=compact' height='20' width='90' frameborder='0' scrolling='no'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Generated by Digg Digg plugin v4.0.5, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://moderntoil.com/?feed=rss2&amp;p=509</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
