Date: Tue, 19 Nov 2024 01:24:35 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 282832] makefs zfs creates images with the same guid Message-ID: <bug-282832-227-FGD8qkwnKt@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-282832-227@https.bugs.freebsd.org/bugzilla/> References: <bug-282832-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282832 --- Comment #12 from Mark Johnston <markj@FreeBSD.org> --- (In reply to Pat Maddox from comment #11) If I use your makefile, but modify the bhyve/bhyveload invocation to boot t= he official 14.2-BETA2 zfs image[1], it boots fine. I verified that all three pools have the same guid, per zdb -u it's 4116862866898151352. So I suspect that there's something else going on, and that importing one of the pools h= as some side effect which fixes the problem. In particular, if I generate zdata.zfs using your script, then boot the 14.2 image into single user mode (so reguid hasn't run), I can see that both poo= ls have the same GUID and yet the kernel was able to mount root successfully. = So something else is going on. root@:/ # zdb -l /dev/ada0p4 ------------------------------------ LABEL 0=20 ------------------------------------ txg: 4 version: 5000 state: 1 name: 'zroot' pool_guid: 4016146626377348012 top_guid: 100716240520803340 guid: 100716240520803340 vdev_children: 1 features_for_read: vdev_tree: type: 'disk' ashift: 12 asize: 5363990528 guid: 100716240520803340 id: 0 path: '/dev/null' whole_disk: 1 create_txg: 4 metaslab_array: 2 metaslab_shift: 29 labels =3D 0 1 2 3=20 root@:/ # zdb -l /dev/ada1 ------------------------------------ LABEL 0=20 ------------------------------------ txg: 4 version: 5000 state: 1 name: 'zdata' pool_guid: 4016146626377348012 top_guid: 100716240520803340 guid: 100716240520803340 vdev_children: 1 features_for_read: vdev_tree: type: 'disk' ashift: 12 asize: 100139008 guid: 100716240520803340 id: 0 path: '/dev/null' whole_disk: 1 create_txg: 4 metaslab_array: 2 metaslab_shift: 24 labels =3D 0 1 2 3=20 I tried booting with all three pools, and that works too. [1] https://download.freebsd.org/releases/VM-IMAGES/14.2-BETA3/amd64/Latest/Fre= eBSD-14.2-BETA3-amd64-zfs.raw.xz --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282832-227-FGD8qkwnKt>