|www.rodneybeede.com||"I would love to change the world, but they won't give me the source code" - unknown|
I decided to build my own NAS versus buying one because for about the same cost I could get something that ran a stock Ubuntu Linux system which would make it easier to customize. I run some scripts that do file verification overnight and will also use it for an OpenVPN server and rsync for offsite backup server. While I saw some NAS devices that might have been able to do that they didn't has as much CPU or RAM like I wanted.
One important consideration was a box that would be very power efficient. I could have just taken some old spare parts and ran a server, but it would add $10-$15 a month to my electric bill. I also wanted something that could run 24/7 and not be noisy.
In terms of hardware I wanted something that had dual cores, 1GB+ ram, and supported USB 3.0. Ideally before disks cost it would be around $150. This is what I ended up with:
So $165 before hard drives. The motherboard also has HDMI and VGA out, but I only needed that during the initial setup.
I installed Ubuntu 13.04 LTS 64-bit Server Edition on the 2GB USB drive and boot from that. Since the Ubuntu installer uses grub it identifies the boot drive by UUID so I can plug the drive in on any port with the boot order working just fine.
The motherboard's BIOS has a lot of options and little documentation. I initially made the mistake of enabling the thermal shutdown option (in the CPU fan section) which caused the machine to consistently power off hard. This option wasn't necessary as the system wasn't overheating and another option already would cut the power if it reached a critical level of heat. I restored the option back to the BIOS default and it worked fine afterwards.
Updating the BIOS with Windows was as easy as copying the latest BIOS to a USB, inserting the USB, powering on, and hitting F12. I was prompted to select the USB file and confirm to flash.
I configured Samba with the most secure settings for the current version (smbd Version 3.6.9) and created the necessary users and shares.
Overall the system runs very quite and the fan doesn't run at full speed always. I tested full speed by disabling fan smart control in the BIOS just to see. When disabled and the fan always at 100% it is quite loud, but when you leave the fan smart control enabled (I usd Auto) it is very quite.
Performance wise from a Windows 7 machine to the NAS over sftp I only got about 15 megabytes/second with one core of the NAS at 100%. I used FileZilla which may have been a bottleneck as well. I didn't do any optimization of the encryption algorithm for sftp so I'm betting that could be made faster.
Windows 7 64-bit (fully patched) to the NAS was my setup. I ran the benchmark once so the 4GB file would be cached into memory on the NAS. This test was to verify that my NAS would max out the gigabit connection. I performed a dd on the 3TB drive on the NAS to verify that USB 3.0 performance was meeting the maximum speed of the drive which it did.
I'm very happy with the performance, power usage, and price. I can also run integrity checks of all the drive data at night or perform other tasks such as compression to archive files. The NAS makes a great backup device and utilizes the speed of my wired gigabit connection.