zfs: allow to mount root from a pool not in zpool.cache

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Oct 5 18:02:52 UTC 2012


On Fri, Oct 05, 2012 at 12:42:23PM -0500, Matthew D. Fuller wrote:
> On Fri, Oct 05, 2012 at 08:38:49AM +0200 I heard the voice of
> Pawel Jakub Dawidek, and lo! it spake thus:
> > 
> > In my opinion requiring no zpool.cache to import root pool and mount
> > root file system is great idea and we should definiately do it.
> 
> As a user, I heartily agree.  I've setup a number of ZFS systems now,
> generally by booting up a live CD/USB/existing install on an extra
> drive, setting up and installing files, then unplugging the temp drive
> and letting it come up.
> 
> So far, I haven't yet _ever_ had it actually boot right the first
> time.  It keeps getting up to the root mount and failing.  I've always
> had to plug the other drive back in and "squirrel around" with
> zpool.cache until it works.  The last time, I believe it was because
> during the setup I had one NIC plugged in, and the "real" system used
> the other, so the hostid wound up different?  It's kinda like an
> adventure game, but the replay value is a bit low   8-}

Hostid is not used for root pool, but I'm aware current way of setting
up ZFS this way is far from being intuitive and requires some
understanding of how it work internally. It shouldn't be that way and
I'm glad it will change.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://tupytaj.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20121005/4f460222/attachment.pgp


More information about the freebsd-fs mailing list