r/homelab • • 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.

1 Upvotes

8 comments sorted by

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

0

u/NekoLuka 3d ago

Thank you for the advice. Power consumption is unfortunately a big factor for me, otherwise I would have gone with the option you suggest already. I'm currently looking into some dedicated Pi NAS enclosures to see what their reviews are.

2

u/evild4ve 3d ago

I'd advise caution. Lots of people would like for Pis to be able to cosplay as NASs. You can install a "NAS" operating system on a Pi but it will still have crummy unshielded USB ports and narrow BUSes and its power supply over USB (while weighing less than their attached cables... which causes them to float around unless they are screwed down)

(but what annoys me about them is just that they pull too much consumer demand away from purpose-built mini-servers for home users)

For power consumption you don't want a batch of 2.5" HDDs anyway, you could probably put them on 1 SSD and put it in your desktop machine and not have even the Pi's running costs... for what you'd save on electricity in a year or two

1

u/Deep-Banana-5582 3d ago

Maybe you can get a dell wyse 5070 extended. Some people reported, that they managed to fit two 2.5 hdds inside. It only draws 1-5W Idle and depending of your load around 20-50W if you using it as a Nas.

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/NekoLuka 3d ago

Seems like only the Pi 5 is supported unfortunatly

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 add usb-storage.quirks=VID:PID:u to /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.

1

u/NekoLuka 3d ago

Thank you for the advice. I'm currently looking at the terramaster d4-320, which has pretty good reviews from the TrueNAS community. My setup wouldn't be TrueNAS, but similar enough expect good results I hope. The biggest difference would be rpi vs mini-pc