Per title. From quick googling, I understand that zfs is a filesystem that provides some kind of software RAID and resiliency (eg CRC checks at the block level). Is my understanding right that it just good for detecting storage corruption, but not really self healing?

My home server just for a mini storage/ media server and I am broke to afford RAID. So at the moment, it’s just 2 consumer grade drives .

So pros with zfs I can think of, I get slightly better data resiliency.

But after reading the docs, the cons for me are that a) it’s not so straightforward/ somewhat complex to tune and use, b) it’s not default in mainline linux, and c) slightly lower performance?

What do you think and is it worth learning to use it vs just slapping a plain xfs/ ext4 ?

  • Short answer: not for this machine. Your reading is right: on a single drive ZFS only detects corruption. It repairs a file only when a second copy exists, and with two drives that means a mirror. So the real question is what the second drive should do. I would give it a backup job rather than a mirror. A mirror survives one drive dying, but it also copies every deletion and every mistake to both drives at the same moment. A second drive holding a nightly copy (rsync, or restic if you want older versions) covers both cases, and then plain ext4 or XFS on the first drive is plenty. If you can, keep the backup drive in another room. ZFS or btrfs earns its place later, when you have more drives and want checksums and snapshots, and nothing you set up now stops you moving to it. Once the nightly copy runs, test it by restoring one file from the backup drive onto the first.

    @FukOui @selfhosted

    • ryannathans@aussie.zone
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      55 minutes ago

      Snapshotting, which ZFS has, prevents any data loss from accidental deletion or mistakes.

      Snapshots also occupy no space until you delete files