Choosing Software and Hardware for my DIY NAS
In deciding to build my own NAS, after having identified my requirements in Part 1, I set about searching for the perfect hardware and software combination...
There are plenty of open source operating systems available that offer multiple options for reliable storage, including both hardware and software supported RAID. To avoid getting into the situation of outdated/unsupported hardware again, I have decided not to use any sort of hardware assisted RAID, instead I will use the software RAID support provided by the operating system itself.
Many of these operating systems support a vast array of system hardware, however I did not want to just reuse a standard PC/Server because of its large power requirements and physical size when compared to commercial NAS systems aimed at the SMB (Small and Medium Business) Market.
Software
Linux, FreeBSD and OpenBSD all offer options for software RAID. There are also a number of distributions specifically designed for NAS appliances such as OpenFiler (based on Linux) and FreeNAS (based on FreeBSD), however I have settled on OpenSolaris because of ZFS and its RAIDZ feature. Also worthy of a mention is the very interesting and well suited looking NexentaStor (based on OpenSolaris), but the added goodness is not open source, so I will consider it no further.
A few reasons why I chose OpenSolaris and ZFS -
- OpenSolaris is based on Solaris (it feels solid, just like Solaris)
- OpenSolaris has CIFS and NFS support built in
- ZFS RAIDZ and RAIDZ2 provide better than RAID functionality
- ZFS has 256 bit checksumming and self healing
- ZFS does not suffer from the RAID-5 write hole
- ZFS snapshots
Looking at ZFS and the reliability of disk failures I decided to go for a RAIDZ2 approach,
which requires at least 4 disks.
RAIDZ2 is an advancement of the traditional RAID-6. It writes a double-parity and
parity is distributed across the disks. In this configuration approximately 50% of
your total disk space is available for file storage and the other 50% is used for
parity information. In RAIDZ2 with four disks, continuous operation is ensured even
with the failure of two of the disks.
Simon Breden has written some excellent blog entries on building a home fileserver using ZFS, he has informed my decisions and I think perhaps he explains the salient points more eloquently. A article of Simon's on the advantages of using ZFS is here
Hardware
My first and by far hardest task was finding a suitable chassis for my DIY NAS. I wanted it to hold at least four disks for storage, and one disk for its operating system – so a total of 5 disks... and it needed to be physically small, this is my home not a data-center.
Originally after much searching, I found the Norco NS-520, which looked absolutely perfect; it supported 6 disks, came with a Mini-ITX motherboard, Celeron-M processor, 512MB RAM, 180W PSU and was physically small (277x187x230mm). Unfortunately the cheapest option was shipping it directly from the manufacturers in Shenzhen, China at $687 =~ £464.82. The cost seemed high (and would of been higher after import duty and VAT) and the maximum power consumption was more than I had hoped for.
The only other NAS chassis that I eventually found was the Chenbro ES34069, again it ticked all the boxes; it supported 5 disks, accepted a Mini-ITX motherboard, had a small 120W PSU and was physically small (260x140x260mm). It was also available from a UK reseller for £205.85 inc.VAT. Cheaper than the Norco (even after adding a motherboard, CPU and RAM) and the maximum power consumption was lower :-)
For the Chenbro chassis I needed to source my own Mini-ITX motherboard. The main requirement was that it support at least 4 SATA disks for my storage and an additional IDE/SATA disk for the operating system and have a low power consumption. Finding a motherboard with a low-power CPU and at least 4 SATA ports turned out to be a tough task, I found only two –
- VIA EPIA SN 18000 EG – VIA 1.8GHz C7 32bit CPU / 26W - £178.25 from mini-itx.com (inc. VAT)
- MSI IM-945GC – Intel Atom N330 1.6GHz Dual Core 64bit CPU / 24.33W Max - $169.00 from orbitmicro.com (£191.13 after currency exchange, import VAT and handling charges)
I chose MSI's Intel Atom board as it offered considerably more processing power at lower power consumption, it is also 64 bit unlike the VIA - there are rumoured problems with ZFS on 32 bit systems.
I would also like to take a moment to congratulate MSI on their excellent pre-sales technical support, a quick call to their UK office and within a day their Taiwan office had emailed me the power consumption specifications for the motherboard :-)
The complete bill of materials and estimated power consumption follows. The remaining items were chosen for their suitability with the chasis and motherboard and/or for their low power consumption.
Bill of Materials |
||
---|---|---|
Supplier | Part Description | Cost |
mini-itx.com | Euro C5 Power Cord | £3.00 |
2.5” to 3.5” IDE Hard Disk Adapter | £7.50 | |
Sony Optiarc AD-7590A-01 Trayload Slimline DVD+-RW Drive | £37.50 | |
2GB DDR2 667 DIMM for EPIA SN / Atom / JNC62K and Socket LGA775 Boards | £29.00 | |
Chenbro 4-in-1 Card Reader (SD/Mini-SD/MMC/MCS) | £9.50 | |
Chenbro ES34069 Mini-ITX Home Server/NAS Chassis | £179.00 | |
SHIPPING | £12.00 | |
VAT | £41.63 | |
Sub Total | £319.13 | |
CCL Computers | 4 x 1TB Western Digital Caviar Green 3.5” SATA 3Gb/s Hard Disk (WD10EADS) | £247.96 |
80GB Seagate Momentus 5400.3 2.5” IDE Hard Disk (ST980815A) | £35.85 | |
SHIPPING | £5.21 | |
VAT | £43.35 | |
Sub Total | £332.37 | |
PC World | Power Cable Y Splitter (4-pin Molex to 4-pin Molex + 4-pin Floppy) | £3.39 |
VAT | £0.51 | |
Sub Total | £3.90 | |
Orbit Micro | MSI IM-945GC Mini-ITX Motherboard, Intel Atom 330 Dual Core 1.6GHz | $169.00 |
SHIPPING TO UK (USPS) | $57.69 | |
Sub Total $ | $226.69 | |
VISA Exchage Rate @ 1.46082 | £155.18 | |
Overseas Transaction Fee | £1.00 | |
Pracelforce Import VAT | £21.45 | |
Parcelforce Handling fee | £13.50 | |
Sub Total | £191.13 | |
TOTAL NAS COSTS | £846.53 |
Estimated Power Consumption |
|||||
---|---|---|---|---|---|
Part | Idle Power Consumption | Max Power Consumption | Quantity | Total Idle Power Consumption | Total Max Power Consumption |
MSI IM-945GC Motherboard | 17.46W | 24.33W | 1 | 17.46W | 24.33W |
1 TB Western Digital Caviar Green Hard Disk (WD10EADS) | 3.70W | 6.00W | 4 | 14.80W | 24.00W |
80GB Seagate Momentus Hard Disk (ST980815A) | 0.80W | 2.00W | 1 | 0.80W | 2.00W |
TOTAL ESTIMATED POWER CONSUMPTION | 33.06W | 50.33W |
Read more in Part 3 - Building my DIY NAS.
Adam Retter posted on Tuesday, 2nd June 2009 at 23.00 (GMT+01:00)
Updated: Tuesday, 7th 2009 at July 17.59 (GMT+01:00)
Comments (5)
Posted by Luke on Tuesday, 23rd June 2009 at 00.02 (GMT-07:00)
Posted by Luke on Sunday, 21st June 2009 at 00.16 (GMT-07:00)
Posted by Adam Retter on Wednesday, 17th June 2009 at 08.26 (GMT-07:00)
Posted by Fred Bradly on Wednesday, 17th June 2009 at 05.41 (GMT-07:00)
Posted by Adam Retter on Monday, 22nd June 2009 at 11.54 (GMT-07:00)