ITADN

zfs Versions Inconsistent on Linux Upgrade: Hang and Data Loss

#18559Closedharaldrudell 创建于 2026-05-19
Type: Defect
H
haraldrudellcommented
### Describe the problem you're observing A systemic problem exists when upgrading Linux/Ubuntu in that the zfs command-line utils are first upgraded and then the boot directory is going to be written during when a version mismatch with the kernel module this has been the case when upgrading from Ubuntu 24.04 Symptom: zfs hang requiring long 4-second power-off during grub writing boot menu Cause: zfs command-line utils have been upgraded and are of different version from the running kernel module result is unpredictable on a good day it hangs Conclusive proof: **zfs version** zfs-2.4.1-1ubuntu5 zfs-kmod-2.2.2-0ubuntu9.4 - those two versions must be the same or unpredictable result Get-Around: 1. manually ensure /boot has the newer kernel vmlinuz and ramdisk initrd.img 2. stop grub during boot using down-arrow key, edit to boot the newer kernel, ie. newer zfs 3. in the OS, run update-grub while versions are matched Actions for zfs project: Decide with Ubuntu how consistent versions are going to be guaranteed during installation and implement that decision - perhaps update zfs package out of order - perhaps make better compatibility when versions are mismatched - something else It is quite remarkable that zfs silently runs when it could detect a version mismatch ### Describe how to reproduce the problem There are many bugs indicating unpredictable behaviors It has happened before but especially when LTS is upgraded which is two years or so ### System information <!-- add version after "|" character --> Type | Version/Name --- | --- Distribution Name | Ubuntu Distribution Version | from 24.04 Kernel Version | 6.8.0-117 to 7.0.0-15 Architecture | x86_64 OpenZFS Version | 2.2.2 to 2.4.1 ### Include any warning/errors/backtraces from the system logs
关闭于 2026-05-19 2 条评论