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

dracut states that zfs 2.3.0 module is missing on Fedora #16960

Open
nwildner opened this issue Jan 17, 2025 · 1 comment
Open

dracut states that zfs 2.3.0 module is missing on Fedora #16960

nwildner opened this issue Jan 17, 2025 · 1 comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@nwildner
Copy link

System information

Type Version/Name
Distribution Name Fedora
Distribution Version 41
Kernel Version 6.12.9-200.fc41
Architecture x86_64
OpenZFS Version zfs-2.3.0-1.fc41

Describe the problem you're observing

While following the Fedora ZFS on Root documentation, I can go as far as installing all zfs related packages, build the module with /sbin/dkms autoinstall -k 6.12.9-200.fc41.x86_64 but when I try to regenerate initrd dracut fails stating that there are is zfs module available.

The only thing that it is really specific from my setup is that I already have an encrypted zpool with datasets for Arch Linux and Debian so, I'm just fiddling around with a brand new dataset for Fedora. Arch also uses zfs 2.3 and it is working great.

Describe how to reproduce the problem

  • Create a dataset for Fedora
  • Unpack the rootfs for fedora, chroot it and update from inside the chroot
  • Install zfs rpm packages, add modules to dracut config files.
  • Generate modules with /sbin/dkms autoinstall -k 6.12.9-200.fc41.x86_64
  • Generate initrd with dracut --verbose --force --kver 6.12.9-200.fc41.x86_64 or by using the find script provided at the wiki.

Include any warning/errors/backtraces from the system logs

Dracut failure log.

--- snippet ---
+ dracut --verbose --force --kver 6.12.9-200.fc41.x86_64
dracut[E]: No '/dev/log' or 'logger' included for syslog logging
dracut[I]: Executing: /usr/bin/dracut --verbose --force --kver 6.12.9-200.fc41.x86_64
dracut[I]: *** Including module: systemd ***
dracut[I]: *** Including module: fips ***
dracut[I]: *** Including module: fips-crypto-policies ***
dracut[I]: *** Including module: systemd-ask-password ***
dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: systemd-journald ***
dracut[I]: *** Including module: systemd-modules-load ***
dracut[I]: *** Including module: systemd-sysctl ***
dracut[I]: *** Including module: systemd-sysusers ***
dracut[I]: *** Including module: systemd-tmpfiles ***
dracut[I]: *** Including module: systemd-udevd ***
dracut[I]: *** Including module: nss-softokn ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: drm ***
dracut[I]: *** Including module: plymouth ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: pcmcia ***
dracut[I]: *** Including module: zfs ***
dracut-install: Failed to find module 'zfs'
dracut[E]: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.WPlsHi/initramfs -H --kerneldir /lib/modules/6.12.9-200.fc41.x86_64/ -m zfs
dracut[F]: installkernel failed in module zfs
DebugExec: process (PID=69575) terminated with exit status: 1

DKMS status and end of log when the module was built:

--- snippet ---
Cleaning build area... done.
Building module(s).................. done.
Signing module /var/lib/dkms/zfs/2.3.0/build/module/zfs.ko
Signing module /var/lib/dkms/zfs/2.3.0/build/module/spl.ko

Running the post_build script:
Cleaning build area... done.

Installing /lib/modules/6.12.9-200.fc41.x86_64/extra/zfs.ko.xz
Installing /lib/modules/6.12.9-200.fc41.x86_64/extra/spl.ko.xz
Running depmod... done.
Autoinstall on 6.12.9-200.fc41.x86_64 succeeded for module(s) zfs.


/sbin/dkms status
zfs/2.3.0, 6.12.9-200.fc41.x86_64, x86_64: installed

zfs.conf

cat /etc/dracut.conf.d/zfs.conf 
add_dracutmodules+=" zfs "
force_drivers+=" zfs 

RPM packages:

rpm -qa | grep zfs
zfs-release-1-5.fc36.noarch
libzfs6-2.3.0-1.fc41.x86_64
zfs-dkms-2.3.0-1.fc41.noarch
zfs-2.3.0-1.fc41.x86_64
zfs-dracut-2.3.0-1.fc41.noarch

Modules:

find /lib/modules/6.12.9-200.fc41.x86_64/ | grep 'zfs\|spl.ko'
/lib/modules/6.12.9-200.fc41.x86_64/extra/zfs.ko.xz
/lib/modules/6.12.9-200.fc41.x86_64/extra/spl.ko.xz

Please let me know if any additional information is needed.

@nwildner nwildner added the Type: Defect Incorrect behavior (e.g. crash, hang) label Jan 17, 2025
@wiesl
Copy link

wiesl commented Jan 18, 2025

Had also similar topics:

Any old kernel module versions/dkms versions?

Try:

find /var/lib/dkms/zfs -mindepth 1 -maxdepth 1 -type d | sort
e.g.
rm -rf /var/lib/dkms/zfs/2.2.3

find /var/lib/dkms/zfs -mindepth 1 -maxdepth 1 -xtype l | sort
e.g.
rm -f /var/lib/dkms/zfs/kernel-6.8.9-300.fc40.x86_64-x86_64

find /var/lib/dkms/kvdo -mindepth 1 -maxdepth 1 -type d | sort
rm -rf /var/lib/dkms/kvdo/6.2.7.17

# zfs/2.3.0 kernel 6.12.9
dnf reinstall kernel-modules-core-6.12.9-200.fc41.x86_64
# maybe also necessary
dkms install --force zfs/2.3.0 -k 6.12.9-200.fc41.x86_64
depmod -a
dracut --force --kver 6.12.9-200.fc41.x86_64
ls -l /lib/modules/6.12.9-200.fc41.x86_64
ls -l /boot

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

2 participants