Date: Mon, 13 Jul 2020 20:02:53 +0200 (CEST) From: Christian Kratzer <ck-lists@cksoft.de> To: Allan Jude <allanjude@freebsd.org> Cc: freebsd-fs@freebsd.org Subject: Re: gptzfsboot targeting wrong vdev Message-ID: <alpine.BSF.2.22.395.2007131953300.82939@nocfra1.cksoft.de> In-Reply-To: <d1b537da-8a94-4e12-4d45-b4318db2fbb8@freebsd.org> References: <alpine.BSF.2.22.395.2007061453250.82939@nocfra1.cksoft.de> <9400f5f0-e267-932c-b1ce-8436748cf2c0@FreeBSD.org> <78024f0d-4889-713e-15a5-56ec6d8d82b3@freebsd.org> <alpine.BSF.2.22.395.2007131155560.82939@nocfra1.cksoft.de> <d1b537da-8a94-4e12-4d45-b4318db2fbb8@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Mon, 13 Jul 2020, Allan Jude wrote: > bootme is only used by gptboot, for UFS. ok. > You might want to example your disks with 'zdb -l /dev/ada0' (for each > disk, and each partition). It seems there is something not encrypted > somewhere. It may be an old label from a pool that has been destroyed, > and a new pool with the same name was later created or something. let me provide the partitions up front root@zfs1:/home/ck # gpart show /dev/ada0 => 40 468862048 ada0 GPT (224G) 40 1024 1 freebsd-boot (512K) 1064 134217728 2 freebsd-swap (64G) 134218792 33554432 3 freebsd-vinum (16G) 167773224 33554432 4 freebsd-vinum (16G) 201327656 267534424 5 freebsd-zfs [bootme] (128G) 468862080 8 - free - (4.0K) root@zfs1:/home/ck # ada1 is essentially the same. These are the two m2 ssd I have zroot und zil on. The two freebsd-vinum partitions used to be freebsd-zfs Partitions 3 and 4 are used for the log device and these happen to have the names I was getting confused about root@zfs1:/home/ck # zdb -l /dev/ada0p3 | head -10 ------------------------------------ LABEL 0 ------------------------------------ version: 5000 name: 'zp1' state: 0 txg: 37392274 pool_guid: 6725164972097052508 hostid: 694021601 hostname: 'zfs1' root@zfs1:/home/ck # root@zfs1:/home/ck # zdb -l /dev/ada0p4 | head -10 ------------------------------------ LABEL 0 ------------------------------------ version: 5000 name: 'zp2' state: 0 txg: 21037796 pool_guid: 16088850666393843588 hostid: 694021601 hostname: 'zfs1' root@zfs1:/home/ck # It is just a name and not a label. gptzfsboot was trying to tell me it cannot boot from ada0p3 which has the name zp1. My two other pools on the sas hba happen to be called zp1 and zp2. For some reason when I setup the system I moved stuff around and ended up with two zlog partitions first and the zroot last. So now everything makes sense again. The freebsd-vinum hack solves this for me and I have gained some more experience. In the future I will ensure to have the first partition after boot to be the zroot. Greetings Christian -- Christian Kratzer CK Software GmbH Email: ck@cksoft.de Wildberger Weg 24/2 Phone: +49 7032 893 997 - 0 D-71126 Gaeufelden Fax: +49 7032 893 997 - 9 HRB 245288, Amtsgericht Stuttgart Mobile: +49 171 1947 843 Geschaeftsfuehrer: Christian Kratzer Web: http://www.cksoft.de/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.22.395.2007131953300.82939>