2011
02.23

I’ve recently put together a small computer to act as a simple SOHO NAS. I’ve received a few questions about it, so I thought I should put up a quick blog about what I’d done.

The hardware is as follows:

  • CiT S003B case with built in 300W PSU
  • Gigabyte GA-D525-TUD Mini-ITX motherboard
  • Dual core 1.8Ghz Intel Atom D525 processor (built in)
  • 2Gb of generic DDR3 RAM
  • 1x 4Gb Compact Flash (200x) card mounted on a CF-IDE adapter to act as a boot drive
  • 2x Samsung 320Gb 2.5″ hard drives
  • 1x Samsung 2Tb Spinpoint F4 3.5″ hard drive

I chose an Atom CPU for the reduced power usage, as this machine is intended to run continually. The solid state (of sorts) boot drive allows the system to operate without spinning up the mechanical data drives. The two 320Gb drives are configured as RAID1 and are used to store important documents and backups; I chose the 2.5″ size because of power usage and noise level, and also because they fit in the case and were available for a good price (sometimes practicality wins). The 2Tb drive is for larger files that are essentially transient, so no need for RAID protection.

The software setup is more interesting. The base OS is Debian Lenny. Storage is configured as ext3 formatted lvm2 logical volumes, on top of Truecrypt encrypted mdadm software RAID arrays (320Gb RAID1, 2Tb JBOD). Mechanical disks are configured to power down when not in use. For simplicity, the boot drive doesn’t use RAID or encryption, and the other storage is scripted to mount at startup time.

I have scripted daily and weekly rsync+ssh backups from remote servers and local workstations, set up Samba file sharing, and built and installed the Transmission BitTorrent client to handle the occasional long running download. Future installs might include AFP file sharing for MacBook backups (though I’ll likely just use rsync+ssh again for this) and audio or DLNA streaming servers, but I’ve yet to investigate these options fully.

SpiderOak gives a final layer of backup protection, making sure all my important files are securely backed up to the cloud. In case of, you know, a local meteor strike or something.

The real question of course is, is it successful? I’m not convinced the case was a good choice; the PSU fan is very loud and I’m sure I could find something generally smaller. The software encryption layer kills disk performance (80 or 120Mb/second raw down to 20Mb/second) as the little Atom CPU struggles with the load. Other than that though, this box works well enough, is very flexible and was an interesting foray into Linux system administration. So from that perspective at least the answer is yes.

On the other hand, for less time, money, space and power I could be using an off the shelf unit such as a Synology which would have been almost as flexible.

But where’s the fun in that?

Update: I’ve posted some photos, hard drive temperatures and power usage figures.

Related Posts

  1. diy debian home nas update

6 comments so far

Add Your Comment
  1. Are there any pictures of this little miracle? I mean it’s 2011, there has to be pictures!

  2. This case looks great for my needs. 2×3.5 for Raid1 and another 3.5 in the 5.2 bay with an adapter for the OS.

    Did you manage to quieten down the system? How ‘loud’ are we talking here?

  3. The S003B PSU fan is much louder than my main workstation, which has a 700W PSU, big CPU fan, 3 case fans and two hard drives running. I’m not sure the PSU fan was the whole story though. It blows out across a grille in the outer wall of the case and I think the air rushing over this part plays a large part in the noise it makes.

  4. Update: I’ve posted some photos, hard drive temperatures and power usage figures.

  5. what is the samba speed for windows client?

  6. I’m getting about 20Mb/s, which is about the same speed as local disk access on the NAS machine.

    It’s restricted by the limited NAS CPU having to handle disk encryption; I get closer to 90Mb/s without encryption.