Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2014 11:52:11 -0400
From:      Adam McDougall <mcdouga9@egr.msu.edu>
To:        freebsd-stable@freebsd.org
Subject:   Re: Can ZFS boot from other than the root of a pool?
Message-ID:  <532B0EAB.6080608@egr.msu.edu>
In-Reply-To: <532AFB89.6060203@denninger.net>
References:  <532AF77A.9010204@denninger.net> <CAOjFWZ7xy01UXkPrB2wfN3=YMn9ToHL81a4SHzToa5sDV0YUqA@mail.gmail.com> <CAOjFWZ7=ZczHsjrLo2cLjQYAdwhD7wc3kz37GXarbMLeciMySA@mail.gmail.com> <CAPS9%2BSti9F0waFjgCfXtkxz5zW8sDp8=rv=HZujovpp_wg4cmQ@mail.gmail.com> <532AFB89.6060203@denninger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/20/2014 10:30, Karl Denninger wrote:

>>> On Mar 20, 2014 7:13 AM, "Karl Denninger" <karl@denninger.net> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?532B0EAB.6080608>