From nobody Tue Oct 10 20:20:37 2023 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S4nN32dTWz4wGxD for ; Tue, 10 Oct 2023 20:20:51 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4nN23PLhz3VHZ; Tue, 10 Oct 2023 20:20:50 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of asomers@gmail.com designates 209.85.221.171 as permitted sender) smtp.mailfrom=asomers@gmail.com; dmarc=none Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-495c10cec8aso2460589e0c.1; Tue, 10 Oct 2023 13:20:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696969249; x=1697574049; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i7UIPnePuOVxrjvpvkITtzO0NKr5YePSOGGYElRN9Ho=; b=FsWvlj01nZHOy8iAOFxqr8GutrhiXhSUFo92UINskdcSmUc/gc9s5TVuJki4pnjoKo TIkLPvefl45jF81214NcEJVD/gDXnVXWsuTuCvPWc3VT/oDmJ8mBYifBdzziB7TMQrYq F9ADq/t0U0DPJWdHZjGgI/LoZBXO86hrAhXNgpXT7l3BzuGSQln4hnYr16IeT2u6DhpT cZAoMzk39sAvzt1AF1xHrts8fMXbY0goLZ2Ogoypw7TotUp7cSwNFQNXLQTsMIKvfC1x 4HbqW9iecS5yPC1+m/jKkJ4tsoMhxqTEFuQAifBrYD/6g3MYOan7e8gTSCrmcJ88yMQn 251Q== X-Gm-Message-State: AOJu0YwwX5Hs+uuiR2uFFJRlcUxTty815mRYFAZn27B1IUP0k3gSVHl6 WACQ2fdFLWRL5ygA2omAVjWCvZuIdKgdBwZeDwE= X-Google-Smtp-Source: AGHT+IEezXnKSCdKCXBUYfXB7k8oJqsEJY6Iee585vcB1DyUzxaIvqSeEIz0y/R1hqweRW3pTGqFEWXRPXRvjJzM/ms= X-Received: by 2002:a1f:e404:0:b0:49a:1a56:945c with SMTP id b4-20020a1fe404000000b0049a1a56945cmr16262258vkh.13.1696969249223; Tue, 10 Oct 2023 13:20:49 -0700 (PDT) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 References: <20220531123221.n7ubs365ceeqo2d4@x1> <20221124083959.Horde.OuPEDUTGTdU8KNqv5AvN04y@webmail.leidinger.net> <900ef03a19ecd63d315220a41f0ce4dc@lerctr.org> In-Reply-To: <900ef03a19ecd63d315220a41f0ce4dc@lerctr.org> From: Alan Somers Date: Tue, 10 Oct 2023 13:20:37 -0700 Message-ID: Subject: Re: UEFI question To: Larry Rosenman , jsollvander@axcient.com Cc: Alexander Leidinger , Eric Borisch , Warner Losh , FreeBSD FS , John Kennedy , Nathan Whitehorn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.15 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FORGED_SENDER(0.30)[asomers@freebsd.org,asomers@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; NEURAL_HAM_SHORT(-0.15)[-0.149]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.221.171:from]; MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[209.85.221.171:from]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[asomers@freebsd.org,asomers@gmail.com]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[asomers]; RCPT_COUNT_SEVEN(0.00)[8]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[freebsd.org]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_CC(0.00)[leidinger.net,gmail.com,bsdimp.com,freebsd.org,phouka.net] X-Rspamd-Queue-Id: 4S4nN23PLhz3VHZ On Thu, Nov 24, 2022 at 7:30=E2=80=AFAM Larry Rosenman wro= te: > > On 11/24/2022 1:39 am, Alexander Leidinger wrote: > > Quoting Eric Borisch (from Tue, 22 Nov 2022 17:50:08= -0600): > > On Tue, Nov 22, 2022 at 1:50 PM Warner Losh wrote: > > > > On Tue, Nov 22, 2022, 11:42 AM Alan Somers 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 g= ot grumpy when I suggested it. Maybe just all the drives in the zpool used = for the BE? > > Warner > > > Just a =E2=80=9Cyes, please.=E2=80=9D If you=E2=80=99re installing zfs ro= ot on a mirror of disks, POLA suggests the required boot bits are on both d= isks, too. > > > > N disks instead of both disks please. > > All disks which are part of a redundant root pool should get everything w= hat 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 re= dundancy 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 re= ached, 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 wa= nt 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 instructi= ons (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 This old bug is not forgotten. See a potential solution here: https://reviews.freebsd.org/D42150 (repost from the correct to: address)