-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
zfs-2.1.15 don't compile with Centos last kernel-5.14.0-446.el9.x86_64 #16196
Comments
Which distro are you running specifically? zfs-2.1.15 builds on AlmaLinux 9.4 with the latest 5.14.0-427.16.1.el9_4.x86_64 kernel:
|
Distro: Centos Stream 9, with Centos-Stream 9 kernel-5.14.0-444.el9.x86_64 compile is fine. |
Unfortunately we don't support CentOS stream |
Counter point. CentOS Stream is previewing the upcoming changes to RHEL, AlmaLinux, and RockyLinux. Those distros will soon pick up this backported kernel version 6.9 change (which I know 6.9 isn't fully supported yet either). Additionally, downgrading to kernel 5.14.0-444.el9.x86_64 will work for CentOS Stream 9 users. So it's only this brand new 446 kernel package that has new code. |
Maybe someone is interested for Centos 9 you can easily assemble zfs-2.2.4 from srpm fedora 40, with kernel 446 everything seems to work. |
@smusich you should also be able to install the EL9 dkms packages as well. That should alleviate the issues when the RHEL/Alma/Rocky/Stream kernel version numbers are not 100% matched up. |
zfs-dkms is also needed from fedora |
@smusich I simply used the Fedora 38 repo. Works without any further changes. Just needed to hardcode the fedora release version. @tonyhutter I believe we are both already on zfs-dkms via epel/zfs-release-2-3.el9 as instructed in the current "Getting Started" section. Btw. since I was not aware that Centos-Stream was not supported, that might be sth. to clarify on that Getting Started page. Since Stream has existed for a while and the non-Stream variants had been discontinued, I simply counted "CentOS-Stream" as covered under "CentOS-based distros". |
@ramonwirsch I use Fedora 40 repo. I'm currently running a test from the package zfs-test. |
What goes inte CentOS Stream usually ends up in the next RHEL release. On RHEL 9.5 beta (currently kernel-5.14.0-503.2.1.el9_5.x86_64), zfs-2.1.15 does build with the two cherry-picks suggested above. Are there still plans to release zfs-2.1.16? |
Using zfs-testing worked for me.
This will install zfs-2.2.6 instead of zfs-2.1.15. Will compile kernel modules and zfs-dkms. Don't forget to rebuild initrd: |
AlmaLinux 9.5 has been released with kernel 5.14.0-503.11.1.el9_5.x86_64 and compiling zfs 2.1.15 sources fails with
Will there be an official 2.1.16 release? If not, is it safe and sufficient to apply patches cfb96c7 and e3120f7? I've successfully built a custom 2.1.16pre RPM including those patches, but I don't know if this may cause issues on production servers later on. |
<checking whether bio_alloc() wants 4 args... yes
checking whether blkdev_get_by_path() exists and takes 3 args... no
checking whether blkdev_get_by_path() exists and takes 4 args... no
checking whether bdev_open_by_path() exists... configure: error:
*** None of the expected "blkdev_get_by_path()" interfaces were detected.
*** This may be because your kernel version is newer than what is
*** supported, or you are using a patched custom kernel with
*** incompatible modifications.
***
*** ZFS Version: zfs-2.1.15-2
*** Compatible Kernels: 3.10 - 6.7
Building module:
Cleaning build area...(bad exit status: 2)
Failed command:
make -C /lib/modules/5.14.0-446.el9.x86_64/build M=/var/lib/dkms/zfs/2.1.15/build clean
Building module(s)...(bad exit status: 2)
Failed command:
make -j12 KERNELRELEASE=5.14.0-446.el9.x86_64
Error! Bad return status for module build on kernel: 5.14.0-446.el9.x86_64 (x86_64)
Consult /var/lib/dkms/zfs/2.1.15/build/make.log for more information.
dkms autoinstall on 5.14.0-446.el9.x86_64/x86_64 succeeded for nvidia
dkms autoinstall on 5.14.0-446.el9.x86_64/x86_64 failed for zfs(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel 5.14.0-446.el9.x86_64 Failed.
The text was updated successfully, but these errors were encountered: