Closed
Description
System information
Type | Version/Name |
---|---|
Distribution Name | CentOS |
Distribution Version | 8.2 |
Linux Kernel | 4.18.0-193.6.3.el8_2.x86_64 |
Architecture | x86_64 |
ZFS Version | 0.8.4-1 |
SPL Version | 0.8.4-1 |
Describe the problem you're observing
I updated to CentOS 8.2 and ZFS 0.8.4, so after the reboot I had to reload ZFS module (due #10462) so I ran
# modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/4.18.0-193.6.3.el8_2.x86_64
to fix this error I tried
[root@machine user]# dkms autoinstall
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/zfs/0.8.3/source/dkms.conf does not exist.
Since it is a kind of error I have seen on other packages like Wireguard, I knew that if after an package update, dkms autoinstall
failed, I have to remove the older folder in /var/lib/dkms
, so I did it:
[root@machine user]# ls /var/lib/dkms/zfs/
0.8.3 0.8.4 kernel-4.18.0-147.5.1.el8_1.x86_64-x86_64 kernel-4.18.0-147.8.1.el8_1.x86_64-x86_64
[root@machine user]# rm -rf /var/lib/dkms/zfs/0.8.3/
[root@machine user]# dkms autoinstall
and then the machine started to compile the new module