From owner-freebsd-current@FreeBSD.ORG Fri Mar 27 15:04:07 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81AD81065676 for ; Fri, 27 Mar 2009 15:04:07 +0000 (UTC) (envelope-from cryx-freebsd@h3q.com) Received: from mail.h3q.com (mail.h3q.com [213.73.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id B72C58FC0A for ; Fri, 27 Mar 2009 15:04:06 +0000 (UTC) (envelope-from cryx-freebsd@h3q.com) Received: (qmail 98003 invoked from network); 27 Mar 2009 15:04:04 -0000 Received: from unknown (HELO Maya.local) (smtpsend@85.179.158.149) by mail.h3q.com with AES256-SHA encrypted SMTP; 27 Mar 2009 15:04:04 -0000 Message-ID: <49CCEAE3.5060804@h3q.com> Date: Fri, 27 Mar 2009 16:04:03 +0100 From: Philipp Wuensche User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <49CB7BC8.1010905@h3q.com> <49CBD785.8050202@h3q.com> <20090327135218.S66387@rust.salford.ac.uk> <20090327135752.L66387@rust.salford.ac.uk> In-Reply-To: <20090327135752.L66387@rust.salford.ac.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Mark Powell Subject: Re: unable to boot ZFS with gptzfsboot from an exported zpool X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 15:04:08 -0000 Mark Powell wrote: > On Fri, 27 Mar 2009, Mark Powell wrote: > >> On Thu, 26 Mar 2009, Philipp Wuensche wrote: >> >>> So it is wanted not to boot from an exported zpool? Why is that so? >> >> I'm not sure 'why'. > > Perhaps, something to do with why the -f flag exists to zpool import. > Actually, this is one of the reasons why I may well just stick with > UFS for root. I was hit by this problem a few times whilst experimenting > with zfsroot. I don't want to ever pull out that DVD again! :) I tried booting from the exported zpool and it works with a patches zfsimpl.c as far as booting the kernel goes. Mounting the rootfs does not work, because the zpool.cache and the zpool think differently about what state they are in. The import -f command is for importing a pool which is currently imported by another system or active as they say. Importing an exported zpool should be no problem at all and I don't see a reason this shouldn't be possible when booting too. Maybe FreeBSD should try to import the zpool before trying to mount the rootfs? greetings, philipp