<?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>EntBlog &#187; Hardware</title>
	<atom:link href="http://entland.homelinux.com/blog/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://entland.homelinux.com/blog</link>
	<description>Code, 3D, Games, Linux and much more...</description>
	<lastBuildDate>Tue, 28 Jul 2009 19:58:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Building a NAS</title>
		<link>http://entland.homelinux.com/blog/2007/07/09/building-a-nas/</link>
		<comments>http://entland.homelinux.com/blog/2007/07/09/building-a-nas/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 01:22:55 +0000</pubDate>
		<dc:creator>ent</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://entland.homelinux.com/blog/2007/07/09/building-a-nas/</guid>
		<description><![CDATA[I have been building a NAS in my spare time for the last months. I wanted this machine for backing up my other machines, storing movies and TV series for my media center, storing recordings from the TV, etc etc. I could have bought a specific machine for this purpose, but I found more interesting [...]]]></description>
			<content:encoded><![CDATA[<p>I have been building a <a href="http://en.wikipedia.org/wiki/Network-attached_storage">NAS</a> in my spare time for the last months. I wanted this machine for backing up my other machines, storing movies and TV series for my media center, storing recordings from the TV, etc etc. I could have bought a specific machine for this purpose, but I found more interesting and funny building it on my own. These were the objectives I had in mind when designing the machine:</p>
<ul>
<li>A 24/7 machine (running all the day)</li>
<li>Small</li>
<li>Quiet</li>
<li>Low power consumption</li>
<li>Easily expandable with new disks without losing data</li>
<li><a href="http://en.wikipedia.org/wiki/RAID">RAID 5</a></li>
<li>Break the TB barrier</li>
<li>Being able to transfer saturating the Gigabit ethernet port</li>
<li>With a customized Linux OS</li>
</ul>
<p>And well, I think that I have been able to get all my objectives. This is my first modding, so I encountered lot of problems. Sure the next time I will do it better.</p>
<p>The following sections are a worklog of how I made this machine. Enjoy it.</p>
<p><span id="more-98"></span></p>
<h4>The Hardware</h4>
<p>This is the list of the hardware components I finally chose for the machine.</p>
<div class="informaltable">
<table border="0">
<thead>
<tr>
<th>Component</th>
<th>price / €</th>
</tr>
</thead>
<tbody>
<tr>
<td>Motherboard <a href="http://www.mini-itx.com/store/?c=32">Mini-ITX AOPEN I945GTT 479</a></td>
<td>257,50</td>
</tr>
<tr>
<td>CPU Intel Celeron-M 420 1.60GHZ</td>
<td>54,00</td>
</tr>
<tr>
<td>Memory DDR2 SODIMM 512MB</td>
<td>39,00</td>
</tr>
<tr>
<td>Hard Disk Controller<a href="http://www.highpoint-tech.com/USA/rr2310.htm">HighPoint-RocketRAID 2310 RAID PCIe SATA2</a></td>
<td>129,00</td>
</tr>
<tr>
<td>Case <a href="http://www.mini-itx.com/store/?c=3#venus">Morex Venus 669 Case</a></td>
<td>105,33</td>
</tr>
<tr>
<td><a href="http://www.icydock.com/product/mb455spf.html">Rack 5 HD ICY Dock Black Plane SATA</a></td>
<td>158,50</td>
</tr>
<tr>
</tr>
<tr>
<td>Sharkoon SE Fan 1000 &#8211; 8.9 dB</td>
<td>9,00</td>
</tr>
<tr>
<td>CompactFlash IDE Adapter</td>
<td>25,00</td>
</tr>
<tr>
<td>CompactFlash 64Mb</td>
<td>5,00</td>
</tr>
<tr>
<td>4 x Samsung 500GB Sata2</td>
<td>416,00</td>
</tr>
<thead>
<tr>
<th>Total</th>
<th>1198,33€</th>
</tr>
</thead>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>For the modding of this machine I have been highly inspired in one of the <a href="http://www.mashie.org/casemods/udat1.html">Mashie Designs</a>. Credits for him and its useful web page. There is lot of information in the forums. I spent several nights reading them.</p>
<p>The motherboard, Mini-ITX, is really small as you can see in this photo. The power supply is external and the unique fan I needed was the one for the CPU. The Celeron-M processor consumption is very low (it is a mobile cpu) and so is the dissipated heat. I could have unmount the fan but it was so quiet that I decided to keep it and reduce the temperature a bit.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas00.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>For the controller, I went with the HighPoint 2310. It supports 4xHDD SataII and RAID 5. It is not a pure hardware SATAII controller (it is CPU assisted) but in this machine, the Celeron will be exclusively helping the controller, so the final performance was very good and I didn&#8217;t need to buy an expensive hardware SATAII controller.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas01.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>I didn&#8217;t find a smaller case for the NAS. Next time, probably, I will made my own case. Anyway, I had to do lot of modifications to the Venus case. Mainly, I used the <a href="http://www.dremel.com/">dremel</a> to cut the metal so the RACK fit in.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas02.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas03.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>The RACK in its final position. This model fits five drives within a three (5.25”) bay fitting. It&#8217;s equipped with a hot swappable fan that may be detached. The fan was too noisy to me so I tried the machine without the fan but the temp of the HDDs reached 55º. So, finally, I decided to buy a new fan that was almost inaudible (a 8.9 dB Sharkoon fan). This fan and the CPU fan are the unique fans in the machine. </p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas04.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas06.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>As you can see in this photo, the controller is really small and there is enough space for the sata cables.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas05.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>I needed a new front panel for the case. I made it with two layers. The first one was cut from a Styroglass sheet (7,5mm)</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas07.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>For the second layer I used a 1mm aluminium sheet. Both layers were glued with epoxy.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas08.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>This is a photo of the front panel before being painted.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas09.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>The front panel was sanded, primed and painted in black 3 times. I made a hole for inserting a keylock and another one for a power led.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas11.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>And&#8230; the final look of the machine, the monster. <img src='http://entland.homelinux.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas12.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>The hard disks are hot-swappables. I inserted the four hard disks in the rack and the machine was ready for installing the operating system.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas10.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>I used this power meter to determine an approximation of what it costs to have this machine running 24h per day. When the disks are not being used the meter reports 60w. This is 43Kwh in a month = 4.07 €/month. Something my electricity bill can afford without too much worries.</p>
<table align="center">
<tr>
<td>
<div class="img-shadow"><img src="http://entland.homelinux.com/images/nas/Nas13.jpg"/></div>
</td>
</tr>
<div class="clearer"></div>
</table>
<p>&nbsp;<br />
&nbsp;</p>
<h4>The Software</h4>
<p>For the operating system, I used a customized <a href="http://www.gentoo.org">Gentoo</a> distribution. I followed <a href="http://forums.gentoo.org/viewtopic-t-327295.html">this</a> guide to create the image. The operating system was installed in a 64Mb Compact Flash card. That way all the RAID is exclusively for data storage.</p>
<p>The image I generated is about 45Mb with the following packages:</p>
<ul>
<li><a href="http://metalog.sourceforge.net/">Metalog</a> for logging</li>
<li><a href="http://www.openssh.com/">Openssh</a> for remote access</li>
<li><a href="http://smartmontools.sourceforge.net/">Smartmontools</a> for <a href="http://en.wikipedia.org/wiki/Self-Monitoring%2C_Analysis%2C_and_Reporting_Technology">S.M.A.R.T</a> monitoring of the hard disks</li>
<li><a href="http://www.phystech.com/download/dhcpcd.html">Dhcpcd</a>, a DHCP client</li>
<li><a href="http://www.lm-sensors.org/">Lm_sensors</a> to control system temperatures</li>
<li><a href="http://net-snmp.sourceforge.net/">Net-snmp</a>, a SNMP server to allow my main <a href="http://entland.homelinux.com/blog/2006/05/15/running-your-own-server-home/">server</a> gather information and generate graphs for this machine</li>
<li><a href="http://www.ntp.org/">Ntp</a> for time synchronization with my server</li>
<li><a href="http://www.ntp.org/">Samba</a> for sharing the folders.</li>
</ul>
<p>The kernel I chose was the 2.6.19. The <a href="http://www.highpoint-tech.com/USA/bios_rr2310.htm#mac">drivers</a> distributed by HightPoint were perfectly compatible with this kernel. I can&#8217;t say the same about the tools. They are distributed as rpm (only binaries) and lot of problems appeared. This really sucks. Sources and tar.gz should be distributed to be compatible with all the linux distros.</p>
<p>If you want the image I am using, email me and I will send it to you (with all the sources if you want).</p>
<p>And that is all for my new RAID5 1&#8242;5TB machine. It has been a hard work but I have learned a lot. Don&#8217;t hesitate to write here if you want more information, discuss details, give your opinion, etc.</p>
<p>Thanks for reading, see you in the next article. </p>
]]></content:encoded>
			<wfw:commentRss>http://entland.homelinux.com/blog/2007/07/09/building-a-nas/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
