From owner-freebsd-fs@freebsd.org Wed Feb 15 15:42:18 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B3106CE09FF for ; Wed, 15 Feb 2017 15:42:18 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.99]) (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 73826F81 for ; Wed, 15 Feb 2017 15:42:18 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from [78.35.162.76] (helo=fabiankeil.de) by smtprelay05.ispgateway.de with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1ce17P-00088C-7X; Wed, 15 Feb 2017 16:03:43 +0100 Date: Wed, 15 Feb 2017 16:02:54 +0100 From: Fabian Keil To: Peter Pauly Cc: freebsd-fs@freebsd.org Subject: Re: Moving a bootable ZFS USB between systems Message-ID: <20170215160254.696d3a1e@fabiankeil.de> In-Reply-To: References: Reply-To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/Dm7sIy+HoSrZizgb0G3lPpU"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2017 15:42:18 -0000 --Sig_/Dm7sIy+HoSrZizgb0G3lPpU Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Peter Pauly wrote: > I installed FreeBSD 11 with an encrypted GELI root and ZFS (zroot) on a > USB stick. My intention was to boot off of it on several systems. It > works fine on the original system but not on a second system. >=20 > I get this message: > Mounting from zfs:zroot/ROOT/default failed with error 5. >=20 > The USB stick is da0. >=20 > The geli part looks like it works, but the zfs mount fails. Assuming the boot ends at the mountroot prompt, this is likely the result of a known bug that is only triggered on some systems: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208882 You could try the patch from the PR. It has been included in ElectroBSD since more than a year now without causing any known issues. > Should I be able to move the stick between systems or do I need to do a > zpool export zroot first? If so, where is the best place to put this > (rc.shutdown?) In general, moving USB sticks around should not require any special steps. Fabian --Sig_/Dm7sIy+HoSrZizgb0G3lPpU Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTKUNd6H/m3+ByGULIFiohV/3dUnQUCWKRtnwAKCRAFiohV/3dU nRWUAJ4xhNvxn5DIHi1/8rn1Ip9GNZiMxgCeJXSrR5VOffy/1y+P2gfgsQQTEb0= =/sD2 -----END PGP SIGNATURE----- --Sig_/Dm7sIy+HoSrZizgb0G3lPpU--