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 ?

  • neidu4@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    2
    ·
    edit-2
    15 minutes ago

    Depends on your requirement and hardware really. If you don’t have the RAM for zfs, but a proper RAID controller, just go for raid 6. (The ones crying about raid and dataloss never use a proper RAID controller). If you do not have one, then zfs is a pretty decent choice, but it benefits greatly from having loads of RAM (not required, just very beneficial). If you need something ridiculously large, beegfs is your friend.

    For me, personally, I use zfs to serve a volume of 24 physical drives at home. I find that zfs sits in the middle where it’s flexible enough to serve a lot of those intermediate situations where mdraid isn’t enough, you don’t have a (proper) raid controller, and it’s not enough disks/machines to justify beegfs.

    With 2 drives I’d just go mdraid.

    • Shimitar@downonthestreet.eu
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 hours ago

      If you don’t have ram for zfs, go with btrfs, it’s pretty much lightweight in my experience. But never tried zfs so cannot compare

      Also btrfs has zero licensing issues and it’s standard in the Linux kernel without the need for additional patches like zfs.

      • neidu4@piefed.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        17 minutes ago

        I’m the inverse, I’ve never use birds btrfs, lol. I’ve got all my use cases covered already, so I don’t foresee a need for it.

        Edit: ducking autocorrect