From owner-freebsd-current@FreeBSD.ORG Sat Apr 14 10:23:36 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF3F316A400; Sat, 14 Apr 2007 10:23:36 +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 C1D1C13C45E; Sat, 14 Apr 2007 10:23:35 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 490084569A; Sat, 14 Apr 2007 12:23:34 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id E359D45684; Sat, 14 Apr 2007 12:23:27 +0200 (CEST) Date: Sat, 14 Apr 2007 12:23:13 +0200 From: Pawel Jakub Dawidek To: Stefan Esser Message-ID: <20070414102313.GC10527@garage.freebsd.pl> References: <20070409011723.GB74547@garage.freebsd.pl> <20070409094319.GB76673@garage.freebsd.pl> <46209D21.2010704@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eHhjakXzOLJAF9wJ" Content-Disposition: inline In-Reply-To: <46209D21.2010704@FreeBSD.org> 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-current@FreeBSD.org Subject: Re: ZFS: amd64, devd, root file system. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2007 10:23:36 -0000 --eHhjakXzOLJAF9wJ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 14, 2007 at 11:21:37AM +0200, Stefan Esser wrote: > Pawel Jakub Dawidek wrote: > > On Mon, Apr 09, 2007 at 03:17:23AM +0200, Pawel Jakub Dawidek wrote: >=20 > Hi Pawel, >=20 > great to see ZFS support committed to -current! >=20 > It is amazingly simple to get a test setup going and it worked fine > in my initial simple test cases. But now I've run into problems that > probably are not technical but caused by a lack of understanding ... This is not the first report that it doesn't work as it should. One was that /boot/defaults/loader.conf wasn't fresh enough, and there were no: zpool_cache_load=3D"YES" zpool_cache_type=3D"/boot/zfs/zpool.cache" zpool_cache_name=3D"/boot/zfs/zpool.cache" lines at the end. Can you verify you have them? Can you send me log of full boot process? > Hmmm, there are a few points that I do not fully understand: >=20 > It seems that ZFS "legacy" mounts are not supported under FreeBSD, > is this correct? (E.g. if I enter "zfs set mountpoint=3Dlegacy test" > then "test" can not be mounted with "zfs mount test" and there is > no other way to mount it since we do not have a "mount_zfs", yet?) They are supported. "legacy" means that you no longer use 'zfs mount' to mount them, but simply mount(8) (or /etc/fstab). There is no mount_zfs and there won't be one, because we are moving away from such commands. You should use 'mount -t zfs' instead. > I tried to set the mountpoint of my to-be root file system to "/" > with "zfs set mountpoint=3D/ test" but I'm under the impression that > this does not really work. Setting it to "//" does appear to have > the desired effect, though, but may lead to a panic during shutdown. > (Sorry, I've got no core-dumps but could try producing one later > if there is interest. The panic is because of a ref count becoming > negative but I did not write down the message.) The mount point can be set to whatever you like, but you can still mount it using different mount point by hand (via mount(8)). The most proper way is probably to set mountpoint to "legacy". > I decided to have multiple zfs file systems (test/var, test/usr ...) > and can see them with zfs list. What is the correct way to get them > mounted automatically? (Assuming I get the problem to have the kernel > automatically mount the ZFS root solved ...) zfs_enable=3D"YES" in your /etc/rc.conf. > Do I need fstab entries for for ZFS file systems (e.g. "test/usr") > or does ZFS mount them automatically when the pool "test" is mounted? They are mount via rc.d/zfs script. > Or do I need a fstab line for each of them? > What's supposed to go into /etc/zfs, besides the ZFS exports file? For now only exports file. zpool.cache use to be there as well, but we need it in /boot/zfs/ to be able to have root-on-ZFS. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --eHhjakXzOLJAF9wJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGIKuRForvXbEpPzQRArfeAJwMrRmHTFDd2H76tppk6cdrqRWwigCgozqN Lsf351DGH23timvBwQ+Ikas= =duuc -----END PGP SIGNATURE----- --eHhjakXzOLJAF9wJ--