From owner-freebsd-fs@FreeBSD.ORG Thu Apr 26 17:08:53 2007 Return-Path: X-Original-To: freebsd-fs@FreeBSD.org Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C9AB16A408 for ; Thu, 26 Apr 2007 17:08:53 +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 EF66F13C44C for ; Thu, 26 Apr 2007 17:08:52 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 7F9CA45CD9; Thu, 26 Apr 2007 19:08:51 +0200 (CEST) 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 2007245696; Thu, 26 Apr 2007 19:08:47 +0200 (CEST) Date: Thu, 26 Apr 2007 19:08:24 +0200 From: Pawel Jakub Dawidek To: Barry Pederson Message-ID: <20070426170824.GO41670@garage.freebsd.pl> References: <462F65DB.5010305@barryp.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xSu31lw3TgkWXnjh" Content-Disposition: inline In-Reply-To: <462F65DB.5010305@barryp.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=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@FreeBSD.org Subject: Re: ZFS: inherited mountpoints with root filesystem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 17:08:53 -0000 --xSu31lw3TgkWXnjh Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 25, 2007 at 09:29:47AM -0500, Barry Pederson wrote: > I've been fooling with using ZFS for the root filesystem, and a CompactFl= ash device to hold a UFS /boot - It seems to work very well, CF devices a= re big enough that you=20 > can put a pretty full install of FreeBSD on it which is nice for recovery= /maintenance work on the real disk. >=20 > One problem I've noticed though is that there's a difference between the = mountpoint of a pool's root filesystem that FreeBSD sees and what ZFS sees.= For example, the=20 > "mount" command shows" >=20 > tank on / (zfs, local) >=20 > but "zfs list" shows: >=20 > NAME USED AVAIL REFER MOUNTPOINT > tank 1.98G 16.4G 16.7M /tank >=20 > I'm finding that having the "tank" filesystem be "/" and "/tank" simultan= eously makes it awkward when creating sub-filesystems, say for example "tan= k/usr" and "tank/var". >=20 > Currently, they inherit the "/tank" mountpoint, and show up as "/tank/usr= " and "/tank/var" - where I'd like them to inherit "/" and end up as "/usr"= and "/var". >=20 > For now, I've worked around this with symlinks in the "tank" filesystem l= ike: usr -> tank/usr , but the problem is that when mounting the CompactFla= sh as root and importing=20 > "tank", it complains that it can't mount "tank/usr" (because the symlink = is in the way). >=20 > I've also tried explicity setting the mountpoint for "tank/usr" to "/usr"= , which is fine except again for when the CF is used as root, which would t= hen conflict with the CF=20 > filesystem's "/usr" >=20 > Is this double-mountpoint setup the way things should be? If so, is/can = there be an option to have the ZFS-mountpoint for a root-mounted filesystem= also be "/", so that=20 > inherited mountpoints for sub-filesystems are under "/" instead of "/"? For file systems that are mounted not via 'zfs mount -a' (eg. they are mounted by hand or via /etc/fstab), you should set mountpoint property to 'legacy'. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --xSu31lw3TgkWXnjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGMNyIForvXbEpPzQRAlwyAJwMS5XA/8pU1V3X49YO8KHsSsu+rgCgtQT6 YIZJsl5WtuCSnoEOSbH3GYI= =Rm7V -----END PGP SIGNATURE----- --xSu31lw3TgkWXnjh--