zfs icon indicating copy to clipboard operation
zfs copied to clipboard

Need update for CensOS Stream 9

Open brasslan opened this issue 1 year ago • 7 comments

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

brasslan avatar May 21 '24 15:05 brasslan

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

kbknapp avatar Aug 08 '24 18:08 kbknapp

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).

tonyhutter avatar Aug 08 '24 19:08 tonyhutter

@brasslan can we close this issue?

tonyhutter avatar Aug 15 '24 22:08 tonyhutter

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

stan-threatmate avatar Aug 18 '24 01:08 stan-threatmate

Which kernel and zfs version?

kbknapp avatar Aug 18 '24 03:08 kbknapp

Kernel: 5.14.0-480.el9.x86_64 zfs: zfs-2.2.99-655-g77a797a38 (current master)

stan-threatmate avatar Aug 18 '24 05:08 stan-threatmate

Thanks @stan-threatmate I also confirmed zfs-2.2.5 with kernel 5.14.0-480 works following the link you posted.

kbknapp avatar Aug 18 '24 20:08 kbknapp