‹ BackHN Continuity

Thread

Custom home server built from spare parts

91 points · 54 comments · sotilrac

  1. drnick1 · · focus · HN ↗
    > So the NAS runs Kubuntu 24.04 with ZFS

    My experience is similar. I no longer use dedicated NAS, firewall, or other exotic distributions. I run plain Debian, and add what I need through standard repo packages. My "NAS" is simply a Samba daemon. The same box runs countless other services including hostapd (WiFi), DNS (Unbound), an email stack (Postfix/Dovecot), multiple game servers, and Podman.

    > everything else in Docker Compose

    I would suggest Podman instead. It is far more secure by design (rootless) and is unable to silently alter the firewall's configuration.

    1. Gigachad · · focus · HN ↗
      These days you can buy 4 bay USB-C hard drive enclosures which let you make a nas out of any mini pc. I 3D printed a 10 inch rack to put the mini pc, hard drive enclosure and switch in which keeps it all neat and looks kinda cool.
      1. M95D · · focus · HN ↗
        USB is unreliable.

        I used btrfs raid0 on USB drives for more than a year. Every month or so, a drive would disconnect from the bus and immediately redetected as another device (sde->sdf). Btrfs does not auto-recover from this. The choices are 1) reboot and scrub, which recovers the missing drive without doing a full resync, but it needs a reboot (any hosted site is offline for 3 minutes) and scrub takes a long time reading in the background, or 2) run btrfs replace which doesn't need a reboot, but the full resync takes even longer than a scrub and increases wear if it's a ssd because it wipes everything and writes all data again.

        1. Gigachad · · focus · HN ↗
          I have not had this issue myself. Drives connected for around 6 months in raid without issue. But also, you should mount your drives using partition UUID rather than whatever linux decides to name them which is not stable as you'd noticed.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.