From owner-freebsd-stable@FreeBSD.ORG Thu Mar 20 15:52:18 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6548E274 for ; Thu, 20 Mar 2014 15:52:18 +0000 (UTC) Received: from mail.egr.msu.edu (gribble.egr.msu.edu [35.9.37.169]) by mx1.freebsd.org (Postfix) with ESMTP id 38AFD83D for ; Thu, 20 Mar 2014 15:52:17 +0000 (UTC) Received: from gribble (localhost [127.0.0.1]) by mail.egr.msu.edu (Postfix) with ESMTP id 3F46B2C450 for ; Thu, 20 Mar 2014 11:52:11 -0400 (EDT) X-Virus-Scanned: amavisd-new at egr.msu.edu Received: from mail.egr.msu.edu ([127.0.0.1]) by gribble (gribble.egr.msu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YfBdgMcT4iwE for ; Thu, 20 Mar 2014 11:52:11 -0400 (EDT) Received: from EGR authenticated sender Message-ID: <532B0EAB.6080608@egr.msu.edu> Date: Thu, 20 Mar 2014 11:52:11 -0400 From: Adam McDougall User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Re: Can ZFS boot from other than the root of a pool? References: <532AF77A.9010204@denninger.net> <532AFB89.6060203@denninger.net> In-Reply-To: <532AFB89.6060203@denninger.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2014 15:52:18 -0000 On 03/20/2014 10:30, Karl Denninger wrote: >>> On Mar 20, 2014 7:13 AM, "Karl Denninger" wrote: >>>> For a number of reasons having to do with backup strategy I want to >>>> mount >>> a ZFS root from "poolname/root" instead just "poolname." >>>> That works ok; I can set in /boot/loader.conf: >>>> vfs.root.mountfrom="zfs:zroot/root" > It LOOKS to me like this will work too: > > zpool set bootfs tank/bootfs > > ... and in loader.conf (in /boot/loader.conf on tank/bootfs) set the > root SOMEWHERE ELSE. > > That has certain advantages, particularly if you want a GELI-encrypted > root. > > I'll play with this a bit.... (the ability to make upgrades much less > dangerous in that an immediate-revert becomes pretty easy helps too) > You don't need to set vfs.root.mountfrom in recent versions. This makes it much easier. I've been booting from /rpool/ROOT/freebsd for years (sometimes alternate paths when I want to load another copy of FreeBSD). Setting bootfs should do the trick.