<?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>Mark Nelson &#187; Hackery</title>
	<atom:link href="http://marknelson.us/category/hackery/feed/" rel="self" type="application/rss+xml" />
	<link>http://marknelson.us</link>
	<description>Programming, mostly.</description>
	<lastBuildDate>Fri, 13 Apr 2012 19:25:26 +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>The Great RAID-5 Home Project &#8211; Part 2</title>
		<link>http://marknelson.us/2006/07/11/raid5-part2/</link>
		<comments>http://marknelson.us/2006/07/11/raid5-part2/#comments</comments>
		<pubDate>Wed, 12 Jul 2006 01:25:44 +0000</pubDate>
		<dc:creator>Mark Nelson</dc:creator>
				<category><![CDATA[Hackery]]></category>

		<guid isPermaLink="false">/2006/07/11/raid5-part2/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://marknelson.us/2006/07/11/raid5-part2/' addthis:title='The Great RAID-5 Home Project &#8211; Part 2' ><a class="addthis_button_twitter"></a><a class="addthis_button_favorites"></a><a class="addthis_button_print"></a><a class="addthis_button_facebook_like"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_compact"></a></div>My home RAID experiment continues, with good success, as I take drastic measures to reduce heat in the inside of my Terabyte disk server. I learn that the most important things about airflow aren't necessarily just fans.]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://marknelson.us/2006/07/11/raid5-part2/' addthis:title='The Great RAID-5 Home Project &#8211; Part 2' ><a class="addthis_button_twitter"></a><a class="addthis_button_favorites"></a><a class="addthis_button_print"></a><a class="addthis_button_facebook_like"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_compact"></a></div><p>Back in this <a href="http://marknelson.us/2006/06/13/fred-langa-punks-mark/">post</a> I told you how I had been snookered by <a href="http://www.langa.com/">Fred Langa</a> into thinking that it was a piece of cake to put together my own home terabyte server. Of course, what Fred failed to mention was that he didn&#8217;t put together a real useful server &#8211; he just built a big box of disks.</p>
<p>My feeling is that a useful home server needs to implement either RAID-1 or RAID-5 to give you a nominal level of protection, and there is where all the trouble comes in. After suffering through a couple balky freeware platforms, I decided to take advantage of my student MSDN account to pick up a free copy of Windows Server 2003, which offers software RAID-5 support. I then stuffed my four cheap Maxtor 300 GB drives into a generic case, and started configuring my system.</p>
<p>I immediately ran into a couple of nasty problems:</p>
<ul>
<li>These 7200 RPM Maxtor drives run hot. I initially stacked them in the bottom 3.5&#8243; drive bays, where they were ventilated by a single fan. Because they were so tightly packed the single fan couldn&#8217;t keep them from overheating &#8211; big time.
<li>Software RAID is incredibly slow if your drives are sharing IDE ports. If I put all four drives on my two motherboard IDE ports, buildind the array was looking like a 24 hour job &#8211; and resynching after a crash could take just as long. And by crash, I include something as non-dramatic as an indavertent loss of power or a software botch-up
</ul>
<p>In this post I&#8217;ll show you how I solved both of those problems, and am now running pretty well with a 800+ GB RAID-5 array.</p>
<h4>Heat</h4>
<p>Take four high-RPM drives stacked on top of each other, add a cheap 40G drive to hold the O/S, throw in five standard IDE ribbon cables, and you have recipe for heat. My case came with a fan up front, and I added two to the rear, in addition to the power supply fan, but the drives were still ready to glow in the dark. I needed to take a few steps to resolve this.</p>
<p><img src="http://marknelson.us/attachments/raid5-part2/cable.gif" class="alignleft"> Step one is pretty straightforward &#8211; round cables. Removing those big flat IDE cables and replacing them with round cables really helps the airflow a lot. I picked up these 18&#8243; single drive rounded cables at CompUSA for $4.99 per. By using the single drive cables I avoided having an unused second drive connector flapping in the wind. You can find equivalent cables pretty easily for a similar price.</p>
<p>As you can see in the shot below, the cables are still taking up a fair amount of space, but believe me, there is a lot more room for airflow.</p>
<p><center><br />
<img src="http://marknelson.us/attachments/raid5-part2/cables.jpg"></p>
<p>Figure 1 &#8211; Rounded IDE Cables<br />
</center></p>
<p><img src="http://marknelson.us/attachments/raid5-part2/cooler.gif" class="alignleft"><br />
The final step in heat management was to do a much better job of ventilating the drives. For another $10 per drive I bought these StarTech drive bay coolers. Each unit has three little fans that blow a steady stream of air over a single drive. They mount in your 5.25&#8243; drive bays (although not particularly well) and as luck would have it my case has four large drive bays.</p>
<p>Of course, this means I have to pull my CD-ROM drive, so I now use a USB unit when it is required. But this is a server, not a desktop system, so this isn&#8217;t as much an inconvenience as you might think.</p>
<p>There&#8217;s an additional bonus to be had from moving the drives to the upper bays. Not only do I have room temperature air blowing around them on all four sides, I also have them spaced out a lot better than when they were in the bottom bays in the case.</p>
<p>After a bit of a struggle to get the four cooling units in place, I end up with a case that looks like the one shown below. It&#8217;s a different look, but as I found out, it works!</p>
<p><center><br />
<img src="http://marknelson.us/attachments/raid5-part2/case.jpg"></p>
<p>Figure 2 &#8211; Drive Coolers In All 4 Bays<br />
</center><br />
These are some pretty big adjustments, but when done, I was really pleased with the results. My drives now stay very close to ambient temperature, and although I have 12 fans up front on the drive bays, they are relatively quiet. I consider the heat problem to be solved &#8211; with one caveat. </p>
<p>Because of the exceptional cooling requirements of this system, it should be considered to be a bit of a tinderbox. That means I need to monitor it carefully. If a fan goes out or a drive starts heating up, I need to know about it ASAP. Fortunately, I can use the <a href="http://en.wikipedia.org/wiki/Self-Monitoring%2C_Analysis%2C_and_Reporting_Technology">SMART</a> reporting capability built into IDE drives to accomplish this using off-the-shelf software. More about this later.</p>
<h4>IDE Controllers</h4>
<p>As I mentioned earlier, I found that I need each of my four RAID drives to have an independent IDE port &#8211; no sharing &#8211; for performance reasons. Seems like an easy enough problem, right? CompUSA, Fry&#8217;s, and every other source imaginable sells Ultra 133 PCI cards that you can add to your system and provide extra IDE ports.</p>
<p>Unfortunately, it&#8217;s not that easy. It seems that literally every single manufacturer of IDE cards out there is using one RAID chipset or another, and when you install the drivers for their card in the system, they present as SCSI devices. Normally, this wouldn&#8217;t be a problem, but if you want to use the SMART monitoring feature of IDE cards, you are out of luck. I tested CompUSA&#8217;s private label card, SIIG&#8217;s 133 card, Belkin&#8217;s card, and Adaptec&#8217;s, and every one had the same feature. </p>
<p>Even more importantly, I don&#8217;t think that Windows can power down these SCSI drives when idle, which for a home server is really a shame. These drives are going to be idle most of the day, the extra heat and drag on their lifetime from failure to support power-save modes is a serious bummer.</p>
<p>This is not the kind of thing that shows up in a data sheet, but a fellow named Christian Franke on the <a href="http://smartmontools.sourceforge.net/">smartmontools</a> mailing list sent me this tidbit:</p>
<blockquote><p>There is a method to detect at least the class of the card&#8217;s driver.<br />
Download and unpack the latest driver from the vendors homepage and<br />
examine the *.inf file.<br />
If the [Version] section contains &#8220;Class=SCSIAdapter&#8221;, it is unlikely<br />
that the drivers supports ATA SMART.<br />
If &#8220;Class=HDC&#8221;, then SMART should be supported.
</p></blockquote>
<p>That helped save a little time, in a negative way, by proving in advance that every card out there is using a SCSI interface.</p>
<p>Interestingly, the manufacturer for Belkin&#8217;s chipset provides a BIOS that supports a pure IDE interface, but I couldn&#8217;t get it to work with Belkin&#8217;s card &#8211; it&#8217;s possible that a generic version of a card using that chipset might do the job, but I couldn&#8217;t find one.</p>
<p><img src="http://marknelson.us/attachments/raid5-part2/siig.jpg" class="alignleft"><br />
Oddly enough, help popped up from a very strange source. In my parts closet, I happened to have a SIIG 100 IDE RAID controller that I popped into my system as a last resort. Lo and behold, if you use the SIIG UltraATA 100 PCI with no installed drivers, it works on your system as a standard IDE controller, and provides the SMART monitoring capability and power-savings control that I crave.</p>
<p>Leaving Fry&#8217;s short $29.95, I plugged in my second card, and I was in business. I&#8217;m giving up a little speed for the sake of monitoring, but my RAID-5 server doesn&#8217;t need to be a performance king. If it can server up movies and music at a reasonable speed while providing safe backup, I&#8217;m happy. And the SIIG card does the job.</p>
<p>This card won&#8217;t be around forever though, and it makes me wonder about the future of SMART monitoring. More and more motherboard manufacturers are moving these same RAID controller chips onto their main boards, and there may come a day when you just can&#8217;t find a controller that supports SMART monitoring.</p>
<h4>The Monitoring Software</h4>
<p>There are plenty of choices for monitoring software, both free and commercial. A popular piece of freeware is <a href="http://www.almico.com/speedfan.php">SpeedFan</a>, which will not only monitor your hard drives, but can monitor your fan speeds and motherboard temperatures.</p>
<p><center><br />
<img src="http://marknelson.us/attachments/raid5-part2/speedfan.gif"></p>
<p>Figure 3 &#8211; SpeedFan<br />
</center></p>
<p>SpeedFan is nice, and supports a wide array of motherboards and hardware. It is pretty versatile about the way it can flag you when things go wrong as well. One thing I didn&#8217;t like about SpeedFan is its inability to properly report SMART statistics, such as hours of use. Instead of telling me that my drive has 300 hours of use, it gives me the value 00000050BE, which is not so helpful.</p>
<p>A commercial tool that is relatively inexpensive called <a href="http://www.hddlife.com/">HDDLife</a> is a little friendlier and a little easier to configure. While it doesn&#8217;t give me all the SMART monitoring information that I can see with SpeedFan, it does show me the important facts in a nice fashion.</p>
<p><center><br />
<img src="http://marknelson.us/attachments/raid5-part2/hddlife.gif"></p>
<p>Figure 4 &#8211; HddLife<br />
</center></p>
<p>As you can see, it gives me the drive temperature and lifetime hours of use in an easy to see manner, and combines the other SMART statistics into an overall health indicatory. HddLife also has some very nice reporting options, which include sending email when the temperature threshold or other figure (including drive space) is exceeded. And when things get bad, it can put my PC into hibernation mode or standby, hopefully preventing additional damage.</p>
<h4>Conclusion</h4>
<p>When I first started putting this server together as a RAID-5 server, my son <a href="http://bloop.org/joey/">Joey</a> mockingly asked:</p>
<blockquote><p>
Are your Alanis Morisette MP3’s important enough to warrant a RAID system?
</p></blockquote>
<p>It&#8217;s an easy answer &#8211; yes. Take the Fred Langa big box of disks that I could have made with my four Maxtor drives. The only thing I give up to turn it into a RAID-5 system is 25% of my space &#8211; that&#8217;s what is required for parity data in RAID-5. In exchange, I am protected against single disk failure. </p>
<p>If I leave things set up like Fred did, I would have to mess around with partitioning my storage among four different drives, and any failure on any drive would be deadly. Or, I could turn the four drives into one volume using <a href="http://en.wikipedia.org/wiki/JBOD#Concatenation_.28JBOD.29">JBOD</a>, in which case one drive failure would wipe out four drives of data. Seems like an easy choice to me.</p>
<p>My server is working well now, and I&#8217;m happy with its performance. I have one goal left for this server, which is to configure it so that it goes into standby when idle, and wakes up upon incoming activity on the LAN. I need to see if I can make that work in a household running a mix of Apple, Linux, and Windows machines. If and when I succeed, that will be published in Part 3.</p>
]]></content:encoded>
			<wfw:commentRss>http://marknelson.us/2006/07/11/raid5-part2/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Fred Langa Punks Mark</title>
		<link>http://marknelson.us/2006/06/13/fred-langa-punks-mark/</link>
		<comments>http://marknelson.us/2006/06/13/fred-langa-punks-mark/#comments</comments>
		<pubDate>Tue, 13 Jun 2006 11:56:26 +0000</pubDate>
		<dc:creator>Mark Nelson</dc:creator>
				<category><![CDATA[Hackery]]></category>

		<guid isPermaLink="false">/2006/06/13/fred-langa-punks-mark/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://marknelson.us/2006/06/13/fred-langa-punks-mark/' addthis:title='Fred Langa Punks Mark' ><a class="addthis_button_twitter"></a><a class="addthis_button_favorites"></a><a class="addthis_button_print"></a><a class="addthis_button_facebook_like"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_compact"></a></div>Putting together a RAID-5 server turns out to not be as easy as I had hoped. Was I duped by Fred Langa? Probably.]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style" addthis:url='http://marknelson.us/2006/06/13/fred-langa-punks-mark/' addthis:title='Fred Langa Punks Mark' ><a class="addthis_button_twitter"></a><a class="addthis_button_favorites"></a><a class="addthis_button_print"></a><a class="addthis_button_facebook_like"></a><a class="addthis_button_google_plusone"></a><a class="addthis_button_compact"></a></div><p>So I was pretty intrigued when Fred Langa wrote <a href="http://informationweek.com/LP/showArticle.jhtml?articleID=183702383">an article</a> describing how he set up a terabyte server for under $500. It just so happens that I could really use a big server myself &#8211; right now I&#8217;ve been doing music storage, backups, etc. to a big drive on one of my regular machines, and that causes problems from time to time.</p>
<p>Of course, when Fred was writing about this, he was comparing his server to something like the <a href="http://www.buffalotech.com/products/product-detail.php?productid=97">Buffalo Terastation</a>, which would have suited my needs pretty well. But building your own is always more fun, right?</p>
<p>So I launched into a similar project, based on a $149 Fry&#8217;s Geode cheap PC and four 300G Maxtor drives. My plan was to use the four drives to build a RAID-5 system, giving me some reliability &#8211; in a system with perfect software, it would take a simultaneous failure of two drives before I lose anything.</p>
<p>And that&#8217;s where Fred totally snookered me. Sure, he put together a 1T server &#8211; but he didn&#8217;t build a Buffalo Terastation, because he didn&#8217;t create a RAID system &#8211; he didn&#8217;t even combine all those into <a href="http://en.wikipedia.org/wiki/Redundant_array_of_independent_disks#Concatenation_.28JBOD.29">a single big disk</a>, making his server a lot less reliable and useful. </p>
<p>Fred recommended using <a href="http://www.puppylinux.org/user/viewpage.php?page_id=1">Puppy Linux</a>, which he ran off a USB key. I loved the idea, because it let me use all four channels for hard drives. But as far as I can tell, Puppy Linux doesn&#8217;t offer much in the way of support for RAID volumes.</p>
<p>No problem, because there&#8217;s a project out there called <a href="http://www.freenas.org/">FreeNAS</a>, which like Puppy, runs nicely off a USB key, and better yet, has a beautiful web-based interface for managing RAID volumes. I thought for sure I was on the way to total success with this system, and had it configured, up and running, and working pretty well &#8211; until the first time I had to reboot my system. That&#8217;s when I found out that the FreeBSD software RAID drivers are apparently well-known to be bug-ridden, and in fact it was highly recommended that I forget the software RAID in BSD and go straight to a hardware controller.</p>
<p>Next stop: <a href="http://www.openfiler.com">OpenFiler</a>, which is like FreeNAS on steroids. The 2.0 beta has even better software RAID support, and the Linux software RAID drivers are in theory a little more reliable. But guess what? I struck out here as well. OpenFiler requires that you have an external authentication system, Active Directory, NIS, or something like that. Sorry, if I had an authentication server at home, I would probably already have my RAID setup on that as well!</p>
<p>So no-go on the second specialized NAS system. I&#8217;ve got plenty of options left, and I&#8217;m plowing through them now. I don&#8217;t want to spend a lot of money, so software-based solutions are best. Here&#8217;s what I&#8217;ll be trying out over the next few weeks:</p>
<ul>
<li> Windows 2003 Server &#8211; I can get a free copy through my student MSDN subscription, it can actually run on this anemic system I have -the question is how well. I have a fairly high level of trust of Microsoft&#8217;s software RAID-5 implemenation.
<li> Some Linux &#8211; The basic Linux implementation of RAID-5 has been around for a while, and I guess I trust it pretty well, but the admin tools seem non-existent.
<li> Cheap RAID card. I can get something like the <a href="http://www.amazon.com/gp/product/B000123GGM/ref=wl_it_dp/103-6998050-2802241?%5Fencoding=UTF8&#038;colid=FDDM75CXSP9&#038;coliid=I267N8AXFUBVQ4&#038;v=glance&#038;n=172282">Highpoint Tech RocketRaid 454</a> for under $100. Only problem is, while this is billed as a Hardware RAID controller, it actually uses the host PC to do parity calculations, so you need drivers to support your host O/S.
<li>Expensive RAID card. If I&#8217;m ready to cough up a few hundred bucks, I can get something like the most excellent <a href="http://www.amazon.com/gp/product/B0006IS21K/ref=wl_it_dp/103-6998050-2802241?%5Fencoding=UTF8&#038;colid=FDDM75CXSP9&#038;coliid=I2QN218569OYSP&#038;v=glance&#038;n=172282">3Ware Escalade 7506</a>, which does all the work on the card, meaning you don&#8217;t need special drivers.
</ul>
<p>So hat&#8217;s off to Fred &#8211; he pulled the classic salesman gambit, in which he got me to believe he had solved problems that seemed to be an obvious part of the problem. In his case, the &#8220;obvious part of the problem&#8221; is that you don&#8217;t want a 1T server to look like four separate hard drives that aren&#8217;t RAID-worthy.</p>
]]></content:encoded>
			<wfw:commentRss>http://marknelson.us/2006/06/13/fred-langa-punks-mark/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

