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 ?

    • Strider@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      How could it detect corruption on a single drive without parity or are you proposing 2 partitions on one drive? 😉 Even zfs can not work that magic of detecting corruption without parity.

        • Strider@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          4 days ago

          Apologies for the mistake, I got ahead of myself. It does still detect it but can not repair without parity so you could not do much but restore. With parity it can be repaired.

    • ryannathans@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      5 days ago

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

      Snapshots also occupy no space until you delete files

          • The_Decryptor@aussie.zone
            link
            fedilink
            English
            arrow-up
            1
            ·
            5 days ago

            It’ll depend on the specific system configuration, but by default ZFS has an internal cache that takes half the system RAM for itself, while btrfs doesn’t do any special caching and uses the same kernel caching layer as Ext4/XFS/etc.

            You can tweak it down, but it is something to be aware of.

            • ryannathans@aussie.zone
              link
              fedilink
              English
              arrow-up
              1
              ·
              5 days ago

              ARC is literally just a smarter version of the memory caching you’re going to get with every filesystem. You only notice it because it’s tracked well and you have access to detailed statistics. Your free memory with other file systems is used for caching in much the same way as you mentioned.

              “Half the system ram” is bullshit, that’s the maximum allowable and only if you aren’t using and don’t need the memory. You don’t need to tweak anything down, the default minimum cache is 32MB or 1/32 of system RAM.