Date: Sat, 2 Dec 2023 13:36:08 +0900 From: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> To: stable@freebsd.org Subject: Re: EFI and zfs raid mirror partial fail (14.0 and RELENG_13) Message-ID: <20231202133608.389d3572b4ecaee6a2a38e93@dec.sakura.ne.jp> In-Reply-To: <CANCZdfqRsOHmyPRtH3fsMG=86RD=4Ci=hpU9VHFf20nc=0Js=Q@mail.gmail.com> References: <c9969fde-3653-43ce-a1f0-322e2dc4a77b@sentex.net> <e9f9acd5-6490-4b6d-8cce-a8d7826fe86c@sentex.net> <86d04457-5018-45f9-849f-eb20ed5cf380@twisted.org.uk> <CANCZdfqRsOHmyPRtH3fsMG=86RD=4Ci=hpU9VHFf20nc=0Js=Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 1 Dec 2023 17:45:53 -0700 Warner Losh <imp@bsdimp.com> wrote: > On Fri, Dec 1, 2023, 4:57 PM Pete French <pete@twisted.org.uk> wrote: > > > > > On 01/12/2023 21:53, mike tancsa wrote: > > > Should have looked at open PRs. There is one from a while ago > > > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258987 > > > > > > > > > > Was thinking about this, and I was wondering if it would be possible to > > make the EFI partition a gmirror. So its across all discs, mounted only > > once, but would still boot from any of them. My understanding is geom > > has the label at the end, yes ? So the firmware would see the filesystem > > on a single partition quite happily ? > > > > I've done this. It works ok. But I don't run like this in production. If I > write a new file, that has so many writes to the different disks. If they > all go through then life is good (this is what gets us to OK). > > BUT, if there is a power failure or crash and only some of them make it to > disk, then you have a corrupt ESP and the BIOS may pick that ESP to boot > off of, booting corrupt data. > > Since this is infrequently updated, you can use a safe sequence to update > things one partition a time, then you might lose the file entirely, but it > will either be there and good. Or it will be gone. You can't get into a bad > situation. Either you boot old or new loader and can just quit from the > boot loader if it's the old one and it can't boot. Efi will try the next > one on the list. > > Here manual mirroring, if scripted, can be more reliable than gmirror. > > Warner > > -pete. It looks reasonable if it is auto-generated by bsdinstall, used on initial installation, and kept for later use by `make installworld`. bsdinstall should know how many, and which disk is configured for FreeBSD. And, maybe impossible for now, but if "Actually booted from at this time" ESP is auto-mounted on default location, it could be helpful for admins. Just a thought. -- Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20231202133608.389d3572b4ecaee6a2a38e93>