Proxmox (Debian based) has this amazing ability to boot directly from a ZFS raid set of drives and also installs the kernel and the main OS on each drive in the boot pool so if any one drive dies you can still boot up without requiring a separate boot disk. I would love to emulate this on my Manjaro desktop systems for OS and storage pool redundancy and also to be able to use send/recv for super efficient backup to ZFS based backup servers, and optionally Proxmox Backup Server as well.
I’m wondering if anyone else here is already doing something like this? Is anyone else interested in this approach for their desktop systems?
I have read that post before, but the number of steps involved is daunting and the likelihood of failure is pretty high. I’ve been waiting until I get a spare laptop/desktop before attempting that procedure. I was also interested in how many folks are already successfully using ZFS, particularly the concept of having the kernel and OS on each drive. That post barely mentions the possibility.
Sure, ZFS is often used in data centers, but it’s also a favourite among home labbers, particularly if using Proxmox like myself, so having local ZFS based backup destinations is already a given.
I would never use it to install my Linux OS, let alone boot from it. It’s too convoluted; it requires more advanced upkeep as you update your system; it’s not part of mainline kernel development (this is a big deal); and there’s a legal grey area that will always lurk around the corner, thanks to Oracle.
An OS or boot partition can always be re-installed or recovered. It does not contain any sensitive nor irreplaceable data.
You can make a case for a ZFS “home” and ZFS “user data”, to leverage send/recv. But for the “root” system and “boot”? Not worth it in my opinion.
I have to disagree. I’ve had a small Promox cluster for the last year, and I am super impressed how well the application of their ZFS boot system works. Admittedly, they have a 16K shell script called proxmox-boot-tool that manages it all. About 6 months ago, I pulled out two SSDs that were a part of a Raidz-1 (3 drive) pool on an older machine and put them into a new Minisforum and turned it on to see what would happen. Sure enough, it booted up, albeit in degraded mode. If I wanted to add a new 3rd SSD and let it resilver then I could have regained the original Raidz-1 pool in a new host with very little downtime. No OS reinstall from ISO and no data reinstall from external backup. I really want that functionality for my daily workstation.
They are notorious for filing lawsuits, but I would argue that it’s due to the restriction of GPL. It is simply not compatible with CDDL because CDDL allows the use of proprietary development, which conflicts with GPL policy.
Manjaro is a primarily an end-user, rolling-release desktop OS. It’s completely different than a dedicated server or Proxmox.
If you really want to setup a ZFS boot/root on Manjaro (or an Arch-based distro), then the instructions linked by @megavolt is a good place to start.
Yes, it’s more work, prone to failure, and will require more diligence on your part to maintain it, especially throughout system updates.
It goes way beyond the scope of a typical Manjaro setup.
There are other quirks and nuances, such as how Grub does not fully support ZFS, and you’ll either have to use systemd-boot or place the kernel and boot files on a non-ZFS partition. Both “solutions” negate the whole purpose of your aim: a ZFS-redundant boot drive