Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Oct 2012 10:53:27 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        "Justin T. Gibbs" <gibbs@scsiguy.com>
Cc:        freebsd-fs@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: zfs: allow to mount root from a pool not in zpool.cache
Message-ID:  <20121003085326.GC1386@garage.freebsd.pl>
In-Reply-To: <DA42C8E9-BFFF-4C5A-9E14-1D50EAEFA669@scsiguy.com>
References:  <505DE715.8020806@FreeBSD.org> <DA42C8E9-BFFF-4C5A-9E14-1D50EAEFA669@scsiguy.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--s9fJI615cBHmzTOP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Sep 22, 2012 at 10:59:56PM -0600, Justin T. Gibbs wrote:
> On Sep 22, 2012, at 10:28 AM, Andriy Gapon <avg@freebsd.org> wrote:
>=20
> >=20
> > Currently FreeBSD ZFS kernel code doesn't allow to mount root filesyste=
m on a
> > pool that is not listed in zpool.cache as only pools from the cache are=
 known to
> > ZFS at that time.
>=20
> I've for some time been of the opinion that FreeBSD should only use
> the cache file for ZFS pools created from non-GEOM objects (i.e.
> files).  GEOM tasting should be used to make the kernel aware of
> all pools whether they be imported on the system, partial, or
> foreign.  Even for pools created by files, the user land utilities
> should do nothing more than ask the kernel to "taste them".  This
> would remove code duplicated in user land for this task (code that
> must be re-executed in kernel space for validation reasons anyway)
> and also help solve problems we've encountered at Spectra with races
> in fault event processing, spare management, and device arrival and
> departures.
>=20
> So I'm excited by your work in this area and would encourage you
> to "think larger" than just trying to integrate root pool discovery
> with GEOM.  Spectra may even be able to help in this work sometime
> in the near future.

GEOM tasting would most likely require rewriting the code heavly.
Also note that you can have pools in you system that do match your
hostid, but user decided to keep exported and such pool should not be
configured automatically. Not a huge problem probably as there is pool
status somewhere in the metadata that we can use to see if the pool is
exported or not.

--=20
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://tupytaj.pl

--s9fJI615cBHmzTOP
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlBr/QYACgkQForvXbEpPzS7WgCg785gwKM6zy+TKHbwMj8QA2Dw
CcYAnRR76i8cc1QL5UsIItu6PH7qelx1
=qv5g
-----END PGP SIGNATURE-----

--s9fJI615cBHmzTOP--



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