Opinions about using a mini PC with a HDD enclosure as NAS
I was thinking on buying a 2-4 bay HDD powered enclosure as a NAS for my mini pc, since I already have that, and buying or building a full-fledged diy NAS seems a bit expensive.
I want to hear some opinions from you guys, since it seems using this method is a mixed area from the selfhosted pros. I would be hoping that by using a powered enclosure, that would alleviate or solve the USB port overcharging issue, which have appeared in my mini pc when trying out an external HDD with a normal sata to usb converter.
Did you have any experiences with a setup like this one?
It's usually plugged into my server directly, and I use ZFS to snapshot and send to it. However, I also can plug it into a Pi5 and use ZFS send over SSH to treat it like a NAS. The Pi can of course run Samba/CIFS and SSH for sshfs.
The biggest downside to this structure is probably the metadata speeds for ZFS over USB (looking up snapshot names), but you could always use a cache drive with ZFS.
I highly, highly recommend ZFS and figuring out your software requirements before picking hardware.
I think the unrecognized issues are because people think it will behave like a device with a controller vs just USB pass-through. Every disk I've plugged in just shows up fine on the host. I also have only used it with linux.
As for heat, my drives go to sleep when not in use, but even for long stints of backups it wasn't an issue.
Thanks for the reply! I have a couple USB 3.0 2-drive docks that just sit out in the open - consolidating in to a single, enclosed unit with a fan would be nice (since mine or open, you really hear the HD spin up/click when accessing it).
What do you use to adjust your drives' spin down? hdparm? hd-idle? I have one drive that is constantly spinning/accessed so the thermal concerns with the unit do weigh on me.
So see my other comment on the heat above, but smartctl and hdparm both work great with it. For this warm room I've stuck a fan in front and temps stay below 40C so far.
Have you had data loss occurences in these bay enclosures? Some other commenters have said, that using it as a primary storage is really risky because some crappy controllers could ruin the drives's data for example.