Date: Fri, 3 Nov 2023 09:00:57 +0800 From: Zhenlei Huang <zlei@FreeBSD.org> To: mike tancsa <mike@sentex.net> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: RELENG_13 to 14 upgrade fail (resolved) Message-ID: <0389C319-FF97-40F4-88E0-6B2E4DCB522C@FreeBSD.org> In-Reply-To: <82e3580d-3d25-4cfc-8b18-e54a1fddbf12@sentex.net> References: <0c19b8a6-119c-4f5d-af26-d625afc7afec@sentex.net> <82e3580d-3d25-4cfc-8b18-e54a1fddbf12@sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_51F3ABF6-9483-4AC0-BC84-5C55AE0BD772 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Nov 3, 2023, at 12:36 AM, mike tancsa <mike@sentex.net> wrote: >=20 > On 11/2/2023 12:28 PM, mike tancsa wrote: >> On one of my VMs that I upgraded from RELENG_13 to RELENG_14, I = forgot to update the boot loader so now at bootup, I have >> ZFS: unsupported feature: com.klarasystems:vdev_zaps_v2 >>=20 >> Can't find /boot/zfsloader >>=20 >> What is the best way to recover from this ? Its a raw vm image. gpart = is p1=3Dfreebsd-boot, p2=3Dfreebsd-swap,p3=3Dfreebsd-zfs >>=20 >> I was thinking perhaps start up a second vm thats RELENG_14, mdconfig = the image, and then what do I need to do ? Just >>=20 >> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 md0 ? >>=20 >>=20 >=20 > A little easier than I though. I just grabbed the 2 files from a = RELENG_14 image and put them in /tmp on my nfs server where the raw vm = image is. Then >=20 > mdconfig -f problem-vm-image.raw > gpart bootcode -b /tmp/pmbr -p /tmp/gptzfsboot -i 1 md0 For the UEFI boot, the process to upgrade the boot loader is different. I once made a mistake (I forgot the VM is UEFI bios), and overwrite the = total ESP partition, then the VM refused to boot (certainly). So probably we want a SMART hint when upgrading zfs pool is done. > mdconfig -d -u 0 >=20 > and its up and running again >=20 > ---Mike Best regards, Zhenlei --Apple-Mail=_51F3ABF6-9483-4AC0-BC84-5C55AE0BD772 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br = class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D"">On Nov 3, 2023, at 12:36 AM, mike tancsa <<a = href=3D"mailto:mike@sentex.net" class=3D"">mike@sentex.net</a>> = wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><meta = charset=3D"UTF-8" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); = font-family: Menlo-Regular; font-size: 13px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none; float: none; display: inline !important;" = class=3D"">On 11/2/2023 12:28 PM, mike tancsa wrote:</span><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; = font-size: 13px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;" class=3D""><blockquote type=3D"cite" style=3D"font-family: = Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; orphans: auto; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; = -webkit-text-stroke-width: 0px; text-decoration: none;" class=3D"">On = one of my VMs that I upgraded from RELENG_13 to RELENG_14, I forgot to = update the boot loader so now at bootup, I have<br class=3D"">ZFS: = unsupported feature: com.klarasystems:vdev_zaps_v2<br class=3D""><br = class=3D"">Can't find /boot/zfsloader<br class=3D""><br class=3D"">What = is the best way to recover from this ? Its a raw vm image. gpart is = p1=3Dfreebsd-boot, p2=3Dfreebsd-swap,p3=3Dfreebsd-zfs<br class=3D""><br = class=3D"">I was thinking perhaps start up a second vm thats RELENG_14, = mdconfig the image, and then what do I need to do ? Just<br class=3D""><br= class=3D"">gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 md0 = ?<br class=3D""><br class=3D""><br class=3D""></blockquote><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; = font-size: 13px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: = Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none; float: none; display: inline !important;" class=3D"">A little = easier than I though. I just grabbed the 2 files from a RELENG_14 image = and put them in /tmp on my nfs server where the raw vm image is. = Then</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: = Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;" class=3D""><br style=3D"caret-color: rgb(0, 0, 0); font-family: = Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: = Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none; float: none; display: inline !important;" class=3D"">mdconfig -f = problem-vm-image.raw</span><br style=3D"caret-color: rgb(0, 0, 0); = font-family: Menlo-Regular; font-size: 13px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, = 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none; float: none; display: inline !important;" = class=3D"">gpart bootcode -b /tmp/pmbr -p /tmp/gptzfsboot -i 1 = md0</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: = Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;" class=3D""></div></blockquote><div><br class=3D""></div><div>For = the UEFI boot, the process to upgrade the boot loader is = different.</div><div><br class=3D""></div><div>I once made a mistake (I = forgot the VM is UEFI bios), and overwrite the total ESP partition, then = the VM refused to boot (certainly).</div><div>So probably we want a = SMART hint when upgrading zfs pool is done.</div><br = class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; = font-size: 13px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none; float: none; display: inline !important;" class=3D"">mdconfig -d = -u 0</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: = Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;" class=3D""><br style=3D"caret-color: rgb(0, 0, 0); font-family: = Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;" class=3D""><span style=3D"caret-color: rgb(0, 0, 0); font-family: = Menlo-Regular; font-size: 13px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none; float: none; display: inline !important;" class=3D"">and its up = and running again</span><br style=3D"caret-color: rgb(0, 0, 0); = font-family: Menlo-Regular; font-size: 13px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none;" class=3D""><br style=3D"caret-color: rgb(0, 0, = 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, = 0); font-family: Menlo-Regular; font-size: 13px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration: none; float: none; display: inline !important;" = class=3D""> <span = class=3D"Apple-converted-space"> </span></span><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; = font-size: 13px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none; float: none; display: inline !important;" = class=3D"">---Mike</span></div></blockquote></div><br class=3D""><div = class=3D""> <div>Best regards,</div><div>Zhenlei</div> </div> <br class=3D""></body></html>= --Apple-Mail=_51F3ABF6-9483-4AC0-BC84-5C55AE0BD772--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0389C319-FF97-40F4-88E0-6B2E4DCB522C>