Don't want the backstory? Jump to Solution
Before anyone comments that ZFS isn't great for this, I know. I read Jeff Geerling's article about ZFS on Pis, which warns against it. I'm testing these things out well in advance of my trip and if it doesn't work, I'll try it another way.
I was running into a problem, however. I installed the ZFS plugin through the OpenMediaVault UI and saw a few
modprobe errors in the logs:
I stumbled around trying to fix this for a couple of days. I tried a simple
sudo modprobe zfs but just got the same error.
I then found an issue from last year on a GitHub repo porting ProxMox to Raspberry Pi describing a similar issue:
A few comments down is a suggestion to install the kernel headers. This is corroborated by my experience trying to follow another ZFS troubleshooting guide, which had me stumble into an error complaining about missing kernel headers.
That was a lot more backstory than I meant. Whoops.
If you already installed ZFS and got a
modprobe error, run the following commands:
sudo apt update sudo apt install raspberrypi-kernel-headers sudo modprobe zfs
Then test with
zfs list. If you get a message stating
no datasets available, it worked and you're good to go!