From owner-freebsd-stable@freebsd.org Fri Jul 10 20:45:44 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6948E3730F9 for ; Fri, 10 Jul 2020 20:45:44 +0000 (UTC) (envelope-from spork@bway.net) Received: from smtp1.bway.net (smtp1.bway.net [216.220.96.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B3Q6b3jbsz3fNP; Fri, 10 Jul 2020 20:45:43 +0000 (UTC) (envelope-from spork@bway.net) Received: from gaseousweiner.sporklab.com (pool-173-70-93-30.nwrknj.fios.verizon.net [173.70.93.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: spork@bway.net) by smtp1.bway.net (Postfix) with ESMTPSA id 685DB9589A; Fri, 10 Jul 2020 16:45:42 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Re: 12.1p7 no longer boots after doing zpool upgrade -a From: Charles Sprickman In-Reply-To: <20200710184446.GA8358@gvr.gvr.org> Date: Fri, 10 Jul 2020 16:45:42 -0400 Cc: Kyle Evans , FreeBSD-STABLE Mailing List X-Mao-Original-Outgoing-Id: 616106741.702086-7c627f0e74554fcec705510c7fd66514 Content-Transfer-Encoding: quoted-printable Message-Id: <0151E219-E1B6-4F46-9716-F9214DC183BD@bway.net> References: <20200709131201.GA3464@co.gvr.org> <20200710182903.GA7412@gvr.gvr.org> <20200710184446.GA8358@gvr.gvr.org> To: Guido van Rooij X-Mailer: Apple Mail (2.3445.104.14) X-Rspamd-Queue-Id: 4B3Q6b3jbsz3fNP X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.84 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bway.net:s=mail]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:216.220.96.27/32]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[bway.net:dkim]; NEURAL_HAM_LONG(-1.03)[-1.026]; RECEIVED_SPAMHAUS_PBL(0.00)[173.70.93.30:received]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bway.net:+]; DMARC_POLICY_ALLOW(-0.50)[bway.net,quarantine]; NEURAL_HAM_SHORT(-0.19)[-0.195]; NEURAL_HAM_MEDIUM(-1.02)[-1.024]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8059, ipnet:216.220.96.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[216.220.96.27:from] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2020 20:45:44 -0000 > On Jul 10, 2020, at 2:44 PM, Guido van Rooij wrote: >=20 > On Fri, Jul 10, 2020 at 08:29:03PM +0200, Guido van Rooij wrote: >> On Thu, Jul 09, 2020 at 08:24:54AM -0500, Kyle Evans wrote: >>> On Thu, Jul 9, 2020 at 8:12 AM Guido van Rooij = wrote: >>>>=20 >>>> I did a zpool upgrade -a to enable large_dnode and spacemap_v2. >>>> After that, I did: >>>> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0 >>>> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada1 >>>> and: >>>> gpart bootcode -p /boot/boot1.efifat -i 1 ada0 >>>> gpart bootcode -p /boot/boot1.efifat -i 1 ada1 >>>>=20 >>>> Now the system no longer boots from either disk and drops to the = efi shell. >>>=20 >>> This method of updating the ESP is no longer recommended for new = 12.x >>> installations -- we now more carefully construct the ESP with an >>> /EFI/FreeBSD/loader.efi where loader.efi is /boot/loader.efi. You = will >>> want to rebuild this as such, and that may fix part of your problem. >>=20 >> Hi Kyle, >>=20 >> Thnaks for your asnwer. I have not got it to work with that >> configuration. What did work was to replace the = /efi/boot/BOOTx64.efi >> with loader.efi and and change the content of startup.nsh with >> loader.efi. Withoyt the above answer I wouldn't have figure it out >> that quickly so thanks! >>=20 >> I will investigate further once I have more time (early next week = probably). >=20 > There was one question I forgot to ask: > Could I have known that my method of updating the ESP was not correct? > If so, where is this documented? +1 I have a few new servers and I figured that to keep with the times I = should be doing EFI instead of legacy boot, but if this is one of those = features where you have to be subbed to a number of email lists to know = what state the feature is in, then maybe legacy boot is the right = direction. I don=E2=80=99t see any upgrade tips here: = https://www.freebsd.org/cgi/man.cgi?query=3Duefi&sektion=3D8&manpath=3Dfre= ebsd-release-ports This handbook seems to have no upgrade info: https://www.freebsd.org/doc/handbook/updating-upgrading.html https://www.freebsd.org/doc/handbook/boot-introduction.html https://www.freebsd.org/doc/handbook/book.html And I=E2=80=99m still not sure if the wiki is considered a canonical = source for this info or if it=E2=80=99s more of a developer=E2=80=99s = notebook. Thanks, Charles >=20 > -Guido > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org"