zfs
zfs copied to clipboard
Need update for CensOS Stream 9
System information
| Type | Version/Name |
|---|---|
| Distribution Name | CentOS Stream |
| Distribution Version | 9 |
| Kernel Version | Latest 5.14.0-447 |
| Architecture | x86_64 |
| OpenZFS Version | Latest (for this distro) 2.1.15-2 |
Describe the problem you're observing
ZFS DKMS build from packages fails with this error. Error! Bad return status for module build on kernel: 5.14.0-447.el9.x86_64 (x86_64) Consult /var/lib/dkms/zfs/2.1.15/build/make.log for more information.
Describe how to reproduce the problem
I initially ran across the issue (on bare metal) with DNF update from zfs 2.1.13-1 and from kernel 5.14.0-437 which was working perfectly. I've reproduced the error with a clean, new VM of CentOS 9 stream minimal install, dnf update, reboot, and then zfs install using dkms instructions at https://openzfs.github.io/openzfs-docs/Getting%20Started/RHEL-based%20distro/index.html
Include any warning/errors/backtraces from the system logs
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
Still an issues with Kernel 5.14.0-480, looks like last the last successful build is with Kernel 5.14.0-444 on ZFS 2.1.15-3
Sorry, we don't officially support CentOS Stream. You might have some luck building with zfs-2.2.5 since it supports a wider variety of kernel interfaces (which RHEL often backports into their kernels).
@brasslan can we close this issue?
Note that building and installing zfs on CentOS Stream 9 worked for me. Follow the guide here: https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html
Which kernel and zfs version?
Kernel: 5.14.0-480.el9.x86_64 zfs: zfs-2.2.99-655-g77a797a38 (current master)
Thanks @stan-threatmate I also confirmed zfs-2.2.5 with kernel 5.14.0-480 works following the link you posted.