Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Nov 2022 08:30:38 -0600
From:      Larry Rosenman <ler@lerctr.org>
To:        Alexander Leidinger <Alexander@leidinger.net>
Cc:        Eric Borisch <eborisch@gmail.com>, Warner Losh <imp@bsdimp.com>, Alan Somers <asomers@freebsd.org>, FreeBSD FS <freebsd-fs@freebsd.org>, John Kennedy <warlock@phouka.net>, Nathan Whitehorn <nwhitehorn@freebsd.org>
Subject:   Re: UEFI question
Message-ID:  <900ef03a19ecd63d315220a41f0ce4dc@lerctr.org>
In-Reply-To: <20221124083959.Horde.OuPEDUTGTdU8KNqv5AvN04y@webmail.leidinger.net>
References:  <20220531123221.n7ubs365ceeqo2d4@x1> <YpYzbgexVa0mULas@phouka1.phouka.net> <CAOtMX2g4-2PPTSSP-SfrG8m7gQDDqP0J%2BuwOKKutiQxryye6sw@mail.gmail.com> <CANCZdfo7Zixx%2Bd_DkVi3ymbEjtd=f1yFYyJmMixjGCSFyP8h%2Bw@mail.gmail.com> <CAMsT2=nB46rnvFTbuwG9OCqJdWSRV%2BsB3PKHhC=15PiS8DQegg@mail.gmail.com> <20221124083959.Horde.OuPEDUTGTdU8KNqv5AvN04y@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--=_8640340bae758ce35d97828238a5889c
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII;
 format=flowed



On 11/24/2022 1:39 am, Alexander Leidinger wrote:

> Quoting Eric Borisch <eborisch@gmail.com> (from Tue, 22 Nov 2022 
> 17:50:08 -0600):
> On Tue, Nov 22, 2022 at 1:50 PM Warner Losh <imp@bsdimp.com> wrote:
> 
> On Tue, Nov 22, 2022, 11:42 AM Alan Somers <asomers@freebsd.org> wrote:
> 
> I just noticed the same problem.  For mirrored installs, the
> 13.1-RELEASE installer only formats the efi partition on one hard
> disk.  Shouldn't it do both?
> 
> We go back and forth on this question.... I think we should, but others 
> got grumpy when I suggested it. Maybe just all the drives in the zpool 
> used for the BE?
> 
> Warner

Just a "yes, please." If you're installing zfs root on a mirror of 
disks, POLA suggests the required boot bits are on both disks, too.

N disks instead of both disks please.

All disks which are part of a redundant root pool should get 
_everything_ what is necessary to boot in case the primary boot drive of 
the pool fails. Theoretically we only need the amount of boot redundancy 
to the level of redundancy degree of the pool (can't rememeber if we now 
have support to boot from raidz, I only have mirrors, but some of them 
with more than 2 disks), but as we can't predict which drive fails until 
the redundancy level is reached, the only option we have is to mirror 
the freebsd-boot partition.

If this is via gmirror or via independent partitions is another 
question.

If we want to provide a drive failure resistant boot experience (and the 
zfs pool types which offer redundancy make at least the users believe we 
want to do that), there is not really an option to not do that.

And while we're at it, I think we should mention in our upgrade 
instructions (e.g. src/Makefile and src/UPDATING) how to update the EFI 
parts too.

Bye,
Alexander.

http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

we boot fine from RaidZ....

All my boxes have all the disks in RaidZ.

See my previous post for what my gpart show has.

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler@lerctr.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106
--=_8640340bae758ce35d97828238a5889c
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Arial,Helve=
tica,sans-serif'>
<p id=3D"reply-intro">On 11/24/2022 1:39 am, Alexander Leidinger wrote:</p>
<blockquote type=3D"cite" style=3D"padding: 0 0.4em; border-left: #1010ff 2=
px solid; margin: 0">
<div id=3D"replybody1">
<div style=3D"font-family: Arial; font-size: 14px;">
<p>Quoting Eric Borisch &lt;<a href=3D"mailto:eborisch@gmail.com" rel=3D"no=
referrer">eborisch@gmail.com</a>&gt; (from Tue, 22 Nov 2022 17:50:08 -0600)=
:</p>
<blockquote style=3D"border-left: 2px solid blue; margin-left: 2px; padding=
-left: 12px;">
<div dir=3D"auto">On Tue, Nov 22, 2022 at 1:50 PM Warner Losh &lt;<a href=
=3D"mailto:imp@bsdimp.com" rel=3D"noreferrer">imp@bsdimp.com</a>&gt; wrote:=
</div>
<div>
<div class=3D"v1gmail_quote">
<blockquote class=3D"v1gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; bor=
der-left-width: 1px; border-left-style: solid; padding-left: 1ex; border-le=
ft-color: #cccccc;">
<div dir=3D"auto">
<div><br /><br />
<div class=3D"v1gmail_quote">
<div class=3D"v1gmail_attr" dir=3D"ltr">On Tue, Nov 22, 2022, 11:42 AM Alan=
 Somers &lt;<a href=3D"mailto:asomers@freebsd.org" rel=3D"noreferrer">asome=
rs@freebsd.org</a>&gt; wrote:<br />&nbsp;</div>
<blockquote class=3D"v1gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; bor=
der-left-width: 1px; border-left-style: solid; padding-left: 1ex; border-le=
ft-color: #cccccc;">
<p>I just noticed the same problem.&nbsp; For mirrored installs, the<br />1=
3.1-RELEASE installer only formats the efi partition on one hard<br />disk.=
&nbsp; Shouldn't it do both?</p>
</blockquote>
</div>
</div>
<div dir=3D"auto">&nbsp;</div>
<div dir=3D"auto">&nbsp;</div>
<div dir=3D"auto">We go back and forth on this question.... I think we shou=
ld, but others got grumpy when I suggested it. Maybe just all the drives in=
 the zpool used for the BE?</div>
</div>
<div dir=3D"auto">
<div dir=3D"auto">&nbsp;</div>
<div dir=3D"auto">Warner</div>
</div>
</blockquote>
<div dir=3D"auto">&nbsp;</div>
<div dir=3D"auto">Just a &ldquo;yes, please.&rdquo; If you&rsquo;re install=
ing zfs root on a mirror of disks, POLA suggests the required boot bits are=
 on both disks, too.</div>
<div dir=3D"auto">&nbsp;</div>
</div>
</div>
</blockquote>
<p><br />N disks instead of both disks please.<br /><br />All disks which a=
re part of a redundant root pool should get <em>everything</em> what is nec=
essary to boot in case the primary boot drive of the pool fails. Theoretica=
lly we only need the amount of boot redundancy to the level of redundancy d=
egree of the pool (can't rememeber if we now have support to boot from raid=
z, I only have mirrors, but some of them with more than 2 disks), but as we=
 can't predict which drive fails until the redundancy level is reached, the=
 only option we have is to mirror the freebsd-boot partition.<br /><br />If=
 this is via gmirror or via independent partitions is another question.<br =
/><br />If we want to provide a drive failure resistant boot experience (an=
d the zfs pool types which offer redundancy make at least the users believe=
 we want to do that), there is not really an option to not do that.<br /><b=
r />And while we're at it, I think we should mention in our upgrade instruc=
tions (e.g. src/Makefile and src/UPDATING) how to update the EFI parts too.=
<br /><br />Bye,<br />Alexander.<br /><br /></p>
<div><a href=3D"http://www.Leidinger.net" target=3D"_blank" rel=3D"noopener=
 noreferrer">http://www.Leidinger.net</a>; <a href=3D"mailto:Alexander@Leidi=
nger.net" rel=3D"noreferrer">Alexander@Leidinger.net</a>: PGP 0x8F31830F9F2=
772BF<br /><a href=3D"http://www.FreeBSD.org" target=3D"_blank" rel=3D"noop=
ener noreferrer">http://www.FreeBSD.org</a>&nbsp; &nbsp; <a href=3D"mailto:=
netchild@FreeBSD.org" rel=3D"noreferrer">netchild@FreeBSD.org</a>&nbsp; : P=
GP 0x8F31830F9F2772BF</div>
</div>
</div>
</blockquote>
<p>we boot fine from RaidZ....&nbsp;</p>
<p>All my boxes have all the disks in RaidZ.&nbsp;</p>
<p>See my previous post for what my gpart show has.</p>
<div id=3D"signature">
<div class=3D"pre" style=3D"margin: 0; padding: 0; font-family: monospace">=
<span class=3D"sig">--&nbsp;<br />Larry Rosenman &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href=3D"http://www.lerctr.or=
g/~ler" target=3D"_blank" rel=3D"noopener noreferrer">http://www.lerctr.org=
/~ler</a><br />Phone: +1 214-642-9640 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; E-Mail: <a href=3D"mailto:ler@lerctr.org">ler@lerctr.org=
</a><br />US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106<br /></span></=
div>
</div>
</body></html>

--=_8640340bae758ce35d97828238a5889c--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?900ef03a19ecd63d315220a41f0ce4dc>