Open gmipf opened 1 year ago
Here are the last lines of "/var/lib/dkms/zfs/2.1.9/build/make.log":
CC [M] /var/lib/dkms/zfs/2.1.9/build/module/zfs/vdev_raidz_math_avx512f.o
CC [M] /var/lib/dkms/zfs/2.1.9/build/module/zfs/vdev_raidz_math_avx512bw.o
LD [M] /var/lib/dkms/zfs/2.1.9/build/module/zfs/zfs.o
LD [M] /var/lib/dkms/zfs/2.1.9/build/module/zstd/zzstd.o
MODPOST /var/lib/dkms/zfs/2.1.9/build/module/Module.symvers
ERROR: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'bio_start_io_acct'
ERROR: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'bio_end_io_acct_remapped'
make[4]: *** [scripts/Makefile.modpost:138: /var/lib/dkms/zfs/2.1.9/build/module/Module.symvers] Error 1
make[3]: *** [Makefile:1977: modpost] Error 2
make[3]: Leaving directory '/usr/src/kernels/6.2.9-100.fc36.x86_64'
make[2]: *** [Makefile:55: modules-Linux] Error 2
make[2]: Leaving directory '/var/lib/dkms/zfs/2.1.9/build/module'
make[1]: *** [Makefile:933: all-recursive] Error 1
make[1]: Leaving directory '/var/lib/dkms/zfs/2.1.9/build'
make: *** [Makefile:794: all] Error 2
And as far as why it's removing everything and the kitchen sink, I'd need to look more, but at a glance, it seems like libvirt-daemon-kvm depends on something providing zfs, and then it's just cleaning out dependencies of libvirt-daemon-kvm and zfs that are no longer used, recursively, which is not a bug.
Yes but it also tries to remove qemu-system-x86 which is a no go. And isn't dkms needed by the proprietary nvidia drivers and a lot other stuff?
Well, once you've uninstalled all libvirt's other dependencies, nothing that wanted qemu remained.
And I can't speak to what else is on your system and registered in the package manager, but if you installed the NVIDIA drivers not in RPMs, it's not going to know you need that for that, though I think you can manually mark it as needed and not just a dependency.
I haven't checked zfs package removal, but this problem really exists with the latest Fedora kernel (6.1.9-200), but on Fedora 37. Time for kernel downgrade...
Since 2.1.10-1 my latest kernel 6.2.9-100.fc36 boots correctly. But now there is another problem. I was testing other custom modules and wanted to restore all default kernel modules as I always did before like this:
sudo rm -v /lib/modules/$(uname -r)/kernel/fs/ufs/ufs.ko*
koji download-build --rpm kernel-core-$(uname -r).rpm
sudo dnf -y reinstall kernel-core-$(uname -r).rpm
But the default module didn't appear at all this time, I suspect it has to do with the zfs dkms script, here the output:
Downloading [1/1]: kernel-core-6.2.9-100.fc36.x86_64.rpm
File kernel-core-6.2.9-100.fc36.x86_64.rpm already downloaded, skipping
Letzte Prüfung auf abgelaufene Metadaten: vor 0:00:03 am So 16 Apr 2023 05:08:54 CEST.
Abhängigkeiten sind aufgelöst.
======================================================================================================
Paket Architektur Version Paketquelle Größe
======================================================================================================
Neuinstallieren:
kernel-core x86_64 6.2.9-100.fc36 @commandline 15 M
Transaktionszusammenfassung
======================================================================================================
Gesamtgröße: 15 M
Installationsgröße: 64 M
Pakete werden heruntergeladen:
Transaktionsüberprüfung wird ausgeführt
Transaktionsüberprüfung war erfolgreich.
Transaktion wird getestet
Transaktionstest war erfolgreich.
Transaktion wird ausgeführt
Vorbereitung läuft : 1/1
Neuinstallieren : kernel-core-6.2.9-100.fc36.x86_64 1/2
Ausgeführtes Scriptlet: kernel-core-6.2.9-100.fc36.x86_64 1/2
Ausgeführtes Scriptlet: kernel-core-6.2.9-100.fc36.x86_64 2/2
dkms: removing: zfs 2.1.10 (6.2.9-100.fc36.x86_64) (x86_64)
Module zfs-2.1.10 for kernel 6.2.9-100.fc36.x86_64 (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.
zavl.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/6.2.9-100.fc36.x86_64/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
znvpair.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/6.2.9-100.fc36.x86_64/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
zunicode.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/6.2.9-100.fc36.x86_64/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
zcommon.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/6.2.9-100.fc36.x86_64/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
zfs.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/6.2.9-100.fc36.x86_64/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
icp.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/6.2.9-100.fc36.x86_64/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
zlua.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/6.2.9-100.fc36.x86_64/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
spl.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/6.2.9-100.fc36.x86_64/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
zzstd.ko.xz:
- Uninstallation
- Deleting from: /lib/modules/6.2.9-100.fc36.x86_64/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod.....
Aufräumen : kernel-core-6.2.9-100.fc36.x86_64 2/2
Ausgeführtes Scriptlet: kernel-core-6.2.9-100.fc36.x86_64 2/2
dkms: running auto installation service for kernel 6.2.9-100.fc36.x86_64
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/zfs/2.1.9/source/dkms.conf does not exist.
Sign command: /lib/modules/6.2.9-100.fc36.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
and:
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
Building module:
Cleaning build area...
make -j24 KERNELRELEASE=6.2.9-100.fc36.x86_64...........
Signing module /var/lib/dkms/zfs/2.1.10/build/module/avl/zavl.ko
Signing module /var/lib/dkms/zfs/2.1.10/build/module/nvpair/znvpair.ko
Signing module /var/lib/dkms/zfs/2.1.10/build/module/unicode/zunicode.ko
Signing module /var/lib/dkms/zfs/2.1.10/build/module/zcommon/zcommon.ko
Signing module /var/lib/dkms/zfs/2.1.10/build/module/zfs/zfs.ko
Signing module /var/lib/dkms/zfs/2.1.10/build/module/icp/icp.ko
Signing module /var/lib/dkms/zfs/2.1.10/build/module/lua/zlua.ko
Signing module /var/lib/dkms/zfs/2.1.10/build/module/spl/spl.ko
Signing module /var/lib/dkms/zfs/2.1.10/build/module/zstd/zzstd.ko
Running the post_build script:
Cleaning build area...
zavl.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.9-100.fc36.x86_64/extra/
znvpair.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.9-100.fc36.x86_64/extra/
zunicode.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.9-100.fc36.x86_64/extra/
zcommon.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.9-100.fc36.x86_64/extra/
zfs.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.9-100.fc36.x86_64/extra/
icp.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.9-100.fc36.x86_64/extra/
zlua.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.9-100.fc36.x86_64/extra/
spl.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.9-100.fc36.x86_64/extra/
zzstd.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.9-100.fc36.x86_64/extra/
depmod.....
Done.
WARNING: Multiple block group profiles detected, see 'man btrfs(5)'
WARNING: Metadata: single, dup
WARNING: System: single, dup
dkms: running auto installation service for kernel 6.2.9-100.fc36.x86_64
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/zfs/2.1.9/source/dkms.conf does not exist.
Done.
Überprüfung läuft : kernel-core-6.2.9-100.fc36.x86_64 1/2
Überprüfung läuft : kernel-core-6.2.9-100.fc36.x86_64 2/2
Erneut installiert:
kernel-core-6.2.9-100.fc36.x86_64
Fertig!
It seems like it thinks you have DKMS packages for 2.1.9 and 2.1.10 both configured. What does dkms status
say? What does rpm -qa | grep zfs
say?
@rincebrain I have upgraded to the new 6.2.10-100.fc36.x86_64 now and already running it. But dkms status
still mentions the older version it seems:
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/zfs/2.1.9/source/dkms.conf does not exist.
zfs/2.1.10, 6.2.10-100.fc36.x86_64, x86_64: installed
zfs/2.1.10, 6.2.7-100.fc36.x86_64, x86_64: installed (WARNING! Diff between built and installed module!)
zfs/2.1.10, 6.2.9-100.fc36.x86_64, x86_64: installed
and rpm -qa | grep zfs
libvirt-daemon-driver-storage-zfs-8.1.0-2.fc36.x86_64
zfs-release-2-2.fc36.noarch
libzfs5-2.1.10-1.fc36.x86_64
zfs-dkms-2.1.10-1.fc36.noarch
zfs-2.1.10-1.fc36.x86_64
That seems like it still thinks 2.1.9 exists in DKMS's "someone ran dkms add on this" list but it can't find the files for it. Oof. dkms remove -m zfs/2.1.9
should convince it otherwise, possibly with some force flag if need be, without removing 2.1.10.
sudo dkms remove -m zfs/2.1.9
wasn't the solution, just output this:
Module zfs 2.1.9 is not installed for kernel 6.2.10-100.fc36.x86_64 (x86_64). Skipping...
Module zfs 2.1.9 is not built for kernel 6.2.10-100.fc36.x86_64 (x86_64). Skipping...
Removing this directory fixed it though: sudo mv /var/lib/dkms/zfs/2.1.9 .
My suspicion still was wrong, the ufs module isn't even contained in kernel-core-$(uname -r).rpm
but in kernel-modules-extra-$(uname -r).rpm
As an aside, where do you find an out of tree ufs kernel module?
It is in-tree, just recompiled it with different config to enable the write option.
System information
Distribution Name | Fedora Distribution Version | 36 Kernel Version | 6.2.7-100.fc36 Architecture | x86_64 OpenZFS Version | zfs-2.1.9-1
Describe the problem you're observing
Since zfs module doesn't work in the latest 6.2.9-100.fc36 kernel anymore I wanted to remove it, since I don't need it.
Trying to reinstall the latest kernel-core again results in the following:
Trying to remove zfs:
Describe how to reproduce the problem
sudo dnf reinstall kernel-core sudo dnf remove zfs
Include any warning/errors/backtraces from the system logs