Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2022 00:43:30 +0200
From:      Andriy Gapon <avg@freebsd.org>
To:        =?UTF-8?Q?Ulrich_Sp=c3=b6rlein?= <uqs@freebsd.org>, Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Cc:        Eugene Grosbein <eugen@grosbein.net>, freebsd-stable@freebsd.org
Subject:   Re: gptzfsboot can't boot from 4TB SSD
Message-ID:  <275959c1-60e0-623b-6e95-f892d7ab8566@FreeBSD.org>
In-Reply-To: <CAJ9axoQbCdOs8SvOn%2B2-QUtdpyE5moQuQk_CRBsdkar4yWY2dw@mail.gmail.com>
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> <CAJ9axoQbCdOs8SvOn%2B2-QUtdpyE5moQuQk_CRBsdkar4yWY2dw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 29/01/2022 23:49, Ulrich Spörlein wrote:
> This output is from_before_  loader is loaded

What gives you confidence in that?
Do you know exact moment where execution passes from gpt(zfs)boot to loader?

> and I don't have any
> mountfrom settings in loader.conf anyway.

And they wouldn't affect gpt(zfs)boot or loader anyway.
Those settings are for kernel.

> 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?

So, given what you wrote below this is plain impossible?

> I inspected the start of the disk with xxd and it indeed looks like
> gptloader is embedded near the beginning, and not gptzfsloader.

The only explanation I have is that those ZFS error messages come from loader.
AFAIK, at preset we do not have loader vs zfsloader distinction, there is a 
single unified loader with ZFS support.
So, the loader is able to detect and tries to probe the pool.  And fails.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?275959c1-60e0-623b-6e95-f892d7ab8566>