Does anyone here use Open ZFS on desktop?
from maxprime@lemmy.ml to linux@lemmy.ml on 29 Nov 12:29
https://lemmy.ml/post/23031555

I’ve been thinking of switching from btrfs to zfs but it seems like it’s quite a bit of work. Does anyone have any experience with this?

#linux

threaded - newest

gi1242@lemmy.world on 29 Nov 12:31 next collapse

why do you want to make the switch?

maxprime@lemmy.ml on 29 Nov 13:14 collapse

I like the idea of deduplication and checksumming to prevent bit rot. It also sounds like backups via snapshots is extremely powerful, but maybe that’s something btrfs can do too.

Ultimately though it would be about learning. That’s what’s drawn me to Linux in the first place.

Kerb@discuss.tchncs.de on 29 Nov 13:55 next collapse

afaik btrfs is can do all the things you listed.

im using open suse with btrfs and can only recommend it.

the setup was easy ( asside from non btrfs related issues with the finicky installation media)
and open suse automaticly sets up subvolumes and snapshots before and after each update
to take advantage of btrfs

kylian0087@lemmy.dbzer0.com on 29 Nov 14:29 next collapse

Opensuse Tunbleweed has some great btrfs defaults. And snapper makes rollbacks a breeze.

magikmw@lemm.ee on 29 Nov 16:20 next collapse

Yes, it can.

Lemmchen@feddit.org on 30 Nov 01:39 collapse

However, please don’t use btrfs for anything else than mirrors. RSID setups are unstable.

antithetical@lemmy.deedium.nl on 29 Nov 15:09 next collapse

Just a note, unless you have a very specific use-case you don’t want to do deduplication.

See:

gi1242@lemmy.world on 30 Nov 05:14 collapse

i used to use zfs for backups via snapshots. but I find using rsync and hard links is much more convenient. i can use standard tools to look through backups and track which files changed if needed.

0x0@programming.dev on 29 Nov 12:53 next collapse

I don’t even remember i use it, on Gentoo, RAIDZ1.

maxprime@lemmy.ml on 29 Nov 13:15 collapse

I guess I meant it’s a lot of work to set up initially. Especially if you don’t have experience.

theunknownmuncher@lemmy.world on 29 Nov 13:45 next collapse

I’m using ZFS in RAID1 for my /home directory on Gentoo, but not for the root filesystem. Setting it up actually isn’t too bad. It should be straightforward to install and only a couple commands to create and mount the zpool.

When I upgrade the system, sometimes it does not autoimport the zpool on next boot, and I need to do a # zpool import -f pool_name && reboot, but otherwise there have been no issues.

General ZFS config info:

wiki.gentoo.org/wiki/ZFS#Zpools

wiki.archlinux.org/title/ZFS#Configuration

Root filesystem info:

wiki.gentoo.org/wiki/ZFS#ZFS_root

wiki.archlinux.org/…/Install_Arch_Linux_on_ZFS#In…

0x0@programming.dev on 29 Nov 16:30 collapse

I think Ubuntu offers ZFS in the installer now, so not really, just go to the advanced options.

Nilz@sopuli.xyz on 29 Nov 14:07 next collapse

I am using ZFS on root on Arch using 2x 2TB SSDs striped . I mainly did it because my server runs on ZFS as well and thought snapshotting and backup would be easy, but instead went with Borg backup anyway.

Installation wasn’t very difficult, but the ZFS kernel modules can’t keep up with kernel updates (even with LTS kernel) on Arch, so I constantly need to do partial upgrades and it’s been annoying. As much as I love ZFS I’m not sure I’d do it again on Arch. If your distro is not using bleeding edge kernels then I don’t foresee any issues really.

Olap@lemmy.world on 29 Nov 15:24 next collapse

LTS is supported!

wiki.archlinux.org/title/Kernel

Nilz@sopuli.xyz on 29 Nov 21:53 collapse

It is, but with kernel-specific packages you have the kernel linux(-lts) and the kernel module zfs-linux(-lts) and they aren’t in sync. Even with the LTS kernel I run into the issue that I can’t update the kernel since there’s a dependency issue between ZFS and Linux.

I have both LTS and zen and I’m currently on 6.6.36 and 6.9.7 respectively.

Lemmchen@feddit.org on 30 Nov 01:40 collapse

Is there an easy way to install distros on a ZFS root that are not supported by debootstrap?

ScottE@lemm.ee on 29 Nov 14:38 next collapse

I use it everywhere, raidz2 on HDDs for a NAS also with mirrored NVMe root pool, and on a couple of laptops. zfsbootmenu is awesome, so I can boot into any snapshot, and a pacman hook that creates a snapshot whenever I upgrade packages. Even if it’s overkill for some of my use, I use it anyway and trust it much more than anything else - it has a proven track record. Backups to rsync.net are a breeze with borg/borgmatic.

antithetical@lemmy.deedium.nl on 29 Nov 15:07 next collapse

Yes, and it saved my ass a few times. Every computer I own now and in the future will have at least mirrored or raidz disks with zfs. On all desktops, laptops, servers and nas.

Even upgrading from spinning rust to ssd was easy replacing the disks one by one and resilvering.

The (k)ubuntu installation made it very easy to have an encrypted zfs rootfs but they may have removed it on newer installation iso’s, I’m not sure…

Lemmchen@feddit.org on 30 Nov 01:41 collapse

The Kubuntu installer offers btrfs instead now (not sure about Ubuntu).

antithetical@lemmy.deedium.nl on 01 Dec 14:36 collapse

That’s such a shame. ZFS has been rock solid for me for years while I hear lots of scary stories about btrfs.

PseudoSpock@lemmy.dbzer0.com on 29 Nov 17:53 next collapse

I did for a long time until it was pulled from Ubuntu and Mint’s respective installers. Loved it when I had it.

Mwa@lemm.ee on 29 Nov 18:04 next collapse

I try to avoid zfs because I don’t wanna use a external kernel module, I already have 1 external kernel module (nvidia) already.

apt_install_coffee@lemmy.ml on 30 Nov 03:33 collapse

I used ZFS with Arch for a while, the volume manager was what I’d call the largest benefit; in my opinion nothing else comes close to being as useful and well integrated.

I stopped because ZFS incompatibility with recent kernels (which I needed for GPU reasons) made me have to rescue my system more often than was ideal.

Some other minor downsides:

  • boot can take ages due to ZFS using udev-settle.
  • deduplication status is… Complicated.
  • you’re kind-of stuck with the performance of your slowest vdev; L2ARC & a metadata device don’t really compensate well for a zpool that is predominantly a raid-z2 of spinning rust.