## Building a Networked Attached Storage (NAS) Server with unRAID

I have several computers at home I’m responsible for maintaining: my old Macbook Pro, my Windows 7 desktop, my wife’s old Dell Inspiron running Windows XP, and pretty soon, a Windows 7-based home theater PC (HTPC). One of my frequent responsibilities is backing up these various systems. My current solution consists of a bunch of external USB and Firewire hard drives, one or more for each of these systems. Getting the drives out of the desk drawer where I keep them and sorting through the tangle of different power cords is just annoying enough that I don’t backup as often as I should.

I decided it was time to replace this half-assed discrete solution with something more holistic. After perusing the various NAS solutions on Amazon, I decided to sit down and define some requirements.

### NAS Requirements

• Cheap – I don’t have a bundle of cash to drop on a brand new file server. What I do have is a bunch of old computers and parts sitting around gathering dust. It’d be nice to reuse some of this old gear.
• Lower Power – Most of the time, this server is going to be idle. I don’t want it drawing a lot of juice while its sitting there doing nothing, so I’d like it to spin down the drives when nothing is accessing them. Also, it’ll probably be sitting in my office, which already has a computer and a laptop heating up the joint. I’d like to avoid increasing my air conditioning bill unnecessarily.
• RAID – It needs to have redundancy, not so much for speed, but for safety. Drives die, and if one does, I don’t want it to take out my awesome collection of cat pictures.
• Quiet – It should be relatively quiet. It won’t be sitting near my TV, but I don’t want it so loud that I have to turn up the sound on my existing computers. This is closely related to power consumption. If it spends most of its time idle, it shouldn’t need to run a bunch of fans.
• Networked – The whole point of this is that I’m tired of a bunch of point solutions using USB or Firewire. I need a networked solution. Related to this requirement would be being able to securely access the file server from outside the house over VPN.
• Easily Extended – It should be easily expanded as my drive space needs increase over time. Many RAIDs require that you add drives two at a time, and some of the off-the-shelf NAS appliances available have a fixed number of drive slots. I’d prefer a lower additive cost when upgrading the system rather than a steep replacement cost, and extending the system with off-the-shelf commodity PC components would be a plus.
• Easily Administered – Let me be perfectly clear: I’m a very lazy man. I don’t want to be editing configuration files and rebuilding kernels every time I need to tweak a setting. I spend all day fighting computers as part of my job. When I get home, I want a nice web UI that will also allow me to run the box headless and save a bit more power.

Looking at what’s available off the shelf with respect to these requirements had me a bit depressed until a co-worker of mine named Jeremy pointed me to unRAID Server by Lime Tech.

### unRAID

Lime Tech’s unRAID Server solves most of my requirements. unRAID is a NAS server operating system based on Slackware that boots from a USB Flash device and is specifically designed for digital media storage. It employs a unique RAID technology, close to RAID4, but without striping, which provides for great configuration flexibility:

• Any combination of IDE and SATA hard drives may be used.
• All the hard drives do not need to be the same size or speed.
• Hard drives not being accessed may be spun down.
• Can rebuild any single failed hard drive.

The software comes in 3 versions. The free version supports a server with 3 drives (2 data, 1 parity), but provides no cache drive or user share support. User shares are a unique feature of unRAID OS which provides a unified name space across multiple data disks. User shares simplify storage management by presenting a view of all unRAID storage as if it were one large file system.

At the time this post was written, the Plus version could be purchased for $69. The Plus version supports 6 drives (5 data, 1 parity), as well as an additional cache drive and user shares. The Pro version costs$119, supports up to 20 drives, and adds Active Directory support.

### Next Steps

Now that the box is up and running, there are a lot of things left I’d like to do with it.

• Under-clock the CPU to save even more power.
• Finish configuring SSH so I can access the server from outside the house.
• Set up notifications to send an email when abnormal conditions are encountered.
• Set up Time Machine to use the new server as a backup source.
• Install unTorrent.
• Set up Avahi to access the server over Bonjour.

I’ll try and post more information on each of these as I get around to them.