Date: Fri, 29 Jan 2021 16:25:05 -0800 From: Xin Li <delphij@delphij.net> To: Kurt Jaeger <pi@freebsd.org>, freebsd-current@freebsd.org, freebsd-fs@freebsd.org Subject: Re: zpool upgrade to draid feature: does it require updated zfs boot code ? Message-ID: <7a2b946a-636c-5aae-1129-adbf73168b70@delphij.net> In-Reply-To: <YBMJyIsFShf16pgT@home.opsec.eu> References: <YBMJyIsFShf16pgT@home.opsec.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hWrMO7rPhdsDJYLDGUj3G9Xg1c1c7Paj8 Content-Type: multipart/mixed; boundary="RXtbqnI58ptDH0mlteTjkRmHln3IJszCs"; protected-headers="v1" From: Xin Li <delphij@delphij.net> Reply-To: d@delphij.net To: Kurt Jaeger <pi@freebsd.org>, freebsd-current@freebsd.org, freebsd-fs@freebsd.org Message-ID: <7a2b946a-636c-5aae-1129-adbf73168b70@delphij.net> Subject: Re: zpool upgrade to draid feature: does it require updated zfs boot code ? References: <YBMJyIsFShf16pgT@home.opsec.eu> In-Reply-To: <YBMJyIsFShf16pgT@home.opsec.eu> --RXtbqnI58ptDH0mlteTjkRmHln3IJszCs Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 1/28/21 11:00, Kurt Jaeger wrote: > Hi! >=20 > Short question: >=20 > Does a zpool upgrade on 14.0 (current) for the draid feature > require a boot code update ? >=20 > Long version of the same question: [...] > With the draid update, no message was displayed. >=20 > Does it require the bootcode update anyway or, if not, why not ? This sounded like a bug. Is it your boot pool, or just a regular data po= ol? > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 nvd0 > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 nvd1 To answer your short question: do I need to update bootcode? No if draid is the only feature that you have enabled on an existing pool, but personally I don't recommend upgrading boot pool right now. The reason for that "No" answer is 1) the boot code do not currently support draid, and 2) enabling the feature won't activate it until draid vdev is added to the pool, which is quite unlikely in your case; note that if you do add draid vdev, your bootcode won't be able to boot from it anymore. On my personal laptop, old bootcode would boot pool with draid enabled but not activated just fine (note that the loader.efi on -CURRENT won't boot my P51, which I will start a separate discussion; I used FreeBSD-13.0-CURRENT-amd64-20201231-282381aa53a-255460-memstick.img and fixed my EFI loader and it worked fine with the draid-enabled boot ZFS pool). Hope this helps. Cheers, --RXtbqnI58ptDH0mlteTjkRmHln3IJszCs-- --hWrMO7rPhdsDJYLDGUj3G9Xg1c1c7Paj8 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEceNg5NEMZIki80nQQHl/fJX0g08FAmAUp2EFAwAAAAAACgkQQHl/fJX0g089 WQ//Uhbo4p3dC3A3D+cbueizilJTEWTSs2i+XhurP2AtlYYlxZPm0JfQA5qnxwAojM3qR+DSc2jK 7ccJk6ThpnoVCb3dd/dOInrgFC0EMjtqr7oeM7hkXTYiQfihSMYx/ZAZzDcFdazxLAwpCC8jHMxa fwxfGFM8sRBQMxwqahCZ/CCxm4AslI4bYykIrFvNZ/kC0kQdxUrD1cl4vIUIn33/vbQ/RKlVbsw1 Nr17js16bBs2FNlGzgng2YahdHzZl915W2iDb1rlYa/kVh2NJYD9oaygzGZl3yOz7N379W4IgMI8 S7CKG6th9xN70evmVNoSaQpZe2tNIcchcojST0Qtpg4Vtd7f+cFeMn5Ze9KBZ54OPBQqYqG5ElVq J+MQxhRY6/TVo5mFgLN5b5q9TmGUTCztZUp6uIX4NaRDS5QTzF7B/mDoKHpDUC8sF/8D2tm8l3iU nbkQqbzuT9lQ79UGnj1LA04CQ2MKas+D1QULqsCO96pKLr+Y2o2dvrWlYqQdNcXAMl0OyPopY2Qt sKcsf+kXX6UWch7wYzGoIsIQgHSnONhLbpRvDlEUn2eEqAc+CyFO/DWtDH7JSVzn5tWT0RczWP6y 0e2FEAWgeEGJhxpfrz/73jxgxL+yg6CLOjUOe7O2EK18I96lwYl+zbEmUUIHgUEr3j399bUxYbEt UD4= =Ka1L -----END PGP SIGNATURE----- --hWrMO7rPhdsDJYLDGUj3G9Xg1c1c7Paj8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7a2b946a-636c-5aae-1129-adbf73168b70>