Skip to content
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

Support for Oracle Linux UEK (problem and suggested solution/workaround) #14857

Closed
gitcnd opened this issue May 12, 2023 · 2 comments
Closed
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@gitcnd
Copy link

gitcnd commented May 12, 2023

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

  1. none of the zfs modules in "yum" function (incompatible zfs.ko)
  2. rpmbuild -ba zfs-kmod.spec Refuses to build citing missing kernel-devel dependency
  3. rpmbuild -ba zfs-kmod.spec builds an non-functional incompatible module if kernel-devel is installed
  4. 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

@gitcnd gitcnd added the Type: Defect Incorrect behavior (e.g. crash, hang) label May 12, 2023
@gitcnd
Copy link
Author

gitcnd commented May 12, 2023

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

@gitcnd
Copy link
Author

gitcnd commented May 27, 2023

Fix works great - thanks!

@gitcnd gitcnd closed this as completed May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

1 participant