Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Nov 2022 09:10:35 +0100
From:      Alexander Leidinger <Alexander@leidinger.net>
To:        Warner Losh <imp@bsdimp.com>
Cc:        marklmi@yahoo.com, tsoome@freebsd.org, Li-Wen Hsu <lwhsu@freebsd.org>, current@freebsd.org
Subject:   Re: changes to the zfs boot (was: Re: git: 72a1cb05cd23 - main - rc(8): Add a zpoolupgrade rc.d script)
Message-ID:  <20221112091035.Horde.S6Ainwo5Vov9bxEzOc-OBp-@webmail.leidinger.net>
In-Reply-To: <CANCZdfptmipq%2BsS0AQ1%2B7EmLT-7YdKv8s%2BnCV7ON1Qy6-C6N9A@mail.gmail.com>
References:  <202211070339.2A73dJlO027991@gitrepo.freebsd.org> <20221107121514.Horde.nulS9Wg1s3yzAsXXkuJRBa9@webmail.leidinger.net> <CANCZdfrdc%2BDbv6sDyDLcWNpXnWScEmpUsGu3q8%2BMbZRjDS8eig@mail.gmail.com> <20221108105053.Horde.eqgFiBJe2ngGAj6BkXcv5-Z@webmail.leidinger.net> <20221109134610.Horde.JB7ibQTWprHbmIUfhg7JY7f@webmail.leidinger.net> <CANCZdfptmipq%2BsS0AQ1%2B7EmLT-7YdKv8s%2BnCV7ON1Qy6-C6N9A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format and has been PGP signed.

--=_jzBIpF1ILYUWc_qNVNX7OHN
Content-Type: multipart/mixed; boundary="=_UzBLOkrCuK6M6ceKx8dmdaa"

This message is in MIME format.

--=_UzBLOkrCuK6M6ceKx8dmdaa
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Quoting Warner Losh <imp@bsdimp.com> (from Wed, 9 Nov 2022 08:54:33 -0700):

> On Wed, Nov 9, 2022 at 5:46 AM Alexander Leidinger <Alexander@leidinger.n=
et>
> wrote:

> While most of these options look OK on the surface, I'd feel a lot better
> if there were tests for these to prove they work. I'd also feel better if
> the ZFS experts could explain how those come to be set on a zpool
> as well. I'd settle for a good script that could be run as root (better

It is explained in the zpool-features man page.

> would be not as root) that would take a filesystem that was created
> by makefs -t zfs and turn on these features after an zpool upgrade.

Script attached. Maybe a little bit too verbose, but you can see which=20=
=20
features=20are active directly, and which ones only enabled.

It expects a zroot.img in the current directory and creates copies to=20=20
zroot_num_featurename.img=20where it enables the features. In the=20=20
beginning=20are some variables to adapt to pool/image name and=20=20
destination=20directory.

Bye,
Alexander.
--=20
http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

--=_UzBLOkrCuK6M6ceKx8dmdaa
Content-Type: application/x-sh; name=zpool_features.sh
Content-Disposition: attachment; size=1956; filename=zpool_features.sh
Content-Transfer-Encoding: base64

IyEvYmluL3NoCgppZiBbICQod2hvYW1pKSAhPSByb290IF07IHRoZW4KCWVjaG8genBvb2wgaW1w
b3J0IG5lZWRzIHJvb3QgcGVybWlzc2lvbnMsIGFib3J0aW5nCglleGl0IDEKZmkKCQpzb3VyY2Vu
YW1lPXpyb290CnNvdXJjZWV4dD1pbWcKc291cmNlaW1nPSR7c291cmNlbmFtZX0uJHtzb3VyY2Vl
eHR9CnBvb2xuYW1lPXRlc3Ryb290Cm1kZXZpY2U9bWQ5CmRlc3RwYXRoPS4KCmNvdW50PTAKIyBz
b3J0IG9yZGVyIG9mIGZlYXR1cmVzOiBhcyBpbiBtYW4tcGFnZSwKIyBidXQgZGVwZW5kZW5jaWVz
IGxpZnRlZCB0byBiZWZvcmUgZmlyc3QgdXNlIGluIGRlcGVuZGVuY3kKIyBuZXcgaW4gMTQ6IGJs
YWtlMywgaGVhZF9lcnJsb2csIHppbHNheGF0dHIKZm9yIGZlYXR1cmUgaW4gYWxsb2NhdGlvbl9j
bGFzc2VzIFwKCQlhc3luY19kZXN0cm95IFwKCQlleHRlbnNpYmxlX2RhdGFzZXQgXAoJCWV4dGVu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line

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIzBAABCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmNvVPoACgkQEg2wmwP4
2IakYxAAjvny3MUhq13bNLzJ8utxpFADbSRs91Ee1Np9iEtfBN5tFoJWLLihjjV5
m985o1awU/f3WDdqS/g3sXWmP++1PbBsIZ39BEyGQkPqhh0IFsgH7PifVO6qTYEM
TWxEskGiYD/sZj0jQZEarkS9oY6WMFit/ycWW3lrAhrsIMIO/RCG/jaZMfXRG9jX
sVIC1oa4y/mZTLtiWHjKLclHYOWj7trG02T8F0H1Vzh36OyMWnfDwL3eBGDrSnN2
kcHMIX8W2mW5Cx7zboC4Ph7PhsdmNJxQOBxn03Lvv20rf3eNvwdKKEmByDQ+TGUf
luC/KxB/U8YG/g+wwsEcjErEPvXnp7YgUVpwvQQkFb9cHtG6vXSXW1Pg0Pq7Kb9c
Mw1pwN9JGqOR8IEy3VNqADgjFlHmk3cAJ233yAYIjfxT5zeAZNBaGJ9NOu/o1H8k
EKuEbbl4U6n5XrMw1J3ZY0IBgSQEoutwIb+C5nzsUWpzGgJM+O//8lpXhBQhX7jD
XmCMZPgdUGQOryn/rhd6obf2VJ/TTeN0EcZY4U7A9DGWp1KAuxqSygBhcBelXcrD
116t/2TjTOceIVzvLnCyIQQHLP2bN8awV7lGE68aR8B05j59bbNLmgPauoqwk398
RJb33Led7THT6lK61RHq6Bvu+JBN+gs0kn32Vxyy4zGfzwSGi1E=
=ts8o
-----END PGP SIGNATURE-----

--=_jzBIpF1ILYUWc_qNVNX7OHN--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20221112091035.Horde.S6Ainwo5Vov9bxEzOc-OBp->