From owner-freebsd-questions@FreeBSD.ORG Wed Apr 15 10:10:15 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2CB8EAAA for ; Wed, 15 Apr 2015 10:10:15 +0000 (UTC) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC40C22E for ; Wed, 15 Apr 2015 10:10:14 +0000 (UTC) Received: from [78.35.181.2] (helo=fabiankeil.de) by smtprelay05.ispgateway.de with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1YiKFJ-0004qF-3F for freebsd-questions@freebsd.org; Wed, 15 Apr 2015 12:08:37 +0200 Date: Wed, 15 Apr 2015 12:08:38 +0200 From: Fabian Keil To: freebsd-questions@freebsd.org Subject: Re: mountroot prompt with error2, when trying to boot from a single drive in a 2-way mirror Message-ID: <05238e5a.6156fafe@fabiankeil.de> In-Reply-To: References: <552D135F.9010907@FreeBSD.org> Reply-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/yjJeiezBcmwPMPL.Yg6/fkk"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2015 10:10:15 -0000 --Sig_/yjJeiezBcmwPMPL.Yg6/fkk Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable yudi v wrote: > It's not the BIOS settings, I checked. It picks up the other HDD in the > mirror and goes through the boot code and then it fails at booting into z= fs > root pool. > The error is: >=20 > *Trying to mount root from zfs:osysPool/ROOT/default []... > *> >=20 > * Mounting from zfs:osysPool/ROOT/default failed with error 6.* >=20 > it is something to do with the guid mismatch for ada2p3 and ada3p3, not > sure why it's even trying to compare them as they are the two partitions = in > the mirror. > Please see the below images for the relevant console messages. > screen1: > https://drive.google.com/file/d/1Q-F-8kF-Nevn5ijvFXLNuvtJOuRn7ztO2Q/view?= usp=3Dsharing > screen2: > https://drive.google.com/file/d/1ZGseshS0Uk0cc6Gli_-tywHNXO7sLQ_aVw/view?= usp=3Dsharing Please note that these resources aren't accessible without allowing presumably non-free JavaScript from untrustworthy (YMMV) sources. > Is anything amiss in the above label info for these two drives? > I have used these two drives before for testing and reinstalled the os and > recreated the pools. > Any suggestions on how to fix this. The problem could be the result of a known race condition that will prevent the system from booting if the kernel looks for the root pool before its vdevs are available. The less disks there are, the "better" the chances that ZFS "wins" the race. The vfs.mountroot.timeout is ignored for ZFS so the kernel only tries once. For details and a patch to change this see: https://lists.freebsd.org/pipermail/freebsd-fs/2015-March/020997.html As a workaround you can add a UFS root file system on a disk that doesn't actually exist to vfs.root.mountfrom. It should be the first one so you don't hit the spa_namespace_lock deadlock reported in: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D198563 Fabian --Sig_/yjJeiezBcmwPMPL.Yg6/fkk Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlUuOKMACgkQBYqIVf93VJ2uSgCgy+7Wl/oEmmJi8ov2bkUQHx+u O5MAoMAuXxwP/GAuh3SHeDFwIM+PYiXJ =YlBL -----END PGP SIGNATURE----- --Sig_/yjJeiezBcmwPMPL.Yg6/fkk--