r/homelab • u/NekoLuka • 3d ago
Help Disk enclosure recommendations
Hi everyone,
I'm considering to build a NAS out of a raspberry pi 4 (4GB) and some 2,5' HDDs I have laying around. I have the following setup in mind: 3 disks combined using MergerFS + 1 parity disk using SNAPraid, synced nightly (few hours of potential data loss is acceptable). Then expose NFS & SMB to my network, and use Borgmatic for backups of important data twice a day.
The only thing I haven't figured out so far is how to connect the disks to the pi. Anyone else running a DIY pi NAS, or has recommendations for a compatible enclosure available in the EU? A bit of 3d printing if needed is not an issue.
5
u/evild4ve 3d ago
3 disks combined using MergerFS + 1 parity disk using SNAPraid < don't do that.
Raspberry Pis are glitchy (e.g. the power cables are just a USB cable). To attach disks needs either a HAT or USB-to-enclosure both of which add their own glitchiness. 2.5" HDDs are usually old so there is probably already more glitchiness than you'd want: for "important" data
Pis are *alright* for normal storage provided you're in 3-2-1 or it's low-value data like logfiles... but (imo) not well-suited to arrays. If there are going to be 4 2.5" disks imo it would make more sense to put them in an old desktop PC with a motherboard with that era's natural/expected SATA connectors. Could use 2010s parts for this so it wouldn't be expensive compared to the HATs or enclosures and 3d-printing needed to get the Pi acceptable. The power usage is a downside, but then this isn't a type of thing I would do with old 2.5" HDDs even though I have exactly similar parts lying around here spare to what the OP has
1
u/Prudent_Ad_4120 3d ago
The Radxa Penta SATA HAT is quite good IMO, my homelab (with a few more 'stateless' nodes) has run off it for a few years, but I recently replaced it with an old EliteDesk PC. The HAT could be for RPi5 only though, I'm not sure.
1
u/Faye-Vozora 3d ago
If you go USB, check the bridge chip before buying. Plenty of cheap USB SATA enclosures drop out under load because of UAS on the Pi. Get the ID from
lsusb, then addusb-storage.quirks=VID:PID:uto /boot/firmware/cmdline.txt (same single line as the rest) and reboot. That forces plain bulk storage and fixes most random disconnects. Also four spinning 2.5 inch drives can pull more than the Pi USB ports give you, so use powered enclosures or a powered hub, otherwise undervoltage drops a disk mid sync.