Homemade NAS based on FreeNAS

brons2

Limp Gawd
Joined
Jul 16, 2008
Messages
503
OK, I am looking to build a homemade NAS using FreeNAS https://www.freenas.org
. I am considering a wide range of hardware to get there. First, let's look at the requirements:

-Low power consumption, will be on 24/7/365.
-Environmental temps up to 95F as I turn down the AC when I am at work.
-Not loud. Some noise OK (due to previous requirement)
-Case with 2 HDD bays as I want to use the software RAID in FreeNAS.
-2x500Gb or better, 5400 RPM ok
-Prefer SATA 3.0 capable hardware
-Prefer GigE capable
-Prefer a CF slot, FreeNAS can boot from CF.
-Embedded or socketed CPU ok. 35W TDP max, prefer lower.
-Form Factor mini-ITX, micro-ATX, micro-BTX or smaller.
-Windows Home Server capable, in case I change my mind on FreeNAS

Budget: As little as possible, willing to spend $300 give or take $50.

What I have considered so far:

Via C7 based Mini-ITX
Pros: CPU Power consumption as low as 7w on fanless models. Most widely used mini-ITX parts in industry. Wide range of hardware options.
Cons: Relatively expensive relative to performance. Most with only 1 DDR slot and a max of 1GB low density (64m memory chips). Poor BIOS/software support from vendors.

This site has the widest selection of C3/C7 ITX board that I have seen http://www.logicsupply.com/categories/mainboards although their prices aren't necessarily the best

Intel Atom based Mini-ITX BOXD945GCLF
Pros: Low power consumption, modern 45nm process CPU, 1.6 Ghz, will run Windows tolerably well. Probably best performance in an embedded chip available. Will accept 2GB PC5300. Has 3.0 sata. Excellent chipset software support on a variety of OS's - it's Intel.
Cons: No GigE, Northbridge fan is loud according to users, requires 12v ATX compliant power supply connector.

Shuttle KPC K48 based PC with Celeron 430 35w processor
Pros: Perfect form factor. A normal PC, more expansion options. Will run Windows. 2x DDR slots. GigE. Processor can upgraded to Core 2 Duo if desired.
Cons: Power consumption unknown, probably higher than embedded solutions. Fully configured price at Newegg with memory and 2x 500GB is above target range ($358 shipped). Tolerance to ambient temperature requirements a question.

HP Slimline PC's.
Pros: Great form factor. Fully functional PC, probably easy to re-sell at a later date. Good hardware information web pages from HP. CF slots. Inexpensive.
Cons: Power consumption with AMD chips 45w TDP. Power supply reliability a question. CD/DVD drive must be removed to support 2nd hard drive. Tolerance to ambient temperature requirements a question.

HP Microtower PC's dx2300 refurb
Pros: 5 bay case, room for 2 HDD and CD. Fully functional PC. Intel low(er) power CPU's. Good hardware support. Dirt cheap - as low as $209.
Cons: Unknown power consumption. Larger than slimline cases.

Anyone got more suggestions? I'm all ears.

[edit] fixed links
 
OK so I went to Fry's and some parts followed me home! I swear!

They had 3 mini-itx boards there, a 1.5 Ghz Via, the 1.6 Intel Atom I mentioned previously and a fanless 1.2 Celeron. The fanless Celeron was on closeout for $39.99. I just couldn't resist that. Here it is:
http://www.logicsupply.com/products/d201gly2a
http://www.intel.com/products/desktop/motherboards/D201GLY2/D201GLY2-overview.htm
It only has SATA 150, but oh well. I can live with it.

They also had Seagate SATA3.0 500GB retail boxed hard drives on sale for $79, with a limit of 1. I told the manager I wanted 2 at that price, and told him only somewhat jokingly that I would go buy the drives at Newegg if he didn't. They ok'ed 2 at that price, but I had to get another manager to re-approve it at checkout. Fortunately they didn't hassle me at all and I wasn't in a hurry. (since I had also spent about an hour looking at the latest HDTV's, lol.)

I got a $24.99 stick of 1gb DDR2-433/PC4200 by Patriot, there wasn't any reasonable 512's available.

As for the case, I wanted a Micro ATX but they didn't have any, and I wasn't going to pay a bunch of coin for one of those fancy mini-PC boxes. So I caved and bought a cheap Raidmax mid-tower for $34.99 that included a cheapo 380w power supply, which should be more than sufficient for this application.

$281 out the door with my full setup including tax. I'm happy. Now, to go rev up my screwdriver.
 
If you don't mind using an IDE slot and are willing to put the Compact Flash card on the inside of your case, then you can buy CF to IDE adapters for cheap from eBay... do a search for "ide cf" there.
 
If you don't mind using an IDE slot and are willing to put the Compact Flash card on the inside of your case, then you can buy CF to IDE adapters for cheap from eBay... do a search for "ide cf" there.

I was going to suggest that. I bought one just to play with as I think it is neat as hell. I just thought of something else to try later. ;)
 

That is so cool! Thanks!!! I will probably get one.

I got the system up and running already. I am thinking of installing a full-on OS just for kicks before I dedicate it to being a headless NAS. Bios says it is EM64T capable!! Maybe Ubuntu 8.04 64 bit...

I gotta shut down my main desktop, it's so loud what with 2 120mm case fans. I can't even hear the embedded celery.
 
hot hot, omfg hot! this board is fanless but it sure needs some air across it. The CPU temperature read 105C when I went into the BIOS hardware monitoring. I put a 80mm case fan directly behind the CPU, shut the case and now the temps are reading a slightly more sane 63c.

Maybe with this cheesy PSU the voltages are too high. V12.0 is 12.19, V3.3 is 3.36 and V1.5 is 1.6.
 
Well I have run into some major issues getting this board to play nice with the SATA drives I acquired for it. I made a bootable USB key to install Ubuntu and everything seemed to go fine with the network install, but then when the install was complete I rebooted the system it went through POST and then wouldn't do anything.

After about an hour of despair, I started disconnecting things and then when I disconnected the hard drives, all was well again. I went back and RTFM on the Seagate drives, it seems that there is a jumper to set them to SATA 150. Tried installing the jumper, didn't have any effect, the machine still just sits there right after POST. It isn't locked up, as it is responsive to the keyboard and <ctr><alt><del> reboots, but it doesn't do anything either.

Thought maybe a BIOS upddate might help. I found one from January of 08, the installed BIOS was from July of 07. Of course I don't have a floppy or CD drive installed on this machine, so back to the USB key again. I was able to download a utility to format my USB key DOS bootable (XP will not do it by default...) so I downloaded the bios and put it on there. Booted right up on the mini-ITX, thankfully. VER at the DOS prompt showed the OS to be Windows Millenium...lol. Therte were a few tense moments with the BIOS update as it seemed to hang at 75% for a long time but eventually it completed successfully.

Unfortunately the BIOS update didn't help. I then tried switching around cables between the SATA cable that came with the drives and the one that came with the board, no difference. (is there any difference between SATA300 and SATA150 cables?)

I suppose I could install a CD or a floppy drive, I am being pretty stubborn here. But if nothing else I have learned a lot about making bootable USB keys, both in Windows and in Linux. It would really help if I had one more USB drive, and I know I have a couple of freebies floating around in my desk for work that I got at some IT trade show. But that would take gas to get there, and it's running about $3.90 a gallon. Stubborn, I tell you!

I'm gonna try two things:

-a PATA drive I have sitting around, see if I can install Linux on that

-the SATA drives in my main desktop so I can see if they are running SATA3.0 or 150. I need them to run 150.

I keep thinking that maybe I should have gotten the Atom board as it suppors SATA3.0...but I am trying to put those thoughts out of my mind :D If I can get the PATA HDD to work on this board maybe I could use it for something else. For $39.99 I probably won't take this one back unless it's broken. I could always build a firewall out of it or something.
 
Have you tried reinstalling Linux onto the drives after you changed the jumpers to 150?
 
I can't even get that far. It hangs right after POST with the SATA drives plugged into the board. I'm thinking maybe I don't have the jumper right after all. Or, maybe my jumper is too big as it looks to need one of the tiny jumpers. Either way, I am going to take the drives out and hook them to my main machine and see if it will tell me what the SATA setting is.

Anyways, it's working fine with a 30GB PATA drive. At least this gives me an option for a working hard drive configuration. Of course I am going to want to get these SATA drives working, that is the whole point of this project.

I am doing another network install of Linux. Thank goodness for 8Mbit Internet :D. Network Linux install completes in about 30-45 minutes on my connection. I think I'm gonna try xubuntu this time, it has a bit smaller footprint than regular Ubuntu as it uses the XFCE desktop environment.
 
Yeah that would be a good call given your computer. Of course you could always just do command lines for the ultimate in small footprint :-P jk

My friend had a Seagate hard drive with the jumpers and his are tiny. Had to use a pocket knife to get in there and pull the jumper out (it came set at 150 but he has 300). That could be your problem.
 
ok this is just bizarre. after installing Ubuntu and rebooting, it doesn't boot off the PATA drive. At least this time it doesn't hang...it does go through the PIX BootROM routine, looking for some network bootable code, but then it gives a message - No bootable device -- insert boot disk and press any key.

The ironic thing is that, prior to installing Ubuntu on the 30GB drive, it had a Windows 98/Windows XP dual boot and it would definitely at least try to boot that; of course it didn't work because it was set up on totally different hardware, but still.

I swear I am installing the right version, i386 and not the 64 bit...maybe Ubuntu is just not supported on this configuration. Maybe I should break down with that CD drive now...I have live CD's for xubuntu, Ubunutu i386 and Ubuntu x64.

arrrrrrrrrrrrrrrrrrrrrrrrrrrrrghhhhhhhhhhhhhh

off to the Ubuntu forums I go....
 
I am not so sure it's a problem with Ubuntu. I have had a few problems with Ubuntu just not working no matter what I tried, and it was always hung up at instalation. I'd try to install it via CD-ROM before you flip out, you can always remove the CD-ROM drive after you are done installing it :-P
 
The thing is, the network install appears to complete successfully, I went through the whole thing. <sigh>

I'm hooking up a CD now.
 
Yes, installing Xubuntu from CD went fine. The system runs really fast! Much zippier than I expected. Great Linux desktop for super cheap.

I also ran a couple of passes of memtest86, and now I'm running mprime, the Linux version of Prime95. So far 12 hours stable. I haven't tried messing with the SATA drives again yet, I just got tired of it. Maybe tonight.

So far, I can say with some certainty that any problems I have encountered on this project have been because of user error :D. The hardware is rock solid stable is far as I can tell.

The one current issue I have is, I haven't figured out how to install the video drivers from the Intel site so I am stuck on an ugly 800x600. I did find some instructions but I haven't had the time to go through them as of yet.

Once I am done with Linux and I have the SATA drives working I will probably move on to the FreeNAS installation.

I'm considering a few more purchases: one of those industrial IDE CF devices, a "plus 80" ultra efficient power supply, and a silent case fan. The first device would be to boot FreeNas off of, the 2nd two to reduce noise and power consumption.
 
Ubuntu should have the intel drivers available, don't mess with the Intel site for open-source graphic drivers. Search Intel and Integrated in Synaptic, and you should be able to find some suitable drivers. I'm surprised they didn't install automatically (unless you don't have 8.04).

Linux is great for running fairly fast on slow machines though, as its daemons are a lot more efficient than Windows' services are (from personal experience). Ubuntu seems to run faster than Fedora as well, so I am sure that helped.
 
Decent, cheap and 80+ PSU:
Antec Earthwatts EA380 380W PSU - $40

I know for a fact that it can reliably power 5 hard drives 24/7 since it's doing that right now with my Linux server. See sig for the rest of specs of my Linux server. And it's significantly better than the Raidmax PSU you're currently using. The EA380 has more amps on the +12V rail where it counts and is made by Seasonic.

And here's a list of silent case fans:
http://www.silentpcreview.com/article63-page2.html
 
Amps on the 12v rail? Who cares, this system uses 33 watts at idle. It's a low power embedded mini-ITX board. A 75 watt PSU would probably be fine for my purposes. What it needs to do is a) Be efficient and b) be quiet.
 
What it needs to do is a) Be efficient and b) be quiet.
The EA380 fits both requirements.

And amps do matter if you're planning to add a ton of hard drives to the system. But that's not the case with you so the point is moot.
 
OK so I have an update on this. The case panels are back on and I have the OS fully operational, with the FreeNAS software RAID working properly. I did my burn-in on Xubuntu, and after that worked for a while, I installed FreeNAS. At first I used a third hard drive to house the FreeNAS install, but today I backed up my config and installed the embedded version to a USB key successfully after some trial and error. Oh, ok, about 3 hours of trial and error :D. Now the whole system boots off the USB key!

By the way, it works fantastic. I have a 100Mbit network and I am able to push it to 80-85% using the FreeNAS box when copying files back and forth, I think that's about as well as can be expected. It plays music files with absolutely no drops, stutters, anything. A bonus I was not expecting (but was hoping for somehow) was the very good UPnP setup that is included. I set it for PS3 compatibility mode and my PS3 sees it as a "Media Tomb" and allows me to play all my media files downstairs on my old school stereo. Excellent!!!

The Web interface included with the software is fantastic, it's as easy to use as could be. You don't need to be a Unix command line guru to use this software. The box configures it self to automatically use an IP of 192.168.1.250, which should work on most home networks. If you need a different subnet, you can just tell the console that you want to change the IP address. Another side benefit of this is that you can run the NAS completely headless. All you need is a power cord and a network cable, modifications can all be done via Web.


OK, now for the bad....

I have to say that, if I were to repeat this project, I could do it in a fraction of the time. There were a lot of gotchas along the way. I learned that:

1. The Net install of Xubuntu does not work that well, it's better to install from CD to avoid headaches. I don't know what I was doing wrong with the net install but I failed at least 3 times. Installing from the CD worked right the first time. I really only wanted to use Xubuntu to do a burn in, but futzing around with this step cost me a lot of time.
2. If things are not working the way you expect (no boot after BIOS and you don't know why) pull the hard drive cables. I agonized for hours the first night, thought that the MOBO was defective, but yet, pulling the drive cables returned it to perfect operation. As it was, I had written a bad Xubuntu image to the hard drive and it would try to boot and then stop, but it was USER ERROR, nothing wrong with the mobo.
3. If you have a newer board that assigns USB keys as a hard drive in BIOS and you want to boot off of it, you must set the USB key as the first hard drive in the BIOS. I was scratching my head about this, kept telling myself, "I thought I told the damn thing to boot off of USB stick argh!"
4. If you are writing an OS image to a USB key, it is better to start with a completely blank key with no partitions unless the instructions specify otherwise. Use DBAN to completely zero out the USB key. I kept getting errors trying to write an image file to the USB key using several different methods including the FreeNAS CD utility and physdiskwrite in Windows. As it turns out, the image writer programs will try to write to the partition first. You need them to write directly to the disk. A wipe cured that.
5. If you are having problems booting from your USB key and it's plugged into the front panel USB ports, plug it into the back panel ports that are actually on the motherboard, that works much better. I had problems booting the FreeNAS OS from the USB key and I was like....now what?!?!?!?!? I glanced at the FreeNAS documentation and it suggested plugging it into the back ports, it worked perfectly after that. Oddly, I had no problems booting Linux or DOS from a USB key plugged into the front panel. but whatever....lol.
6. I made things a lot harder on myself by absolutely insisting on no CD for this build. I don't know that I would do that again, as I had to hook one up anyways. I may just pick up an external for this purpose in the future as most newer motherboards support booting from an external CD.
7. FreeNAS has options for power savings on the hard drives, but you cannot use these options if you are using Software RAID. It will not work. I could not mount the drives after I set them up and I was tearing my hair out again. Would have been a nice feature but I can see how, in a RAID config, this would be undesirable. At any rate, it all worked fine once I didn't set up the disk with any sort of power savings.

I am sure there are many other gotchas that I am forgetting, but all and all I learned a lot. It helps to be able to walk away and do other stuff, that's for sure!
 
I do have one update, I measured the power draw at idle using a pass-through AC plug block (borrowed from a guy at work who likes to futz with homemade guitar amps) and it's about 37 milliamps, or 40 watts.

I think a more efficient PSU (as I mentioned above) would help this a bit. Although I think lower 30s is probably the reasonable limit as I'm running 2 hard drives with no power saving mode which is probably about 12-15 watts right there, and then the board of course.
 
I do have one update, I measured the power draw at idle using a pass-through AC plug block (borrowed from a guy at work who likes to futz with homemade guitar amps) and it's about 37 milliamps, or 40 watts.

I think a more efficient PSU (as I mentioned above) would help this a bit. Although I think lower 30s is probably the reasonable limit as I'm running 2 hard drives with no power saving mode which is probably about 12-15 watts right there, and then the board of course.
What PSU are you using now?
 
Great thread, thanks for all the details. :cool:

How are your temps doing? You mentioned that your board is fanless but all the photos of it that I saw show a small fan on the cpu. :confused:

I'd much rather rely on one or two quiet 120mm fans in the case than a smaller (much, noisier) fan on that cpu.

How do you plan to add more drives?

If you want to use the box for backup here's a handy link:
http://harryd71.blogspot.com/2008/07/backuppc-on-freenas.html

One last thing, have you played with ZFS yet?

BTW, the aforementioned Antec Earthwatts 380 P/S is down to $30 at NewEgg.

Thanks agin.
 
Temps are in the lower 60s, what can you do, it's passively cooled? I guess I could pop off the stock heatsink and put on one with active cooling, the D201GLY2A version of this board has an active cooling solution. The case will not fit 120mm fans, 80mm only. I guess as long as the CPU is under 70 I'm not too terribly worried. Plus the board cost $39.99 so if it burns up, I'll probably just go buy an Atom board.

I was not planning on adding more drives actually. I have 2x SATA 500GB right now and the motherboard only has 2 SATA connectors so I'm pretty much maxed out. I'm running RAID 1 so my overall capacity yield is 476GB. That's enough for my needs, I'm not one of these people with gigantic video files or anything like that.

I have used the box for backups but my other clients are Windows so I just use ntbackup.exe to write to a UNC path, that seems to work fine.

No I have not played with ZFS, I am running the latest stable version and not the .7 version.

Interesting on the Earthwatts, thanks! Tempting! Unfortunately I have some medical bills to pay, crashed my bicycle the other day and had to make a trip to the ER.
 
Back
Top