From owner-freebsd-stable@freebsd.org Thu Jul 9 13:25:07 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 36D9F36AE5C for ; Thu, 9 Jul 2020 13:25:07 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B2cNg0ZvNz42dg for ; Thu, 9 Jul 2020 13:25:07 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id E51E422EA5 for ; Thu, 9 Jul 2020 13:25:06 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qt1-f175.google.com with SMTP id b25so1629677qto.2 for ; Thu, 09 Jul 2020 06:25:06 -0700 (PDT) X-Gm-Message-State: AOAM532W2y28mxmT7tf7XUCLcFmPQgiLGJ6hak2NhQ2+nzaUntMRoR1f HecAMLzYb1iNbxtqaJsG/b1yLtYbPY8nVCCnjIs= X-Google-Smtp-Source: ABdhPJxUm3sDaoEDzVDMKdXUXOTHNA6cbgFnOJyGzY9uFmal0IzKg+MShCgxQLFfNpiX0LNKV36X7ReLSctir9kDYdg= X-Received: by 2002:aed:25fd:: with SMTP id y58mr64909134qtc.310.1594301106416; Thu, 09 Jul 2020 06:25:06 -0700 (PDT) MIME-Version: 1.0 References: <20200709131201.GA3464@co.gvr.org> In-Reply-To: <20200709131201.GA3464@co.gvr.org> From: Kyle Evans Date: Thu, 9 Jul 2020 08:24:54 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: 12.1p7 no longer boots after doing zpool upgrade -a To: Guido van Rooij Cc: FreeBSD-STABLE Mailing List Content-Type: text/plain; charset="UTF-8" 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: Thu, 09 Jul 2020 13:25:07 -0000 On Thu, Jul 9, 2020 at 8:12 AM Guido van Rooij wrote: > > 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 > > Now the system no longer boots from either disk and drops to the efi shell. 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. > From memory, the partitions on ada0 and ada1 are as folows: > > 1 efi > 2 freebsd-boot > 3 freebsd-swap > 4 freebsd > p4 is a geli partition with zfs in it. > ada0p4.eli and ada1p4.eli form a mirrored zpool (called zroot).. > > The boot process no longer asks for a GELi password. It just isues > a no zfs pools found. > > When I boot from a stick, it does ask for the GELi password. When > I set currdev correctly in the loader, I am able to load the kernel, > opensolaris.ko and zfs.ko. However booting failed because I get an > Error: Solaris: NOTICE: Cannot find the pool label for 'zroot' > Was vfs.root.mountfrom set correctly? My completely uneducated guess is that it likely wasn't and we couldn't locate the zpool.cache -- the value of vfs.root.mountfrom should basically match the currdev format here, except without a trailing colon. Thanks, Kyle Evans