I’d been using ZFS with Void linux on both my laptop and desktop for a couple of months. And ZFS is cool! But I’m thinking not great for my use case, especially for my laptop with it’s more constrained resources. Memory usage was a real problem, even after imposing low ARC limits. And the kernel module compile time was long enough to be a bit annoying, especially for a few kernels (I like to keep the last few around, to be safe) as it happens fairly often on a rolling release.

I switched the laptop to LUKS/btrfs a couple of days ago. And I’m thinking that was the correct choice for that. And now I’m considering doing the same for my desktop. As they seem comparable but btrfs is in-kernel and seemingly more system resource friendly. But before doing so I figured I’d ask the community about it. Maybe some important factors or features for either setup that I might not be considering.

Here’s the stuff I care about. All of which both offer, but I’m not an expert at either and I don’t know how equal they are.

  • Disk encryption. For ZFS everything (except the EFI partition) is encrypted. I use ZFSBootMenu in this scenario. For the btrfs setup I have the kernel/initramfs on an ext2 partition. I do not store any decryption keys in the initramfs. I know grub can decrypt LUKS with limitations, but I prefer this setup. And it feels secure enough to me. Any pitfalls I’m missing?
  • Pools/subvolumes
  • Snapshots. ZFSBootmenu has an option to load a snapshot. For btrfs it looks like I’d need to create a subvolume from a snapshot, which in a recovery situation might mean doing this from recovery media. That’s ok, given this is an unlikely thing to encounter. But if anyone knows of an easier way, I’d love to hear it.
  • CoW
  • RAID 1
  • Compression is nice, especially for the laptop

Edit: typo in title.

  • JovialSodium@lemmy.sdf.orgOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    22 hours ago

    It’s the shits at software RAID, but that’s rarely a thing on a workstation.

    I am using a RAID 1 mirror over two disks. So that’s good to know. I’ll do a little research and see if it’s better to let mdadm handle that.

    Look at btrfs-assistant for adminstration. That’s what Fedora ships with, I think it uses Snapper in the backend.

    Doesn’t look like that’s in the void repo. But that’s ok, I don’t mind learning the command line tools.

    • ikidd@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      21 hours ago

      It’s not good at letting you know when a disk is borked. And normally if you reboot a mirror with a bad disk, it will complain so you know to fix it even if you missed the log entries about it being down. Btrfs will quietly just let you boot into a potentially lethal situation for a mirror with a bad slave.

      And there was something about scrubs that was janky as well