From owner-freebsd-geom@FreeBSD.ORG Mon Mar 12 09:35:36 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B435C16A400; Mon, 12 Mar 2007 09:35:36 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 7507513C44B; Mon, 12 Mar 2007 09:35:36 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id CD642207E; Mon, 12 Mar 2007 10:06:49 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 430172049; Mon, 12 Mar 2007 10:06:49 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 1001) id 27C48B88E; Mon, 12 Mar 2007 10:06:49 +0100 (CET) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Barry Pederson 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> Date: Mon, 12 Mar 2007 10:06:49 +0100 In-Reply-To: <45F2EEBD.6070007@barryp.org> (Barry Pederson's message of "Sat, 10 Mar 2007 11:45:33 -0600") Message-ID: <86ps7evniu.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@FreeBSD.org, Pawel Jakub Dawidek , freebsd-geom@freebsd.org Subject: Re: zfs_20070303.patch on current X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 09:35:36 -0000 Barry Pederson writes: > Is there any hope for someday optionally using ZFS as a root filesystem? 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. > 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. Unlike Linux, where this is a common configuration, FreeBSD can't mount a root filesystem underneath an already mounted /boot filesystem. 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. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Mon Mar 12 11:08:20 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F8B416A40E for ; Mon, 12 Mar 2007 11:08:20 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 116F413C44B for ; Mon, 12 Mar 2007 11:08:20 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2CB8JIo065065 for ; Mon, 12 Mar 2007 11:08:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2CB8Iwd065061 for freebsd-geom@FreeBSD.org; Mon, 12 Mar 2007 11:08:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Mar 2007 11:08:18 GMT Message-Id: <200703121108.l2CB8Iwd065061@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 11:08:20 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/73177 geom kldload geom_* causes panic due to memory exhaustion o kern/76538 geom [gbde] nfs-write on gbde partition stalls and continue o kern/83464 geom [geom] [patch] Unhandled malloc failures within libgeo o kern/84556 geom [geom] GBDE-encrypted swap causes panic at shutdown o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o kern/89102 geom [geom_vfs] [panic] panic when forced unmount FS from u o bin/90093 geom fdisk(8) incapable of altering in-core geometry o kern/90582 geom [geom_mirror] [panic] Restore cause panic string (ffs_ o kern/98034 geom [geom] dereference of NULL pointer in acd_geom_detach o kern/104389 geom [geom] [patch] sys/geom/geom_dump.c doesn't encode XML 10 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/78131 geom gbde "destroy" not working. o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/94632 geom [geom] Kernel output resets input while GELI asks for f kern/105390 geom [geli] filesystem on a md backed by sparse file with s o kern/107707 geom [geom] [patch] add new class geom_xbox360 to slice up 5 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Mar 12 14:30:18 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E7EEE16A403; Mon, 12 Mar 2007 14:30:18 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 751CD13C448; Mon, 12 Mar 2007 14:30:18 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 02C68487F3; Mon, 12 Mar 2007 15:30:12 +0100 (CET) Received: from localhost (pc-ab234.wlan.inet.fi [193.211.2.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id E31D445CD9; Mon, 12 Mar 2007 15:30:05 +0100 (CET) Date: Mon, 12 Mar 2007 15:28:46 +0100 From: Pawel Jakub Dawidek To: Dag-Erling Sm?rgrav Message-ID: <20070312142846.GA3747@garage.freebsd.pl> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <86ps7evniu.fsf@dwp.des.no> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@FreeBSD.org, freebsd-geom@freebsd.org, Barry Pederson Subject: Re: zfs_20070303.patch on current X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 14:30:19 -0000 --/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 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-- From owner-freebsd-geom@FreeBSD.ORG Mon Mar 12 14:42:18 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C64EE16A402; Mon, 12 Mar 2007 14:42:18 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 7C49A13C459; Mon, 12 Mar 2007 14:42:18 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id A8EFA208C; Mon, 12 Mar 2007 15:42:11 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 9400D2089; Mon, 12 Mar 2007 15:42:11 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 1001) id 11D6FB88E; Mon, 12 Mar 2007 15:42:11 +0100 (CET) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Pawel Jakub Dawidek 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> <20070312142846.GA3747@garage.freebsd.pl> Date: Mon, 12 Mar 2007 15:42:11 +0100 In-Reply-To: <20070312142846.GA3747@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Mon, 12 Mar 2007 15:28:46 +0100") Message-ID: <86ejnur0ak.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@FreeBSD.org, freebsd-geom@freebsd.org, Barry Pederson Subject: Re: zfs_20070303.patch on current X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2007 14:42:18 -0000 Pawel Jakub Dawidek writes: > We don't have to mount /boot to read from it. The loader reads directly > from 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). Yeah, but it makes 'make installkernel' a bit non-obvious. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Tue Mar 13 15:50:11 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD75016A400; Tue, 13 Mar 2007 15:50:11 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 678CF13C459; Tue, 13 Mar 2007 15:50:11 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 6660545696; Tue, 13 Mar 2007 16:50:09 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id BA4F748803; Tue, 13 Mar 2007 16:49:53 +0100 (CET) Date: Tue, 13 Mar 2007 16:49:53 +0100 From: Pawel Jakub Dawidek To: Dag-Erling Sm?rgrav Message-ID: <20070313154953.GA3108@garage.freebsd.pl> 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> <20070312142846.GA3747@garage.freebsd.pl> <86ejnur0ak.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: <86ejnur0ak.fsf@dwp.des.no> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@FreeBSD.org, freebsd-geom@freebsd.org Subject: Re: zfs_20070303.patch on current X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 15:50:12 -0000 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 12, 2007 at 03:42:11PM +0100, Dag-Erling Sm?rgrav wrote: > Pawel Jakub Dawidek writes: > > We don't have to mount /boot to read from it. The loader reads directly > > from 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). >=20 > Yeah, but it makes 'make installkernel' a bit non-obvious. You can still always mount /boot/ from /etc/fstab, I think... --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF9sghForvXbEpPzQRAgMUAJ4lWLHWI1kvX4qr+gSgLMZuMOJf4wCgmYNL COqD/3LXaw4tnI0jyrXmSPw= =cyzv -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1-- From owner-freebsd-geom@FreeBSD.ORG Tue Mar 13 15:57:15 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1250516A401; Tue, 13 Mar 2007 15:57:15 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id B3CF213C4B8; Tue, 13 Mar 2007 15:57:14 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id D74A2208C; Tue, 13 Mar 2007 16:57:07 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id C58AD2087; Tue, 13 Mar 2007 16:57:07 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 1001) id 9C140B88E; Tue, 13 Mar 2007 16:57:07 +0100 (CET) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Pawel Jakub Dawidek 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> <20070312142846.GA3747@garage.freebsd.pl> <86ejnur0ak.fsf@dwp.des.no> <20070313154953.GA3108@garage.freebsd.pl> Date: Tue, 13 Mar 2007 16:57:07 +0100 In-Reply-To: <20070313154953.GA3108@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Tue, 13 Mar 2007 16:49:53 +0100") Message-ID: <86k5xl5e7g.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@FreeBSD.org, freebsd-geom@freebsd.org Subject: Re: zfs_20070303.patch on current X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 15:57:15 -0000 Pawel Jakub Dawidek writes: > On Mon, Mar 12, 2007 at 03:42:11PM +0100, Dag-Erling Sm?rgrav wrote: > > Pawel Jakub Dawidek writes: > > > We don't have to mount /boot to read from it. The loader reads direct= ly > > > from boot partition, so bascially we could make /dev/ad0s1a a small U= FS > > > 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). > > Yeah, but it makes 'make installkernel' a bit non-obvious. > You can still always mount /boot/ from /etc/fstab, I think... Your boot filesystem needs to have roughly the following layout: /boot.config /boot/beastie.4th /boot/device.hints /boot/frames.4th /boot/kernel/kernel /boot/kernel/zfs.ko /boot/loader /boot/loader.4th /boot/loader.conf /boot/loader.rc /boot/screen.4th /boot/support.4th /etc/fstab You can't mount that somewhere and have it "just work" - you'll need to mount it somewhere out of the way and have symlinks in your root directory. Not very convenient. Easier to just use UFS on your root filesystem, and use ZFS where it can make a difference (/var, /usr/local, /home etc) Your average root filesystem is small and fairly quiet, so the chances of something going wrong are low and it only takes an instant to fsck. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Tue Mar 13 16:11:08 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6677D16A400; Tue, 13 Mar 2007 16:11:08 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id D936513C465; Tue, 13 Mar 2007 16:11:07 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 7BDBD48801; Tue, 13 Mar 2007 17:11:06 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 3D2F7456AB; Tue, 13 Mar 2007 17:10:50 +0100 (CET) Date: Tue, 13 Mar 2007 17:10:49 +0100 From: Pawel Jakub Dawidek To: Dag-Erling Sm?rgrav Message-ID: <20070313161049.GB3108@garage.freebsd.pl> References: <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> <20070312142846.GA3747@garage.freebsd.pl> <86ejnur0ak.fsf@dwp.des.no> <20070313154953.GA3108@garage.freebsd.pl> <86k5xl5e7g.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mojUlQ0s9EVzWg2t" Content-Disposition: inline In-Reply-To: <86k5xl5e7g.fsf@dwp.des.no> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@FreeBSD.org, freebsd-geom@freebsd.org Subject: Re: zfs_20070303.patch on current X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 16:11:08 -0000 --mojUlQ0s9EVzWg2t Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 13, 2007 at 04:57:07PM +0100, Dag-Erling Sm?rgrav wrote: > Pawel Jakub Dawidek writes: > > On Mon, Mar 12, 2007 at 03:42:11PM +0100, Dag-Erling Sm?rgrav wrote: > > > Pawel Jakub Dawidek writes: > > > > We don't have to mount /boot to read from it. The loader reads dire= ctly > > > > from 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). > > > Yeah, but it makes 'make installkernel' a bit non-obvious. > > You can still always mount /boot/ from /etc/fstab, I think... >=20 > Your boot filesystem needs to have roughly the following layout: >=20 > /boot.config > /boot/beastie.4th > /boot/device.hints > /boot/frames.4th > /boot/kernel/kernel > /boot/kernel/zfs.ko > /boot/loader > /boot/loader.4th > /boot/loader.conf > /boot/loader.rc > /boot/screen.4th > /boot/support.4th > /etc/fstab >=20 > You can't mount that somewhere and have it "just work" - you'll need > to mount it somewhere out of the way and have symlinks in your root > directory. Not very convenient. Easier to just use UFS on your root > filesystem, and use ZFS where it can make a difference (/var, > /usr/local, /home etc) >=20 > Your average root filesystem is small and fairly quiet, so the chances > of something going wrong are low and it only takes an instant to fsck. Actually this is what I suggest to do when someone is asking about booting from ZFS, but just wanted to clearify that it should be possible to have root ZFS file system, maybe not nice, but possible. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --mojUlQ0s9EVzWg2t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF9s0JForvXbEpPzQRAm0lAJ4uStO0fTN5tcoh5IgUG5zpaFEh0wCdFDEP XdZYKiduMsNoj6AHUVxo74Q= =tbBD -----END PGP SIGNATURE----- --mojUlQ0s9EVzWg2t-- From owner-freebsd-geom@FreeBSD.ORG Tue Mar 13 16:18:01 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7282A16A402; Tue, 13 Mar 2007 16:18:01 +0000 (UTC) (envelope-from bp@barryp.org) Received: from eden.barryp.org (host-42-60-230-24.midco.net [24.230.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 396BD13C45B; Tue, 13 Mar 2007 16:18:01 +0000 (UTC) (envelope-from bp@barryp.org) Received: from geo.med.und.nodak.edu ([134.129.166.11]) by eden.barryp.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HR9hH-000PVe-4c; Tue, 13 Mar 2007 11:17:59 -0500 Message-ID: <45F6CEB5.7030305@barryp.org> Date: Tue, 13 Mar 2007 11:17:57 -0500 From: Barry Pederson User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: Pawel Jakub Dawidek 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> <20070312142846.GA3747@garage.freebsd.pl> In-Reply-To: <20070312142846.GA3747@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org, Dag-Erling Sm?rgrav , freebsd-geom@freebsd.org Subject: Re: zfs_20070303.patch on current X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 16:18:01 -0000 Pawel Jakub Dawidek wrote: > > We don't have to mount /boot/ to read from it. The loader reads directly > from 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). From what I've been able to make out of the loader source, it seems like /etc/fstab is only read if the 'vfs.root.mountfrom' variable is not already set - so that may be one less thing to worry about. Maybe having a loader.conf with zfs_load="YES" vfs.root.mountfrom="zfs:/dev/???" although maybe you also need some environment variable to tell the zfs module to forcibly import some pool? zfs.zpool.import="tank"? After that, maybe /etc/fstab (within a ZFS filesystem), could mount /dev/ad0s1a as something like /bootpart and then have a symlink setup /boot -> /bootpart/boot so 'make installworld' would be fairly normal. Barry