From nobody Wed Nov 09 20:51:29 2022 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N6xwG3n5Bz4XNpj for ; Wed, 9 Nov 2022 20:51:42 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N6xwG36P9z49LS for ; Wed, 9 Nov 2022 20:51:42 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62d.google.com with SMTP id k2so50238670ejr.2 for ; Wed, 09 Nov 2022 12:51:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jf8bCXm//fBjEo1TEU388saC75X9BKcThB3koN4pWqM=; b=QVvx/CHHr0Jaz7rFSd3e86bcsdSuD4Xxr5qpirSLS0w96qcs11xBPcSmOTD+Gh2/8Q MDK1gAG5qLoqL28zJS2+p5d+jqbeZKpLL34ADs0Oknbo1Za391GZzBW7irkSeUeDolB1 8j1dEJ0fAu9Hd+m58S9ZqU00NFuDiGyI/nqJTzCsmxkw9OtJcEqcjEMPSs9awO4qaarp BIYYdzGqrU6QurEMdMZazWzeEhhHcPk34cD7wlZ9mfoWaEcH7bDy7Ki9i/lalQdw7uek jtJhbNASOqCC7yTKfVQMRrGlDBCUTMvh2ppyBaLigaIbzxvCAHBpcCi7WcMRZNOYL5Zm JxJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jf8bCXm//fBjEo1TEU388saC75X9BKcThB3koN4pWqM=; b=wKEFK4Y0AM1V/2JSq4iCshJ6QZPHG+BItZ9qvokbF0HmNTc2nXnAz5Y0eVvT4zAGk/ u5PC6FUklV6m2ckrzI1hpJLdBdeBCWLQbbrMF7NmQA4YqF7TK2JiDqfEClzqXXxH+MEg AZ8O+/JGCUPEBHjht9YMdYbWbJyMj656jaiPZz1TYEo+wP7qsRRN4oWTpyn5gUy43Ugl l8slcl9/omJKGGLS5bI0VqFyfi1AIG2Y6cLh+YIOHjl5f7llLRpMb4j6QcAYe4HqWY2w bQRmVzEND7dDaEN3eiBhM9ipUUu55zoliRLYSDPPi8J0ybCMLiq42MskEn8mgXMrW5pQ fexQ== X-Gm-Message-State: ACrzQf3S6PA+P9bZrBU61G6IwzB+HCxc17pxmgeet4uUozWDlSWGWQah Il74eAj+Nk7LTHJLQV5RjNO27KTR6f6aXNHirtLYEFT4Lj0= X-Google-Smtp-Source: AMsMyM4eDpa4p5NEsLPeLTvRgmVHzaYnOdaP+glMK62JZQ+kGuw6QBGKcGG44b+390zH7ueYMg5UhTnVznJEI5XR6hM= X-Received: by 2002:a17:906:338f:b0:78d:a4ab:e8ee with SMTP id v15-20020a170906338f00b0078da4abe8eemr1661795eja.140.1668027100771; Wed, 09 Nov 2022 12:51:40 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <202211070339.2A73dJlO027991@gitrepo.freebsd.org> <20221107121514.Horde.nulS9Wg1s3yzAsXXkuJRBa9@webmail.leidinger.net> <20221108105053.Horde.eqgFiBJe2ngGAj6BkXcv5-Z@webmail.leidinger.net> <20221109134610.Horde.JB7ibQTWprHbmIUfhg7JY7f@webmail.leidinger.net> <460205F9-5D59-4033-813B-C34E01BFD6C4@hausen.com> In-Reply-To: <460205F9-5D59-4033-813B-C34E01BFD6C4@hausen.com> From: Warner Losh Date: Wed, 9 Nov 2022 13:51:29 -0700 Message-ID: Subject: Re: changes to the zfs boot (was: Re: git: 72a1cb05cd23 - main - rc(8): Add a zpoolupgrade rc.d script) To: "Patrick M. Hausen" Cc: Alexander Leidinger , Mark Millard , tsoome@freebsd.org, Li-Wen Hsu , current@freebsd.org Content-Type: multipart/alternative; boundary="000000000000d165cb05ed0fd283" X-Rspamd-Queue-Id: 4N6xwG36P9z49LS X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-ThisMailContainsUnwantedMimeParts: N --000000000000d165cb05ed0fd283 Content-Type: text/plain; charset="UTF-8" On Wed, Nov 9, 2022 at 12:02 PM Patrick M. Hausen wrote: > Hi all, > > > Am 09.11.2022 um 16:54 schrieb Warner Losh : > > >> There is a fixed list of features we support in the boot loader: > > >> [...] > > >> Any feature not on this list will cause the boot loader to > > >> reject the pool. > > I admit that I do not grasp the full implications of this thread and the > proposed > and debated changes. Does that imply that a simple "zpool upgrade" of the > boot/root pool might lead to an unbootable system in the future - even if > the > boot loader is upgraded as it should, too? > Yes. For safety, boot loader upgrade is mandatory when you do a zpool upgrade of the root filesystem. It was definitely needed in the OpenZFS jump, and we've had one or two other flag days since. It would be nice if we had a failsafe here, but we don't today. With a failsafe, we could say 'well, go ahead and try, even if it encounters something it doesn't understand... to at least allow the system to boot. Warner --000000000000d165cb05ed0fd283 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Nov 9, 2022 at 12:02 PM Patri= ck M. Hausen <pmh@hausen.com> w= rote:
Hi all,
> Am 09.11.2022 um 16:54 schrieb Warner Losh <imp@bsdimp.com>:
> >>=C2=A0 =C2=A0 There is a fixed list of features we support in = the boot loader:
> >>=C2=A0 =C2=A0 [...]
> >>=C2=A0 =C2=A0 Any feature not on this list will cause the boot= loader to=C2=A0
> >> reject the pool.

I admit that I do not grasp the full implications of this thread and the pr= oposed
and debated changes. Does that imply that a simple "zpool upgrade"= ; of the
boot/root pool might lead to an unbootable system in the future - even if t= he
boot loader is upgraded as it should, too?

<= div>Yes. For safety, boot loader upgrade is mandatory when you do a zpool u= pgrade of the root filesystem. It was definitely needed in the OpenZFS jump= , and we've had one or two other flag days since.

<= div>It would be nice if we had a failsafe here, but we don't today. Wit= h a failsafe, we could say 'well, go ahead and try, even if it encounte= rs something=C2=A0it doesn't understand... to at least allow the system= to boot.

Warner
--000000000000d165cb05ed0fd283--