Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Nov 2022 08:39:59 +0100
From:      Alexander Leidinger <Alexander@leidinger.net>
To:        Eric Borisch <eborisch@gmail.com>
Cc:        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:  <20221124083959.Horde.OuPEDUTGTdU8KNqv5AvN04y@webmail.leidinger.net>
In-Reply-To: <CAMsT2=nB46rnvFTbuwG9OCqJdWSRV%2BsB3PKHhC=15PiS8DQegg@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format and has been PGP signed.

--=_aWP2gTUCynVLSuhMP59XuN6
Content-Type: multipart/alternative; boundary="=_kjiPzK6rTi2FFqwh863fEk9"

This message is in MIME format.

--=_kjiPzK6rTi2FFqwh863fEk9
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Description: Textnachricht
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

  Quoting Eric Borisch <eborisch@gmail.com> (from Tue, 22 Nov 2022=20=20
17:50:08=20-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:
>> =C2=A0
>>
>>> I just noticed the same problem.=C2=A0 For mirrored installs, the
>>> 13.1-RELEASE installer only formats the efi partition on one hard
>>> disk.=C2=A0 Shouldn't it do both?
>>
>>       =C2=A0
>>       =C2=A0
>>       We go back and forth on this question.... I think we should,=20=20
>>=20but others got grumpy when I suggested it. Maybe just all the=20=20
>>=20drives in the zpool used for the BE?
>>
>>            =C2=A0
>>       Warner
>
>     =C2=A0
>     Just a =E2=80=9Cyes, please.=E2=80=9D If you=E2=80=99re installing zf=
s root on a mirror=20=20
>=20of disks, POLA suggests the required boot bits are on both disks, too.
>     =C2=A0

N disks instead of both disks please.

All disks which are part of a redundant root pool should get=20=20
/everything/=20what is necessary to boot in case the primary boot drive=20=
=20
of=20the pool fails. Theoretically we only need the amount of boot=20=20
redundancy=20to the level of redundancy degree of the pool (can't=20=20
rememeber=20if we now have support to boot from raidz, I only have=20=20
mirrors,=20but some of them with more than 2 disks), but as we can't=20=20
predict=20which drive fails until the redundancy level is reached, the=20=
=20
only=20option 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=20=20
the=20zfs pool types which offer redundancy make at least the users=20=20
believe=20we want to do that), there is not really an option to not do=20=
=20
that.

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

Bye,
Alexander.
--=20
http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

--=_kjiPzK6rTi2FFqwh863fEk9
Content-Type: text/html; charset=utf-8
Content-Description: HTML-Nachricht
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">;
<html>
<head>
<meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8">
<title></title>
</head>
<body style=3D"font-family:Arial;font-size:14px">
<p>Quoting Eric Borisch &lt;<a href=3D"mailto:eborisch@gmail.com">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-lef=
t:12px;" type=3D"cite">
<div dir=3D"auto">On Tue, Nov 22, 2022 at 1:50 PM Warner Losh &lt;<a href=
=3D"mailto:imp@bsdimp.com">imp@bsdimp.com</a>&gt; wrote:</div>
<div>
<div class=3D"gmail_quote">
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:r=
gb(204,204,204)">
<div dir=3D"auto">
<div><br>
<br>
<div class=3D"gmail_quote">
<div class=3D"gmail_attr" dir=3D"ltr">On Tue, Nov 22, 2022, 11:42 AM Alan S=
omers &lt;<a href=3D"mailto:asomers@freebsd.org" target=3D"_blank">asomers@=
freebsd.org</a>&gt; wrote:<br>
&nbsp;</div>
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:r=
gb(204,204,204)">
<p>I just noticed the same problem.&nbsp; For mirrored installs, the<br>
13.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 are part of a redundant root pool should get <em>everything=
</em> 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 leve=
l 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 leve=
l is reached, the only option we have is to mirror the freebsd-boot partiti=
on.<br>
<br>
If this is via gmirror or via independent partitions is another question.<b=
r>
<br>
If we want to provide a drive failure resistant boot experience (and the zf=
s 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>
<br>
And while we're at it, I think we should mention in our upgrade instruction=
s (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">http://www.Leid=
inger.net</a> <a href=3D"mailto:Alexander@Leidinger.net">Alexander@Leidinge=
r.net</a>: PGP 0x8F31830F9F2772BF<br>
<a href=3D"http://www.FreeBSD.org" target=3D"_blank">http://www.FreeBSD.org=
</a>&nbsp; &nbsp; <a href=3D"mailto:netchild@FreeBSD.org">netchild@FreeBSD.=
org</a>&nbsp; : PGP 0x8F31830F9F2772BF</div>
</body>
</html>
--=_kjiPzK6rTi2FFqwh863fEk9--

--=_aWP2gTUCynVLSuhMP59XuN6
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIzBAABCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmN/H84ACgkQEg2wmwP4
2IZfYQ/9HvEP+0NzZAPO9sqJkw/kpr2BVEEv21ghA2+d0LSyJialmIYyLuEP/ibR
Z3P4rvUAAjqB+/E90fMrjPcXmBOyCKBe/Vys8UA6wem4L1ul/JV06vb6A9CRzG+7
A5JBpMGd8R0s1kRrl6I9lO9ShcH5/jEZjvSmJrgY19ipee0/cYsGIz+4SL+X39mk
HzA244tILoSoBi9ZVb+5rjJniYMiCrrX8NeDaICfPImLXbr4TMMjyHLMnF3ig50I
qmvEmJNmsJCYmZ4IoipbAc2Vw/ZiozYfH5BiO+ghavA+MoOShJQ4xde8bnI72h9z
U724b6zUEo5AAOngW02XJyGvP+rF6WYJ7A3aeoaP2OJGedXGvyWxQxI5QM6JAyjQ
Ng2ayBZc4xPV/VPc+w/QhU3JcuUpsSV6GmtD0KAkpAwI5LrJFtNTPijKUycWipwn
xtSjL0LHpuaF3a0mJdCW+dEr9nxW5PKe5dJD7VgAensIe9co7o20Vt9fJNbtdZW8
KXzJoMMdrNLyuA+HZT8aPteQF2NnO75KbqrDce5o9MxyELBz/5QsR4O2GNpl0uxh
YShQGg0eiruf68SlC6PaxWpPC1DJXpnSa14l2vS2AHGn8urG3JWWkVuW4WhavvFl
tknVbKeMGjUxj+IaplJrmKbLx2CREPl/1c4Q/lSxwXL5ucRQCAM=
=bKeM
-----END PGP SIGNATURE-----

--=_aWP2gTUCynVLSuhMP59XuN6--



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