posted in Selfhosted

Is using zfs really worth the investment vs other filesystems?

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 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 ?

Replying to @⁨FukOui@lemmy.zip⁩

2 legends about ZFS seem never to die: that it is difficult in normal linux, and that it needs much extra RAM.

Truth is, it is availible in the normal kernel now and several distros offer it from start. There are tools for maintaining it, and after a while, you will find that it needs less routine maintenance that most traditional file systems.

Truth is also that it can absolutely work with less RAM. That thing is only important for servers with a high load. There it is recommended strongly to have lots of RAM, but even there it is not for the sake of ZFS itself, but it is for the performance of your server. It makes good use of all that RAM in ways that other file systems cannot.

Is my understanding right that it just good for detecting storage corruption, but not really self healing?

If you use it on just 1 drive, and the default setting, then this is true. It still detects bit rot, but it cannot repair it automatically. But it has also an option for the self healing on only 1 drive (for the price of drive space then).

If you use 2 mirrored drives, or more as a raidz, the self healing is always there.

Replying to @⁨Zwuzelmaus@feddit.org⁩

Not quite self-healing, but worth noting: if you use zfs send to automate backup of snapshots, and local files get corrupted for whatever reason, the corrupted files are not propogated to the backup. That is not the case for most other backup solutions because they cant detect it. Zfs not only alerts you to the bitrot, it prevents it from spreading.

Edited ⁨⁨Nov⁩ ⁨23⁩, ⁨2026⁩, ⁨12:28⁩⁩en