Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2018 17:34:24 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Eugene Grosbein <eugen@grosbein.net>, FreeBSD stable <freebsd-stable@FreeBSD.org>
Subject:   Re: krpc: unbootable ZFS-on-root after major upgrade to 11.2
Message-ID:  <6c2f8adb-c0e7-550b-8595-e7a4768d5157@FreeBSD.org>
In-Reply-To: <5BC9A2E4.9010306@grosbein.net>
References:  <8517429b-9e3b-2ea3-80a6-12fc92106252@grosbein.net> <6627d159-fd52-2d10-2d45-97fd02725adc@FreeBSD.org> <5BC9A2E4.9010306@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19/10/2018 12:24, Eugene Grosbein wrote:
> On 19.10.2018 13:28, Andriy Gapon wrote:
> 
>>> It was brought to my attention that 10.x did not require availability
>>> of krpc for ZFS-on-root system to be bootable but 11.x does.
>>>
>>> That is, major upgrade of 10.x ZFS-on-root system to 11.x
>>> results in non-bootable broken system if it uses custom kernel without NFS bits
>>> that automatically come with krpc, and the system was built with MODULES_OVERRIDE="zfs opensolaris"
>>> and no krpc mentioned.
>>
>> Could you please also describe specifics of the problem?
>> It's kidn of strange that root-on-zfs requires krpc.
> 
> https://svnweb.freebsd.org/base/stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c?revision=339111&view=markup#l7146
> 
> This code uses some xdr(3) functions to parse zpool.cache
> and kernel-side implementation of xdr(3) is contained in krpc.ko
> 
> Out of curiosity, I've commented out mentioned MODULE_DEPEND(zfsctrl, krpc, 1, 1, 1),
> rebuilt zfs.ko and tried to kldload it using UFS-only system having no NFS code in the kernel
> and it failed with a note in dmesg:
> 
> link_elf: symbol xdrmem_create undefined


It's strange that this is a 10.x vs 11.x issue.
I see that zfs has the krpc dependency since r193128.
And the call to xdrmem_create is there since r168404.


-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6c2f8adb-c0e7-550b-8595-e7a4768d5157>