-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel update 5.15.5-76051505 breaks zfs #2032
Comments
Same problem here, i tried this solution: https://github.com/pop-os/beta/issues/285 |
as mention in the previous link one solution can be like this (i added some modifications): Remove both zfs-dkms and zfsutils-linux (in case they are installed):
Download and install the zfs-dkms package from 21.10:
Re-install zfsutils-linux:
But this solution is falling apart every time I reboot my computer Another solution is to downgrade the kernel (boot in 5.13 instead of 5.15) but still, it is a temporary solution that will break at the next update... |
I also ran into this issue. I ended up reverting to a previous system snapshot. Unfortunately, the update also seemed to have changed to initrd process to no longer prompt for my passphrase when decrypting one of my ZFS datasets. After manually decrypting the datasets ( |
There is indeed a problem with zfs after the lateste update. It seems that the system module "zfs-import-cache.service" fails because it can't find the "/sys/module/zfs" and "zfs-load-module.service" fails because it can't find the zfs module in "/lib/modules/5.15.5-76051505-generic". I found this after scrolling through syslog: |
Doesn't this issue also affect anybody who uses System76 PPAs, beyond Pop!_OS Users?? |
Yes, the same kernel is shipped by both Pop!_OS and the System76 Ubuntu PPA that is used for hardware enablement on System76 products. According to the most recent OpenZFS changelog (2.1.1), OpenZFS does not yet have support for kernel 5.15 (the highest "supported" kernel is 5.14, although it looks like work is actively being done in the project to support 5.15 in the future): https://github.com/openzfs/zfs/releases/tag/zfs-2.1.1 |
https://github.com/openzfs/zfs/releases/tag/zfs-2.1.2 ZFS 2.1.2 was released with kernel support to 5.15. Not sure how long this will take to work its way into the repos |
Any updates here? Can't update my desktop until this is resolved. |
I update this week to "Pop!_OS 21.10 x86_64" and did followed these instructions
And that seems to fix it on the 2 systems that i have that run pop-os and zfs it mounts at boot and the performance is the same as before. |
I haven't tested thoroughly or for any length of time, but ZFS seems to be installing and loading with the below. But really haven't tested this beyond what I've described below. This system doesn't boot from ZFS nor does it mount any ZFS (it's just a laptop!). In a couple weeks I'll be back at my desktop that runs ZFS and know whether this is really functioning and stable. FWIW, there are ZFS 2.0 (currently 2.0.6) and ZFS 2.1 (currently 2.1.1) PPAs here. I'm running the 2.0 on a Raspberry Pi 4 on Ubuntu 20.04 Kernel 5.4 and found that 2.1 was horrendously unstable for my UASP enclosures and couldn't get past 0.5% of a scrub without leaving 1/4 of my disks UNAVAIL and the pool suspended until reboot.
|
I'm running into the same problem. I was hoping a couple weeks later that there would be a fix... |
@chuck-bz Have you tried reinstalling zfs and zfs-dkms while booted in 5.13 and then trying 5.15 again? sudo apt remove zfsutils-linux zfs-dkms
sudo apt install zfsutils-linux zfs-dkms |
@curiousercreative I think there is some confusion here. This bug is about zfs-2.1.2 not being present in the repo with a dependency on kernel >=5.15. Using zfs-dkms changes the method to manage kernel modules. It is infact possible to build zfs-2.0.6 for kernel 5.15 by installing zfs-dkms. $ cat /etc/pop-os/os-release | head -n2
NAME="Pop!_OS"
VERSION="21.10"
$ uname -r
5.15.8-76051508-generic
$ sudo apt install zfs-dkms
-> reboot
$ zfs --version
zfs-2.0.6-1ubuntu2
zfs-kmod-2.0.6-1ubuntu2 The problem here is that zfs-2.0.6 and kernel 5.15 are an unsupported combination, which with filesystems is a risk not worth taking. Also the PPA proposed seems to rename $ sudo apt remove zfsutils-linux
$ sudo apt install zfs-linux zfs-dkms EDIT: fixed incomplete zfs version |
@curiousercreative No I have not tried to re-install zfs on 5.15 kernel. From what @lynxnot said it doesn't sound like that would be a good idea. Also note that it looks like 2.0.7 is released with 5.15 support ( https://github.com/openzfs/zfs/releases?page=1 ) @lynxnot have you tried the PPA with zfs-2.1.2? Sounds like our options are:
One thing to note, I'm running 20.04 so on my system zfs --version outputs:
I think that means my zfs version is 0.8.3 but the kernel module is 2.0.6. I'm not sure how that works... |
Thanks for this discussion, I'm having the same problem. Considering giving up on my ZFS partition and reformatting it since it looks like ZFS is not a priority of PopOS at all :( Which PPA are you referring to that has zfs 2.0.7 or 2.1.2 with proper support for kernel 5.15 ? |
@jacobgkau as you mentioned here this seems to be resolved? Do I need to do anything to be sure this comes in when I run my Pop! Shop updates? I don't see any new packages for zfs listed in Pop! Shop updates ready to apply to my 21.04 system (up-to-date as of late Nov or early Dec). I'm happy to update to 21.10 (that was my plan) but I follow the advice of upgrading packages prior to dist-upgrade. Of course, any user that updates to kernel 5.15 will need a zfs package that supports it, regardless of whether they're on 21.10 or prior. |
@curiousercreative The version of * The DKMS module compiles and I'm able to create and mount a pool. |
@jacobgkau So to be 100% clear - what are the steps that we need to undertake to install it? Currently I have:
And nothing shows up in terms of modules. |
@pdemarino The package is On my 20.04 system, |
I've been running zfs-dkms on 5.15 for a couple days now and haven't noticed any instability. |
Does this duplicate pop-os/linux#88? |
Thank you for the confirmation. I'm closing this issue since the currently-shipped version of ZFS supports the currently-shipped kernel.
Yes. Although that one was in a more specific repository, given that the ZFS repo didn't exist yet when the issue started. |
Distribution (run
cat /etc/os-release
):Pop!_OS 21.04
Related Application and/or Package Version (run
apt policy $PACKAGE NAME
):linux-image-5.15.5-76051505-generic:
Installed: 5.15.5-76051505.202111250933
163820157921.0409f1aa71638201579Candidate: 5.15.5-76051505.202111250933
21.0409f1aa7Version table:
*** 5.15.5-76051505.202111250933
163820157921.04~09f1aa7 10011001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main amd64 Packages
100 /var/lib/dpkg/status
linux-modules-5.15.5-76051505-generic:
Installed: 5.15.5-76051505.202111250933
163820157921.0409f1aa71638201579Candidate: 5.15.5-76051505.202111250933
21.0409f1aa7Version table:
*** 5.15.5-76051505.202111250933
163820157921.04~09f1aa7 10011001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main amd64 Packages
100 /var/lib/dpkg/status
Issue/Bug Description:
zfs module is missing, no mounts after boot
sudo modprobe zfs
fails with no zfs module foundSteps to reproduce (if you know):
Expected behavior:
zfs module is present after update to 5.15
zfs volumes are mounted at boot
The text was updated successfully, but these errors were encountered: