From nobody Wed Nov 03 17:15:13 2021 X-Original-To: bugs@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 801601841EB8 for ; Wed, 3 Nov 2021 17:15:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hktgj2zPsz3MJx for ; Wed, 3 Nov 2021 17:15:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4106D1CB19 for ; Wed, 3 Nov 2021 17:15:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1A3HFDgw006420 for ; Wed, 3 Nov 2021 17:15:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A3HFDCA006419 for bugs@FreeBSD.org; Wed, 3 Nov 2021 17:15:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 259631] pkgbase upgrade from 12 13 with root on zfs leaves system unbootable Date: Wed, 03 Nov 2021 17:15:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: theraven@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259631 Bug ID: 259631 Summary: pkgbase upgrade from 12 13 with root on zfs leaves system unbootable Product: Base System Version: 13.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: theraven@FreeBSD.org I have a FreeBSD 12.x VM that is using old-style BIOS booting (Type 1 Hyper= -V VM) and a GPT partition table. After running `pkg upgrade` to move it to 1= 3, I am left with an unbootable system, with this error: ``` - Can't find /boot/zfsloader FreeBSD/x86 boot Default: zroot/ROOT/12.2:/boot/kernel/kernel boot: ``` If I boot from the 13.0-RELEASE ISO, I can ``` set currdev=3Dzroot/ROOT/12.2 boot /boot/kernel/kernel ``` The kernel then fails at the mountroot> prompt, claiming that the FS is an unknown type. Fortunately, I created a ZFS boot environment before the upgrade, so I am a= ble to restore to the previous state. This is my zpool configuration: ``` NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HE= ALTH ALTROOT zroot 632G 365G 267G - - 35% 57% 1.00x ONLIN= E - da0p4 124G 115G 8.55G - - 73% 93.1% da1p1 508G 249G 259G - - 26% 49.0% ``` This is my partition table: ``` # gpart list Geom name: da0 modified: false state: OK fwheads: 255 fwsectors: 63 last: 266338263 first: 40 entries: 128 scheme: GPT Providers: 1. Name: da0p1 Mediasize: 209715200 (200M) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r0w0e0 efimedia: HD(1,GPT,0a4b5b02-5f2f-11e8-b4ae-00155d684600,0x28,0x64000) rawuuid: 0a4b5b02-5f2f-11e8-b4ae-00155d684600 rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b label: efiboot0 length: 209715200 offset: 20480 type: efi index: 1 end: 409639 start: 40 2. Name: da0p2 Mediasize: 524288 (512K) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r0w0e0 efimedia: HD(2,GPT,0a5936c3-5f2f-11e8-b4ae-00155d684600,0x64028,0x400) rawuuid: 0a5936c3-5f2f-11e8-b4ae-00155d684600 rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f label: gptboot0 length: 524288 offset: 209735680 type: freebsd-boot index: 2 end: 410663 start: 409640 3. Name: da0p3 Mediasize: 2147483648 (2.0G) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e0 efimedia: HD(3,GPT,0a685cba-5f2f-11e8-b4ae-00155d684600,0x64800,0x400000) rawuuid: 0a685cba-5f2f-11e8-b4ae-00155d684600 rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b label: swap0 length: 2147483648 offset: 210763776 type: freebsd-swap index: 3 end: 4605951 start: 411648 4. Name: da0p4 Mediasize: 134005915648 (125G) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e1 efimedia: HD(4,GPT,0a711d98-5f2f-11e8-b4ae-00155d684600,0x464800,0xf99b0= 00) rawuuid: 0a711d98-5f2f-11e8-b4ae-00155d684600 rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b label: zfs0 length: 134005915648 offset: 2358247424 type: freebsd-zfs index: 4 end: 266336255 start: 4605952 Consumers: 1. Name: da0 Mediasize: 136365211648 (127G) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r2w2e3 Geom name: da1 modified: false state: OK fwheads: 255 fwsectors: 63 last: 1073741783 first: 40 entries: 128 scheme: GPT Providers: 1. Name: da1p1 Mediasize: 549753716736 (512G) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e1 efimedia: HD(1,GPT,7efc24e2-197d-11e9-a9a6-00155d687d03,0x800,0x3ffff000) rawuuid: 7efc24e2-197d-11e9-a9a6-00155d687d03 rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b label: (null) length: 549753716736 offset: 1048576 type: freebsd-zfs index: 1 end: 1073739775 start: 2048 Consumers: 1. Name: da1 Mediasize: 549755813888 (512G) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e2 ``` Let me know if there are any other things necessary to debug. It looks as = if between 12 and 13 I need an upgrade to some parts of the bootloader, but PkgBase doesn't install it (though I'm not sure why I can't then mount root= if I use the loader from the CD: I can do `zpool import` from the CD, so the n= ew kernel should be able to handle this pool). --=20 You are receiving this mail because: You are the assignee for the bug.=