From owner-freebsd-fs@FreeBSD.ORG Sat Jan 15 09:27:45 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 821351065670 for ; Sat, 15 Jan 2011 09:27:45 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 2DDC38FC08 for ; Sat, 15 Jan 2011 09:27:44 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id D981145C9C; Sat, 15 Jan 2011 10:27:43 +0100 (CET) Received: from localhost (89-73-192-49.dynamic.chello.pl [89.73.192.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id D434B45E49; Sat, 15 Jan 2011 10:27:38 +0100 (CET) Date: Sat, 15 Jan 2011 10:27:29 +0100 From: Pawel Jakub Dawidek To: Kenneth Vestergaard Message-ID: <20110115092729.GB5335@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dc+cDN39EJAMEtIO" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: Booting from a ZFS pool exported on another system. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jan 2011 09:27:45 -0000 --dc+cDN39EJAMEtIO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 13, 2011 at 06:36:42PM +0100, Kenneth Vestergaard wrote: > Hello. >=20 > I'm trying to create some VirtualBox-images with a ZFS root filesystem, b= ut > I can't seem to boot from it. I just get a "No ZFS pools located, can't > boot". >=20 > If I take the generated image, and boot it with an mfsbsd-CD, import the > pool, and reboot, it works fine, so I'm guessing zfsboot doesn't like it > when the pool has been exported? I can't find a way to build an image-file > with a pool, without having to export it from the buildsystem when I'm > done, so I'm in a bit of a catch-22 here. >=20 > Is this a bug in zfsboot, or simply just the way things work? This was implemented that way, but I don't like this behaviour too. I was beaten by this in the past myself. I just looked at OpenSolaris code and they only skip destroyed pools, which is better than what we do. Could you try the following patch: http://people.freebsd.org/~pjd/patches/zfsimpl.c.patch --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --dc+cDN39EJAMEtIO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk0xaIEACgkQForvXbEpPzQ6lACeJ+FxOxtBv6EJvI4N6LYKFmiN jiUAniYaYawZ+EdztLHuHPLDvC0aylQx =Dzhh -----END PGP SIGNATURE----- --dc+cDN39EJAMEtIO--