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
[-] lemmyvore@feddit.nl 14 points 6 days ago

Truth is, it is availible in the normal kernel now and several distros offer it from start.

You may want to rephrase this. ZFS license (CDDL) is still incompatible with the Linux kernel (GPL) so it's not part of the kernel sources and needs to be compiled as an out-of-tree module against the kernel you're running.

Some distros make such modules available by default with some of their official kernels, some don't. You can get it installed on most distros but the manner of doing so and the amount of support you can expect from the distro varies wildly. If install/update is a manual operation you run the risk of the module falling out of sync with the running kernel.

[-] ShortN0te@lemmy.ml 3 points 6 days ago

That beeing said. For most popular 'server' distros its available in the packet sources and the hussle to install it is just a single command to the packet manager.

It you run custom kernels, or do anything that is not officially supported then obviously you do not have the support and have to risk having it falling onto your feet.

Mostly scarecity.

[-] lemmyvore@feddit.nl 2 points 5 days ago

Mainly what bothers me about the whole approach is the possibility of having the module not load one day, for whatever reason.

I've had this happen with out-of-tree modules for other stuff. I'm fine with something like a controller or camera not working, can even cope with the GPU not working. Not ok with not being able to mount a filesystem that all your stuff is on.

[-] Zwuzelmaus@feddit.org 2 points 5 days ago* (last edited 5 days ago)

not being able to mount a filesystem that all your stuff is on.

No fun, ofc. But also no extra damage comes from it.

The ZFS will stay OK, your disks as well. You can even pack them into a different PC and use them there, all will be fine. I have done it. It is NOT like traditional RAID that can work only with the right controller from the right brand.

[-] ShortN0te@lemmy.ml 1 points 5 days ago

But thats why you dont do that? Either you go for an official package that will be held up to date with your kernel or other system packages or when you for some reason build it yourself or are side loading it, then you automate the process to be triggered during update.

But this is true for every piece of software that depends on specific other software like libraries.

Been running zfs on Debian and Ubuntu for years now and never had to gave it a thought during updates and even between release upgrades.

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