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
[-] mlg@lemmy.world 7 points 4 days ago

In my experience, RAID 5 has always been poor performance, and at RAID 50 you're better off just using ZFS.

ZFS's killer feature (aside from RAIDZ) is silent data corruption protection, which is why its preferred for large pools with many drives or anywhere where data resiliency needs to be very high.

The key here is the pool size, ZFS is only worth running if you have a sizable amount of drives and the system resources (RAM mostly) to run it.

You can run it on a cheap homelab server, and people do, but I wouldn't recommend it unless you only use it for storage and you get more drives for RAIDZ.

Otherwise, the cheapo method of getting better data resiliency without performance loss is RAID 10 (Or in your case, RAID 1). That's my default for any consumer grade drives. The cost of half the usable space is just worth the level of protection you get from a drive failure, especially when you're on a budget (still much cheaper per TB than buying some beefy SAS drives and doing RAIDZ).

Make it a RAID 1 and chuck XFS on it for some corruption protection (or BTRFS, or ext4).


Also, make sure you use smartctl and even consider making a script that runs a test monthly and saves the results somewhere easy. Start a long test of your drives and check the output later (take a couple of hours to a day) to see if it found any errors and look at the error counter stats. A failing drive will have a lot of errors stacked up in the counter, and a failed drive is if the long test fails.

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