Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2019 10:26:26 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        CyberLeo Kitsana <cyberleo@cyberleo.net>, freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: mounting from zfs:zroot/ROOT/default failed with error 45
Message-ID:  <d2596939-69cc-cd88-4a60-7612cd33dd4d@sentex.net>
In-Reply-To: <724a9bc6-4dd1-f383-b1c7-8cfb564c1bfd@cyberleo.net>
References:  <98a58bad-56ea-c598-2944-e4c70c2841a3@sentex.net> <a9983106-c8c3-5d4d-f1c0-b90bff86d950@sentex.net> <d04de27b-ef00-1ec8-7c1f-534400a4e453@sentex.net> <724a9bc6-4dd1-f383-b1c7-8cfb564c1bfd@cyberleo.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 4/8/2019 6:21 AM, CyberLeo Kitsana wrote:
>
>>> Actually, I wonder if the issue is that I am doing the zpool create on a
>>> RELENG_12 box.... So when I try and boot that zpool that was freshly
>>> created on RELENG_12 with a RELENG_10 kernel, I am running into issues.
>> It does seem to be a zfs version issue which kinda makes sense. If I
>> create the zfs image on a RELENG10 vm it works.  The only issue is that
>> its quite slow to do on the VM as its a LOT of disk IO.  Is there a way
>> to create an older version of a zfs file system on a newer version of
>> FreeBSD so I can get the best of both worlds ?
> Yes. Take a look at the differences in the feature flags available on 10
> and 12, and, during pool creation, explicitly set disabled the ones that
> are not present on 10.
>
> I don't have any 10 nor 12 boxen available to me, but the one I recently
> upgraded from 10 to 11 shows the following feature flags were added (and
> never enabled on my pool):
>
> sha512
> skein
> device_removal
> obsolete_counts
> zpool_checkpoint
>
> 12 may add more.
>
Thanks for the hints!  Looking at a pool created on 12 vs the version I
am trying to work with from 10, in terms of features referenced,

 feature@large_dnode does not exist

and a bunch that do are turned off.

 diff old new
13,18c13,19
< feature@sha512                 disabled                       local
< feature@skein                  disabled                       local
< feature@device_removal         disabled                       local
< feature@obsolete_counts        disabled                       local
< feature@zpool_checkpoint       disabled                       local
< feature@spacemap_v2            disabled                       local
---
> feature@large_dnode            enabled                        local
> feature@sha512                 enabled                        local
> feature@skein                  enabled                        local
> feature@device_removal         enabled                        local
> feature@obsolete_counts        enabled                        local
> feature@zpool_checkpoint       enabled                        local
> feature@spacemap_v2            active                         local


However, there doesnt seem to be a way to create the pool with features
disabled. The man page seems to imply that as well, at least on FreeBSD
? And trying to set it implies that as well.


0(nfs2)# zpool create -f -o altroot=/mnt2 -O "canmount=off" -o
'feature@spacemap_v2=disabled' -m none zroottest /dev/md0p3
cannot create 'zroottest': property 'feature@spacemap_v2' can only be
set to 'enabled'
1(nfs2)#


    ---Mike




-- 
-------------------
Mike Tancsa, tel +1 519 651 3400 x203
Sentex Communications, mike@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d2596939-69cc-cd88-4a60-7612cd33dd4d>