Fix ZFS after kernel upgrade

Below are the steps I take whenever upgrading the kernel.

Note* I’m using POP_OS! (Ubuntu, Debian based) so your results may vary. I’m mostly posting this as reference for future use

sudo apt remove zfsutils-linux zfs-dkms zfs-zed
sudo apt install zfsutils-linux zfs-dkms zfs-zed

Optionally:
sudo apt -f install

sudo modprobe zfs
sudo zpool import POOLNAME

Hint: You can also sudo zpool import which returns a list of pools possible for importing.
After that, reboot and everything should be working again.

Leave a Reply

Your email address will not be published. Required fields are marked *