openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.64k stars 1.75k forks source link

zfs-2.1.15 don't compile with RHEL 9.5 last kernel-5.14.0-503.11.1.el9_5.x86_64 #16746

Open rgessner opened 1 day ago

rgessner commented 1 day ago

System information

Distribution Name | Red Hat Enterprise Linux (not a rhel clone) Distribution Version | 9.5 Kernel Version | kernel-5.14.0-503.11.1.el9_5.x86_64 Architecture | x86_64 OpenZFS Version | 2.1.15

Describe the problem you're observing

Working zfs on RHEL 9.4 system with kernel-5.14.0-427.42.1.el9_4.x86_64. couple of error messages during kernel update (see below). After booting no zfs module present

Describe how to reproduce the problem

Update from RHEL 9.4 kernel 5.14.0-427 to RHEL 9.5 kernel-5.14.0.-503

Include any warning/errors/backtraces from the system logs

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-3
    *** Compatible Kernels: 3.10 - 6.7

Cleaning build area...(bad exit status: 2)
Failed command:
make -C /lib/modules/5.14.0-503.11.1.el9_5.x86_64/build M=/var/lib/dkms/zfs/2.1.15/build cleanBuilding module(s)...(bad exit status: 2)
Failed command:
make -j4 KERNELRELEASE=5.14.0-503.11.1.el9_5.x86_64
Error! Bad return status for module build on kernel: 5.14.0-503.11.1.el9_5.x86_64 (x86_64)
Consult /var/lib/dkms/zfs/2.1.15/build/make.log for more information.
Autoinstall on 5.14.0-503.11.1.el9_5.x86_64 failed for module(s) zfs(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
AllKind commented 1 day ago

I don't think ZFS 2.1.x is maintained any more. Could you try with 2.2.6?

rgessner commented 1 day ago

2.1.15 is still the version in the "official" RHEL repo here. se also: https://openzfs.github.io/openzfs-docs/Getting%20Started/RHEL-based%20distro/index.html

I think 2.2.6 will work, but i need some time to test this. Maybe the RHEL repo should be updated if 2.1.15 ist no longer supported.

AllKind commented 1 day ago

You could just run configure to see if the check passes. Which could also help others.

wanghz10 commented 12 hours ago

Version 2.2.6 seems to be working. You can enable zfs-testing to install.

dnf config-manager --enable zfs-testing dnf upgrade dkms autoinstall

rgessner commented 9 hours ago

I can confirm 2.2.6 from zfs-testing (dkms) repo works with RHEL9.5.

Still im shure that a couple of people will run in this issue in a few days, when all the RHEL Clones (Rocky, Alma, Oracle) also bump from 9.4 to 9.5.

Maybe this should be fixed/updated in some way. ;)

llagendijk commented 4 hours ago

The testing repo for RHEL9 has 2.2.6 and works for me