From nobody Sat Jan 29 22:43:30 2022 X-Original-To: freebsd-stable@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 BCA2F19907CB for ; Sat, 29 Jan 2022 22:43:35 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JmTrR4vYTz3Ppy; Sat, 29 Jan 2022 22:43:35 +0000 (UTC) (envelope-from avg@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643496215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nq6lULyQ74vicXP7XYL7XHrc6xZEzssOzDktigeRLTk=; b=ehJ147rgh5VZcxplJgLFtecWEsm74slbNgoO4EbWRLPd8H9q8zIkBE0aQKfXe74pvI5qDb qhc/OMhJ6lVWyR6qkozVJFih/eWBdouJCvSha8vfjf75nqy9ug0Fu63Enyu/Xbv4h+NCA/ I7KLJ3naTvTzIVIYoewY4Dtz7R4xbMQYVNlFXZiOxA7yiGTkWx9J32Vj1l3Wmp9qKfozQ6 io6wtEpYBYd7GniTPyMyO1wJ+3xABxLAc8jKuuFCeSTvEHMvGUGDNdvUW6CYVDmu7Dgck+ zKr1KSoGc6Z7ybQBtW2jaGktFw/QlZ9U5qqEUtaMyr9aSAs37MiplKGjpcWazA== Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 12F462E228; Sat, 29 Jan 2022 22:43:33 +0000 (UTC) (envelope-from avg@freebsd.org) Message-ID: <275959c1-60e0-623b-6e95-f892d7ab8566@FreeBSD.org> Date: Sun, 30 Jan 2022 00:43:30 +0200 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.5.0 From: Andriy Gapon Subject: Re: gptzfsboot can't boot from 4TB SSD Content-Language: en-US To: =?UTF-8?Q?Ulrich_Sp=c3=b6rlein?= , Tomoaki AOKI Cc: Eugene Grosbein , freebsd-stable@freebsd.org References: <212cfd90-056f-d294-ae9c-fd2b632ae679@FreeBSD.org> <20220130030618.dd46cf514f98cdfa6caa1ad4@dec.sakura.ne.jp> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643496215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nq6lULyQ74vicXP7XYL7XHrc6xZEzssOzDktigeRLTk=; b=oXphKCk2IhCojfpi7vu8lhfmRQ9h5jBBnXdyHbgRMlth4j9tSGIJ8alwKQRTATZfeV86lv bPmu7ZZpnNw4qIw5uADsrQqnM6BbyupgNigpgnj3F42BXP9U2EGxt2Ew08kxZpHHmeZLws osXi114mJJ+92zWsBemLnU4SmzjbYLjpPKmrXSDZWQJ1iFjtzz4yZDmb8ZFolt4hF1/zsG c11Y+Aw8MfUE7gERuriSniOCyuZJl0nGAcEHjzNWGfZJqsM11mGTuvnf+ZsOIkkMUSPxjO A5OkneMzbSScIllqIfOGXKMCVMYzLa7pIJwEEiHHv9B4H0FRLQyFtvvvIs54Zg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643496215; a=rsa-sha256; cv=none; b=m+LA8cet4R7R0dqs9wyViUJ6RJiptQSDDy8IXeX/CR22sOWF9oIIEhEtoPKd4/8aHVTNq3 e8cwun61O+hcEbF+d58eb6X6Z2RPy5EKt9MUSzG1DLVt1avrAL3tdN5tT0KVeN7dz488za gKqwz33oQiyrnR6LXiAXgz4fos8k5htUG4uUtv396yOf7NjVYovCItMg/cGSaDi43Abp25 nBv/RNKMB+nGIJguGf2hNKlq/vQqIx+VcfsuYlgG13lYHx4sya1MC389vH+TNj7QW2+riZ eP0ASda0WeNdAHZLNH8g4HC2S1CArad4qM5TiA23tvgolcB0vycvuCa5t5Abeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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