this post was submitted on 10 Jul 2023
5 points (100.0% liked)

Arch Linux

7763 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

I am in the process of making a DIY NAS box and I am debating between mdadm + BTRFS and ZFS. What are your experiences with using ZFS on Arch? Have you run into any major issues? Does ZFS being an external kernel module cause any annoyances with the frequent Arch kernel updates?

Give me the dirty details! Any recommendations or pitfalls I should avoid?

Thanks!

top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago (2 children)

Smooth sailing so far. As some said, sometimes a new kernel comes out and OpenZFS needs to catch up. But for that I keep linux-lts around which is pretty much always compatible so if latest regular kernel can't ZFS, there's always the LTS kernel to boot back up. You probably will use linux-lts anyway since you're building a NAS box and probably prioritize stability.

[–] [email protected] 1 points 1 year ago

Thanks! Yeah I was definitely considering using linux-lts for stability, although a weird part of me is addicted to that Arch life of constantly living on the edge.

[–] [email protected] 1 points 1 year ago

This is how I do it, installed the LTS kernel and never had an issue updating ZFS.

[–] [email protected] 3 points 1 year ago (1 children)

I'm using zfs on arch for a few years now.

No issues with the filesystem at all!

The only thing I'm noticing is that on some ocasions I can't run updates if a new kernel has just came out; the arch repo doesn't have the zfs modules for the new kernel yet. Usually a day later I can run updates without an issue.

[–] [email protected] 1 points 1 year ago (1 children)

That's good to hear, thanks for sharing! Out of curiosity what kind of RAID and storage volume have you set up?

[–] [email protected] 2 points 1 year ago

I've got a pool of a collection of harddisks, mirrored. Performance is pretty decent considering the slow disks.

Oh having lots of available memory helps too, the ARC does a good job caching data, so the more the better.

[–] [email protected] 2 points 1 year ago

It has been years since I last used zfs. Here's what happened to me. I had a zpool nearly full. It died of 0 B/s read/write. Previously I had to recreate a zpool because a metadata error happened from loose connection. I forgot to export before unplug several times and processes accessing it went into D state, requiring a reboot to cleanup.