Live data from Hacker News

Building a Budget Homelab NAS Server

mtlynch.io

111–120 of 316 posts

Re: Building a Budget Homelab NAS Server

#111
post #22

Thanks for including energy usage in the article. I carry USB-C SSDs around the house for backups and storage of archived files. Of course this is a bit of a hassle and I played with the idea of either buying or building a NAS. My current standby consumption for all computer stuff (access points, router, switches, a dozen or so microcontrollers and various SmartHome stuff, but not TVs, running computers or gaming con…

There are number of ways around this.

If you are not after speed, then you can do a redundant array of cheap nodes. Instead of using raid, just shove in an 8-12tb disk in a number of thin clients.

The key is that they spend most of the time turned off.

Re: Building a Budget Homelab NAS Server

#113
New drives are around $16-$20/TB depending on if you catch a sale and are willing to shuck. You can pick up used SAS drives in 3-4TB capacity for around $5/TB. I'm a crazy person, so I built this to hold 11 3TB SAS drives:

https://imgur.com/a/JqbBN1p

https://pcpartpicker.com/list/dLhNvf

I used a Supermicro MB and ECC RAM. It's not much more expensive and it's nice having IPMI. I personally think it's crazy to forego ECC. The SAS controller, expander, and drives were used, everything else was new. Prices have gone up. The new parts were $638 at the time. The drives were ~$20/ea. The HBA and expander were ~$85 for both. After the fans, cables, extra drive cage and brackets, total cost was around $1K. This hardware is all supported out-of-the-box by TrueNAS. I haven't done the math to figure out when the cost of running this will exceed having purchased higher capacity drives.

This is what a typical used SAS drive looks like. 30K hours hours but very few on/off cycles. Zero defect list:

https://pastebin.com/WcUYX4JR

The failed SMART test turned out to be a firmware issue. I had to update the firmware on all the drives. That was a bit of an adventure:

https://pastebin.com/j3AGX0xN

A few drives arrived with a non-zero defect list or otherwise failed burn-in. I contacted the seller on eBay and they sent me replacements w/o any fuss. I'm not necessarily recommending used SAS drives, but I'm not recommended against them either. I will recommend the serverbuilds forum for generally good advice on all this. I think this post got me started:

https://forums.serverbuilds.net/t/another-nas-killer-4-0-bui...

The current NAS killer version is 5.0:

https://forums.serverbuilds.net/c/builds/18

Re: Building a Budget Homelab NAS Server

#116
I have pretty much this existing setup. One thing I'd add is that it's quite noisy. If you have somewhere you can put it, and your house is all cat 6'ed up then great. But if like me you have it in the same room as you, you wil notice it. And it's not the pc, the fractal case has very quite 120mm fans, it's the HDDs.

Re: Building a Budget Homelab NAS Server

#117

this costs as much as every PC i've ever owned put together! my budget homelab is 100% recycled (ewaste): - dual core pc (free) - hard drives (free) - ram (free) - lcd monitor (free) - mdadm + ext4

What is the power consumption?

At the beginning of the year 0.35€/kWh was a good estimate. An extra 10W for one year then costs about 30€.

I get the "recycled" motivation, but at that point you might be wasting lots of electricity (and as a result also money).

Re: Building a Budget Homelab NAS Server

#118
> With only a handful of disks, the odds of two drives failing simultaneously is fairly low.

The problem is when the second drive fails while you’re recomputing the parity after having replaced the first faulty drive, a process which may stress the discs more/differently than regular operation, and also tends to take some time. Raidz 2 (or Raid 6) helps to provide some redundancy during that process. Otherwise you don’t have any until the Raid has been rebuilt.

Re: Building a Budget Homelab NAS Server

#119
This article seems right up my alley, so here are some thoughts:

- ZFS is pretty amazing in it's abilities, with it ushering in the age of software RAID over hardware RAID

- ZFS shouldn't be limited to FreeBSD. The Linux port has come quite a long way. I'd advise you to use PPA over repo though, as many key features are missing from the version on repos.

- TrueNAS is more targeted towards enterprise applications. If you want good utility as a home user then give Proxmox or the like a look. Then you can make it into more than just a NAS (if you're open to it).

- If you want to make things even more simple then consider something like UnRAID.

- ZFS' snapshotting can really shine on a virtualization server application, with the ability to revert KVM VMs to a previous state in a matter of seconds. Lookup Jim Salter's (great dude) Sanoid project to see a prime example.

- I don't recall why, but I've heard that RAIDZ should be avoided, in favor of stripped mirrors.

Re: Building a Budget Homelab NAS Server

#120
post #113

New drives are around $16-$20/TB depending on if you catch a sale and are willing to shuck. You can pick up used SAS drives in 3-4TB capacity for around $5/TB. I'm a crazy person, so I built this to hold 11 3TB SAS drives: https://imgur.com/a/JqbBN1p https://pcpartpicker.com/list/dLhNvf I used a Supermicro MB and ECC RAM. It's not much more expensive and it's nice having IPMI. I personally think it's crazy to forego…

The catch with shucking drives from cheap NAS systems like from WD is that those drives have a strong likelihood of being SMR drives instead of CMR. Basically, they'll work fine until something goes wrong requiring, say, a RAID rebuild, and then you'll be out weeks while they rebuild begging that they don't fail in the process because the random write performance is abominable.
Post reply on HN