Date: Sat, 29 Jan 2022 22:49:19 +0100 From: =?UTF-8?Q?Ulrich_Sp=C3=B6rlein?= <uqs@freebsd.org> To: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> Cc: Eugene Grosbein <eugen@grosbein.net>, freebsd-stable@freebsd.org, Andriy Gapon <avg@freebsd.org> Subject: Re: gptzfsboot can't boot from 4TB SSD Message-ID: <CAJ9axoQbCdOs8SvOn%2B2-QUtdpyE5moQuQk_CRBsdkar4yWY2dw@mail.gmail.com> In-Reply-To: <20220130030618.dd46cf514f98cdfa6caa1ad4@dec.sakura.ne.jp> References: <YfKkr%2BmC6rMrRlF9@acme.spoerlein.net> <212cfd90-056f-d294-ae9c-fd2b632ae679@FreeBSD.org> <CAJ9axoRneWhE61k-o0xTH04wyLQnoeNwD6Y2myR0vnvD1Q01Vg@mail.gmail.com> <f321250d-2d27-b1ea-9525-0b4aaf80d05d@grosbein.net> <CAJ9axoQPCxiAMRn4BxCfnVMj4ggbumwyGg3schKg78=fmK%2B8pQ@mail.gmail.com> <20220130030618.dd46cf514f98cdfa6caa1ad4@dec.sakura.ne.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 29, 2022 at 7:06 PM Tomoaki AOKI <junchoon@dec.sakura.ne.jp> wr= ote: > On Sat, 29 Jan 2022 13:24:06 +0100 > Ulrich Sp=E3=80=93rlein <uqs@freebsd.org> wrote: > > Thanks everyone, I managed to repurpose the swap partition to a root > > UFS partition and > > managed to copy everything over. What's puzzling is that I still get > > zio_read errors. > > > > It looks like so now: > > root@coyote:~# gpart show > > =3D> 40 7814037088 ada0 GPT (3.6T) > > 40 1024 1 freebsd-boot (512K) > > 1064 16777216 2 freebsd-ufs [bootme] (8.0G) > > 16778280 16778200 4 freebsd-swap (8.0G) > > 33556480 7780478976 3 freebsd-zfs (3.6T) > > 7814035456 1672 - free - (836K) > > > > and I ran this to replace gptzfsboot with gptboot (or so I thought): > > # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0 > > > > But after rebooting, I get these errors on the console still. Why > > would gptboot try to read zfs metadata? > > > > /boot/config: -Dh > > Consoles: internal video/keyboard serial port > > BIOS drive C: is disk0 > > zio_read error: 5 > > zio_read error: 5 > > zio_read error: 5 > > zio_read error: 5 > > ZFS: i/o error - all block copies unavailable > > ZFS: failed to read pool tank directory object > > BIOS 628kB/523264kB available memory > > > > FreeBSD/x86 bootstrap loader, Revision 1.1 > > Loading /boot/defaults/loader.conf > > Loading /boot/defaults/loader.conf > > Loading /boot/device.hints > > Loading /boot/loader.conf > > Loading /boot/loader.conf.local > > / > > Loading kernel... > > > > Cheers > > Uli > > > > > > Do you still have > > vfs.root.mountfrom=3D"zfs:your/tank/dataset" > > line in /boot/loader.conf on UFS? > And/or having /boot.config (or /boot/config) having configuration > touching your ZFS pool? This output is from _before_ loader is loaded, and I don't have any mountfrom settings in loader.conf anyway. ISorry, I wasn't clear, but the system boots just fine, it finds the loader, loader finds the kernel, and after I added a root entry in /etc/fstab, the kernel was also mounting the right root partition. So everything is working, but boot0 still seems to find gptzfsloader and then seems to fall back to loading from UFS? I inspected the start of the disk with xxd and it indeed looks like gptloader is embedded near the beginning, and not gptzfsloader. Guess I'm sitting on another timebomb here... Cheers all Uli
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ9axoQbCdOs8SvOn%2B2-QUtdpyE5moQuQk_CRBsdkar4yWY2dw>