You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type | Version/Name
Oracle Linux Server release 9.1 | Linux localhost 5.15.0-101.103.2.1.el9uek.x86_64 #2 SMP Tue May 2 01:10:45 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux
Distribution Name | Oracle Linux UEK
Distribution Version | 9
Kernel Version | 5.15.0-101.103.2.1.el9uek.x86_64
Architecture | .x86_6
OpenZFS Version | 2.1.11-1.el9 zfs-2.1.11-1 zfs-kmod-2.1.11-1
Describe the problem you're observing
Oracle "Unbreakable Linux" (a copy of RHEL9 with kernel enhancements) cannot run any shipped zfs code
none of the zfs modules in "yum" function (incompatible zfs.ko)
rpmbuild -ba zfs-kmod.spec Refuses to build citing missing kernel-devel dependency
rpmbuild -ba zfs-kmod.spec builds an non-functional incompatible module if kernel-devel is installed
The correct dependency on this platform should be kernel-uek-devel which comes from:
kernel-uek-devel-5.15.0-101.103.2.1.el9uek.x86_64.rpm
Describe how to reproduce the problem
rpmbuild -ba zfs-kmod.spec
(creates non-functional zfs.ko which gets placed on the system in a location that doesn't get used)
Include any warning/errors/backtraces from the system logs
# /sbin/modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/5.15.0-101.103.2.1.el9uek.x86_64
#cd /lib/modules/5.15.0-101.103.2.1.el9uek.x86_64
# ln -s /usr/lib/modules/5.14.0-162.23.1.el9_1.x86_64/extra
# depmod -a
# modprobe zfs
modprobe: ERROR: could not insert 'zfs': Exec format error
# modprobe -f zfs
modprobe: ERROR: could not insert 'zfs': Unknown symbol in module, or unknown parameter (see dmesg)
Workaround
rpm -e kernel-devel
rpm -ivh kernel-uek-devel-5.15.0-101.103.2.1.el9uek.x86_64.rpm
comment out this line in the zfs-kmod.spec file:
#BuildRequires: %kernel_module_package_buildreqs
rpmbuild -ba zfs-kmod.spec
=> creates working module
The text was updated successfully, but these errors were encountered:
If someone wants to tell me the high-level way to adjust the .spec file for this, I'm happy to make the changes, test it, and submit the solution as a pull request
System information
Type | Version/Name
Oracle Linux Server release 9.1 | Linux localhost 5.15.0-101.103.2.1.el9uek.x86_64 #2 SMP Tue May 2 01:10:45 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux
Distribution Name | Oracle Linux UEK
Distribution Version | 9
Kernel Version | 5.15.0-101.103.2.1.el9uek.x86_64
Architecture | .x86_6
OpenZFS Version | 2.1.11-1.el9 zfs-2.1.11-1 zfs-kmod-2.1.11-1
Describe the problem you're observing
Oracle "Unbreakable Linux" (a copy of RHEL9 with kernel enhancements) cannot run any shipped zfs code
kernel-uek-devel-5.15.0-101.103.2.1.el9uek.x86_64.rpm
Describe how to reproduce the problem
rpmbuild -ba zfs-kmod.spec
(creates non-functional zfs.ko which gets placed on the system in a location that doesn't get used)
Include any warning/errors/backtraces from the system logs
Workaround
rpm -e kernel-devel
rpm -ivh kernel-uek-devel-5.15.0-101.103.2.1.el9uek.x86_64.rpm
comment out this line in the zfs-kmod.spec file:
rpmbuild -ba zfs-kmod.spec
=> creates working module
The text was updated successfully, but these errors were encountered: