Re: KLD zfs.ko: depends on kernel - not available or version mismatch

From: Bakul Shah <bakul_at_iitbombay.org>
Date: Tue, 8 Dec 2020 13:03:19 -0800
On Dec 8, 2020, at 10:10 AM, Alban Hertroys <haramrae_at_gmail.com> wrote:
> 
> So I tried again to move to HEAD:
> 
> 	cd /usr/src
> 	svn up
> 	make buildworld -j12
> 	make buildkernel -j12
> 	make installkernel
> 	shutdown -r now
> 	<single user mode>
> 	mount -u /
> 	zpool import -Nf system (my /usr FS)
> 
> KLD zfs.ko: depends on kernel - not available or version mismatch
> linker_load_file: /boot/kernel/zfs.ko - unsupported file type
> 

cd /usr/obj/usr/src/amd64.amd64/sys/GENERIC
ls -l kernel /boot/kernel/kernel
ls -l modules/usr/src/sys/modules/zfs/zfs.ko /boot/kernel/zfs.ko
cmp modules/usr/src/sys/modules/zfs/zfs.ko /boot/kernel/zfs.ko

The kernel should be *older* than zfs.ko and both instances of zfs.ko
should be identical.

One other thought is to manually do

kldload opensolaris.ko zfs.ko

In single user mode before using zpool. I have

opensolaris_load="YES"
zfs_load="YES"

in /boot/loader.conf but you may not want to add those until you know
zfs works.
Received on Tue Dec 08 2020 - 20:03:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:26 UTC