I am sorry if this the wrong community to ask in, while I have been on Lemmy for more than a year now, I am still learning my way around, and this seems like a relatively active community in a relevant area.

Right, on to my questions!

I am planning to build a NAS over the summer, at the moment all of my personal photos are stored on a single mechanical 2TB Seagate drive that is about 4 years old.

I have other media on another drive that is older but larger, all in all I expect that I have about 8TB of data that I care about.

I am working as a 365 admin, and have been the main Linux admin at my last place of work, I am also a hobby photographer in my spare time.

Currently, I am looking at using either the N4, the N3 or the N5 from Jonsbo, the N4 is a beautiful case!

I am thinking of running four 6TB drives in a softraid like this:

Linux > MDAM (raid 5) > LVM > ext4

My thinking is that I will probably need to migrate to new drives every X years or so, and with the LVM, I can just add a new external (larger) drive to the VG, and move the LV from the old drives to the external drive, remove the old raid drives from the VG, put in new drives, setup MDAM, add the raid to the VG and move the LV back to the raid.

Am I overthinking this? this NAS will be my main media machine and will probably see a decent ammount of use over the years.

I have thought about setting up OpenMediaVault or TrueNAS as the OS, but having never run them, I wonder if they will be as flexible as I want them to be.

I am currently considering just running Debian and setting this up from the terminal, but I am not a super fan of SMB settings in the terminal, I did consider using cockpit as a web admin tool once it is setup to monitor the system, can I do the SMB config from that?

I am apprehensive about a manual SMB config, as the last time I did it, it was a weird mess for the team who had to use it…

I am more familiar with AMD hardware over Intel, and I am looking at the old AM4 plattfrom, but what I don’t know is how much power a homebuilt NAS will use in standby or when active.

  • danA
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 days ago

    You could use an OS like Unraid that handles ZFS for you. You don’t really need to know how ZFS works if you use Unraid since it’s all set up through the web UI. You can always search for how to do things if needed :)

    ZFS has bitrot protection which is very useful for important files. Whenever you save a file, it computes a checksum for that file and stores it in the file table. When you read a file, it can detect if that file is corrupted on the drive it’s reading from (the checksum won’t match) and it’ll silently / automatically repair it using data from a different drive.

    AFAIK none of the other file systems support this. You need to use ZFS RAID rather than mdadm RAID for it to work.

    • stoy@lemmy.zipOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      2 days ago

      Sounds like I need to get a another computer in addition to my NAS to do some testing with.

      To be honest I am not 100% locked in on MDADM + LVM and EXT4, I am used to LVMs and have a decent understanding of them, and basically no understanding of ZFS.

      From what I can see bit rot is not a huge problems for home users, I’ll add that to the plus side of using ZFS, and decide what I will do when I get the hardware.

      • danA
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        I’m the same as you - I had experience with mdadm, LVM, LUKS, and ext4, but no experience with ZFS. I still don’t know a lot about ZFS, but Unraid set it up for me, and I can always Googl4/DuckDuckGo any issues I encounter.

        From what I can see bit rot is not a huge problems for home users

        The thing is that it’s likely that lots of people are affected by bitrot and just don’t know it, since there’s no way to detect it without using checksums. People don’t know that their files have succumbed to bitrot until they try to use them and realise they’re corrupted.