109
submitted 6 days ago* (last edited 6 days ago) by FukOui@lemmy.zip to c/selfhosted@lemmy.world

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 ?

you are viewing a single comment's thread
view the rest of the comments
[-] rtxn@lemmy.world 9 points 6 days ago* (last edited 6 days ago)

I absolutely recommend ZFS. I've been burned by MD (the other software RAID) because it doesn't scan the array for bad data, so bit rot and silent errors can go undetected until a process wants to read it. ZFS periodically scans the array and fixes corrupted data if possible.

ZFS can use more CPU resources compared to MD, but the difference in performance is insignificant compared to the read bandwidth of mechanical hard drives. Memory usage is comparatively high because it uses the RAM as cache, but you can set a limit. My current 8TB RAIDZ1 array uses only 8GB of RAM and it could still be lower.

I recommend using some dedicated OS to manage ZFS pools, like TrueNAS Scale or Proxmox.

https://pve.proxmox.com/wiki/ZFS_on_Linux

it’s not default in mainline linux

It's purely an issue of licenses. ZFS is a mature solution, and being out-of-tree does not reflect a qualitative issue. It's available as a separate package on most distributions.

[-] Shimitar@downonthestreet.eu -1 points 6 days ago

You cannot compare zfs to md, they are different like apples and oranges.

MD it's a raid device, not a filesystem.

You should compare btrfs to zfs, they pretty much share the same capabilities and features.

I use MD as my raid array, and btrfs on top of MD.

Of course if you use ext4 on top of MD you get nothing of the good stuff, except a very solid array management due to md.

this post was submitted on 21 Nov 2026
109 points (100.0% liked)

Selfhosted

64081 readers
865 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS