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
[-] Shimitar@downonthestreet.eu 36 points 6 days ago

It's my personal opinion but: no

Btrfs is integrated in the kernel already and pretty solid. I have been running it for the last few years. I use Linux mdarray to create a raid5 and on top of it, format btrfs.

Never had issues, and yes it did catch data corruption (and fixed it) so I am pretty happy .

Zfs on the other hand, needs specific kernel patches and I don't like that too much.

[-] avidamoeba@lemmy.ca 6 points 6 days ago

ZFS has been running with upstream kernels for years. Ubuntu ships with precompiled module and Debian has a DKMS package which compiles ZFS against the stock kernel.

[-] toastal@lemmy.ml 2 points 4 days ago

NixOS also makes it trivial to use ZFS

[-] dadarobot@lemmy.ml 4 points 6 days ago* (last edited 6 days ago)

fully agree.

i used zfs on arch many yeara ago and my updates would fall months behind.

then i switched to freebsd for better zfs support. but lost support of some linux apps

later i started using truenas and it works great.

on a related note, i switched to cachyos on my desktop and laptop and used btrfs for the first time and i absolutely love it.

so if youre building a nas from scratch, id say use btrfs, but if youre using an os that manages that stuff for you, zfs is a great choice.

[-] Guiorgy@lemmy.ml 5 points 6 days ago* (last edited 6 days ago)

If you only require mirrors (RAID 1) then BTRFS works fine, but if you need something more and the system has good support for it (e.g. Ubuntu) then ZFS is better IMO. Yes you can use mdraid with BTRFS, but I prefer 1 ZFS over 10 different moving parts.

I use both, choosing which one depending on the conditions.

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

Selfhosted

64081 readers
785 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