Bug 266163

Summary: Errors in loading openzfs kernel module
Product: Base System Reporter: ggulchin
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not A Bug    
Severity: Affects Only Me    
Priority: ---    
Version: 13.1-STABLE   
Hardware: amd64   
OS: Any   

Description ggulchin 2022-09-01 21:50:53 UTC
Greetings! 

Trying to recover my OpenZFS pools by installing a fresh FreeBSD 13.1 and trying to import another pool (storage pool) 

=====
root@fear-2:/usr/src # /usr/local/sbin/zpool import -f storage
This pool uses the following feature(s) not supported by this system:
	com.delphix:head_errlog (Support for per-dataset on-disk error logs.)
	org.openzfs:zilsaxattr (Support for xattr=sa extended attribute logging in ZIL.)
cannot import 'storage': unsupported version or feature
=====

once trying to load openzfs.ko module, I get 
---
link_elf_obj: symbol __rw_assert undefined
KLD file openzfs.ko - could not finalize loading
---

error. Preventing me from using newer version of openzfs


Some more info:

root@fear-2:/usr/src # uname -a
FreeBSD fear-2 13.1-RELEASE-p2 FreeBSD 13.1-RELEASE-p2 GENERIC amd64
root@fear-2:/usr/src #

root@fear-2:/usr/src # zfs --version
zfs-2.1.4-FreeBSD_g52bad4f23
zfs-kmod-2.1.4-FreeBSD_g52bad4f23


root@fear-2:/usr/src # /usr/local/sbin/zfs --version
zfs-2.1.99-1
zfs-kmod-2.1.4-FreeBSD_g52bad4f23
Comment 1 ggulchin 2022-09-01 21:54:42 UTC
*** Bug 266164 has been marked as a duplicate of this bug. ***