Date: Mon, 12 Mar 2007 15:28:46 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Dag-Erling Sm?rgrav <des@des.no> Cc: freebsd-fs@FreeBSD.org, freebsd-geom@freebsd.org Subject: Re: zfs_20070303.patch on current Message-ID: <20070312142846.GA3747@garage.freebsd.pl> In-Reply-To: <86ps7evniu.fsf@dwp.des.no> References: <20070120073117.GB60202@x12.dk> <200703061246.09687.antik@bsd.ee> <45ED5850.6050506@nipsi.de> <200703061420.36980.antik@bsd.ee> <20070307135017.GC2864@garage.freebsd.pl> <45F2EEBD.6070007@barryp.org> <86ps7evniu.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
--/04w6evG8XlLl3ft Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 12, 2007 at 10:06:49AM +0100, Dag-Erling Sm?rgrav wrote: > Barry Pederson <bp@barryp.org> writes: > > Is there any hope for someday optionally using ZFS as a root filesystem? >=20 > For that to be possible, both /boot/boot2 and /boot/loader need to > understand ZFS well enough to read files from it. There isn't much > room to spare in /boot/boot2, so we'd have to have a separate version > for ZFS and teach 'disklabel -B' how to pick the right one. This would be hard, I fully agree. > > I was sort of imagining a setup where /boot resided in a UFS > > filesystem so it could hold the kernel/modules/regular booting info > > and - > > /boot/loader.conf would specify 'zfs_load=3D"YES"' along with another > > directive to tell which zfs filesystem to use as root. >=20 > Unlike Linux, where this is a common configuration, FreeBSD can't > mount a root filesystem underneath an already mounted /boot > filesystem. [...] We don't have to mount /boot/ to read from it. The loader reads directly =66rom boot partition, so bascially we could make /dev/ad0s1a a small UFS partition that contains the kernel, zfs kernel module and /etc/fstab and it should work. Note that we currently allow for encrypting root file system the same way with geli(8). > [...] Nor do we have anything resembling Linux's pivot_root > which would allow us to mount the root filesystem on top of /boot and > then switch them around. Actually we do something like this for devfs, AFAIK - we first mount devfs as root file system, then we mount the right root on top of it and move devfs to /dev/. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF9WOeForvXbEpPzQRAkrGAKD4V0rKEcLNG7i8eB0oNkZQuaCmcgCePvmv 3BOSUErlCSClU/sJ03f+mHA= =ghFL -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070312142846.GA3747>