Comment 5 for bug 2030100

Revision history for this message
Brad Stancel (brad-stancel) wrote :

@cement_head - This is what I did just yesterday to solve the issue. I am using kernel Linux 6.2.0-37-generic x86_64 on Ubuntu 22.04. Mind you, my ZFS pool is *not* on the same disk that is running my OS. That disk runs ext4 and I have six disks in a raidz2-0 array that I use for storage.

If you are running a kernel put out by one of the Ubuntu apt repo's like I am, then you can do the following:

- Write down the names of each of your ZFS pools (for instance, I have one called "z-storage" in a raidz2-0 array)
- Uninstall the zfs-dkms package from the Ubuntu repos since it only handles kernels up to 5.19 (sudo apt remove zfs-dkms)
- Now re-import your ZFS pool (sudo zpool import <name-of-your-zfs-pool>) (i.e. for me - sudo zpool import z-storage)
- Reboot
- Once your OS comes back up, check the status of any ZFS pools (sudo zpool status -v), or just list them if you prefer (sudo zpool list)
- If your ZFS pool does not show up, make sure to check the settings in file "/etc/default/zfs" to make sure that ZFS is loading the key, mounting and unmounting, sharing and unsharing. If not then adjust those settings, reimport the ZFS pool and reboot like above and you should be good to go.

Hope that helps and works for you and anyone else that also has this issue.