Ubuntu ZFS pool refuses import after kernel upgrade: 'incompatible feature flags' and module version mismatch
Environment
Ubuntu 22.04 LTS server, ZFS-on-Linux (zfsutils-linux from distro packages), pool created on another machine with ZFS 2.1.x, kernel upgraded from 5.15 to 5.19 via HWE kernel upgrade, system uses DKMS zfs module build, machine has 8 TB NVMe pool.
Symptoms
zpool import fails with errors referencing 'incompatible pool version' and zfs module reports 'module spinlock mismatch' in dmesg. Boot drops to maintenance shell until pool import is attempted manually. Data appears intact on underlying devices (smartctl shows healthy drives).
Observations
dmesg contains: 'ZFS: vdev_dtl_reassess: module version mismatch' and 'ZFS: pool has feature flags not supported by this ZFS implementation'. zpool import -d /dev/nvme... -o readonly=on lists the pool but refuses to import read-write. zfs --version shows a different tag than the pool's feature set reported by zpool import -D on the other machine where pool was last active.
Already attempted
Tried apt-get install --reinstall zfs-dkms/zfsutils; DKMS build failed with gcc warnings tied to new kernel headers; rebooted into previous kernel (5.15) — on previous kernel the zfs module loads but zpool still warns about features; attempted zpool import -o compatibility=1 (rejected); exported pool on source machine and reimported remotely (not possible due to physical location).
Question
How can I safely import the ZFS pool on this machine after a kernel upgrade without risking data loss, and what steps revert to a compatible ZFS module version when DKMS won't build for the new kernel?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags