Hello everyone and thanks in advance for reading this and/or giving advice!
General info
I wanted to build a home server for some time and finally have the funds to do so (my budget is ~1500€ but having to spend less is better).
I want to use the server mainly for storing media files, so the data is not extremely important but I still want to make sure it's reasonably safe. I am also aware, that RAID is not a backup.
So the uses will be mostly
Hardware
I wrote down most of what came to my mind in a GitHub gist. It contains a parts list with a link to the geizhals.de page for hopefully all of the parts I mention here. Although the site is in German, they do list a decent amount of details for each part. You can ignore the questions that I listed in the gist, they are mostly a reminder for myself.
I'll list the parts again here and include some reasoning to why I picked each part
Software
I want to run Proxmox as the hypervisor and have one VM for TrueNAS and another one for Debian. The TrueNAS VM will have the whole HBA passed through and I'll let it be just a NAS and manage share permissions. I'll then mount shares in the Debian VM and manage the rest with Docker/Portainer as I am already familiar with that.
TrueNAS and storage
I plan to run the 6x 6TB HDDs in a RaidZ2 configuration, because I am scared of losing another drive while resilvering. This should give me ~21TB of usable storage.
I'd also like to run another vdev with SSDs for metadata. While I think I could also live without that, I really like the idea.
For that, I was thinking of getting two or three TS512GMTE220S and run them in a two- or three-way mirror. They have 1PB TBW which is not infinite but should last quite a while. They also cost only ~35€ which is insanely cheap.
But since they don't have power-loss-protection I was thinking of using two MTFDDAK480TGA-1BC1ZABYY in a two-way mirror instead.
I also have a HFS256G39TNF-N2A0A BB and a MZ-75E250B lying around.
I was thinking of using both in a two-way mirror as a boot drive for Proxmox and the VMs.
I don't think I need L2ARC.
Questions
Again, thank you so much for reading this and/or giving advice! If I forgot to mention anything or something is wrong, please tell me.
PS: I blatantly stole the thread title from this thread as it fits perfectly.
General info
I wanted to build a home server for some time and finally have the funds to do so (my budget is ~1500€ but having to spend less is better).
I want to use the server mainly for storing media files, so the data is not extremely important but I still want to make sure it's reasonably safe. I am also aware, that RAID is not a backup.
So the uses will be mostly
- Network storage (the main purpose)
- GitHub/GitLab runner
- Streaming stored media (to my phone, PC and Chromecast)
Hardware
I wrote down most of what came to my mind in a GitHub gist. It contains a parts list with a link to the geizhals.de page for hopefully all of the parts I mention here. Although the site is in German, they do list a decent amount of details for each part. You can ignore the questions that I listed in the gist, they are mostly a reminder for myself.
I'll list the parts again here and include some reasoning to why I picked each part
- Mainboard: ASRock Rack X470D4U2
- Supports ECC (I heard in a YouTube video that there is OS support but the errors don't get forwarded to the IPMI, I'll edit in a link when I find the video)
- Intel I210-AT NIC
- CPU: AMD Ryzen 5 PRO 4650G
- Supports ECC
- Relatively recent architecture
- AES and SHA instruction support
- Integrated GPU for transcoding
- RAM: KSM26ED8/16MR
- ECC
- Micron dies (seems to be recommended)
- Max. frequency the mainboard supports
- Storage-Controller/HBA: Broadcom SAS 9207-8i (LSI00301)
- Broadcom SAS2308 chipset (recommended in the hardware guide)
- I can buy it used and flashed to IT-Mode for 100€
- Case: Fractal Design Define R5
- Soundproofed
- Two 140mm fans pointed at the HDDs
- Relatively cheap (120€)
- Seems to have decent build quality for the price
- I don't need hot-swap trays
- PSU: Fractal Design Ion+ 560P
- ETA-Platinum (230V) and LAMBDA-A++ (230V)
- ATX 2.4 (nice to have I guess)
- Single +12V rail with 46.6A
- Fully modular
- I can buy another SATA power cable from the same manufacturer that plugs directly into the PSU so I don't have to use some sketchy ones
- Main HDD storage: Seagate Exos E - 7E8 6TB (x6)
- Sadly pretty power hungry (12W active, 8W idle)
- I can buy them used for 50€ per drive with 1 year of warranty
- I'll probably have to update the firmware but it's just 6 drives so not much of a hassle
Software
I want to run Proxmox as the hypervisor and have one VM for TrueNAS and another one for Debian. The TrueNAS VM will have the whole HBA passed through and I'll let it be just a NAS and manage share permissions. I'll then mount shares in the Debian VM and manage the rest with Docker/Portainer as I am already familiar with that.
TrueNAS and storage
I plan to run the 6x 6TB HDDs in a RaidZ2 configuration, because I am scared of losing another drive while resilvering. This should give me ~21TB of usable storage.
I'd also like to run another vdev with SSDs for metadata. While I think I could also live without that, I really like the idea.
For that, I was thinking of getting two or three TS512GMTE220S and run them in a two- or three-way mirror. They have 1PB TBW which is not infinite but should last quite a while. They also cost only ~35€ which is insanely cheap.
But since they don't have power-loss-protection I was thinking of using two MTFDDAK480TGA-1BC1ZABYY in a two-way mirror instead.
I also have a HFS256G39TNF-N2A0A BB and a MZ-75E250B lying around.
I was thinking of using both in a two-way mirror as a boot drive for Proxmox and the VMs.
I don't think I need L2ARC.
Questions
- Is having the metadata only in a two-way mirror too unsafe (risk-wise) if I'm already giving up useable space for the redundancy of RaidZ2? (Since the whole pool is gone if I lose the metadata)
- I didn't really find an answer to whether I should use an UPS or not.
- If the metadata SSDs have power-loss-protection, would that be sufficient to survive a power-outage?
- I didn't find a single brown-out (yet) on any electronics I own, so that is not really a concern for me.
- If I were to get an UPS, how large does it have to be so I can instantly start a graceful shutdown as soon as a power outage is detected? (I guess the answer to this one is that I'll just have to test it with a power meter)
- If I just lose the last 5 seconds of asynchronous writes in case of a power outage and a metadata SSD with power-loss-protection protects me from losing the whole pool, that'd be perfectly fine.
Again, thank you so much for reading this and/or giving advice! If I forgot to mention anything or something is wrong, please tell me.
PS: I blatantly stole the thread title from this thread as it fits perfectly.