From owner-freebsd-fs@FreeBSD.ORG Wed Apr 25 14:29:50 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 AF0FA16A400 for ; Wed, 25 Apr 2007 14:29:50 +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 8D87213C45B for ; Wed, 25 Apr 2007 14:29:50 +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 1HgiVB-0007kF-MJ for freebsd-fs@FreeBSD.org; Wed, 25 Apr 2007 09:29:49 -0500 Message-ID: <462F65DB.5010305@barryp.org> Date: Wed, 25 Apr 2007 09:29:47 -0500 From: Barry Pederson User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: freebsd-fs@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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: Wed, 25 Apr 2007 14:29:50 -0000 I've been fooling with using ZFS for the root filesystem, and a CompactFlash device to hold a UFS /boot - It seems to work very well, CF devices are big enough that you can put a pretty full install of FreeBSD on it which is nice for recovery/maintenance work on the real disk. 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 "mount" command shows" tank on / (zfs, local) but "zfs list" shows: NAME USED AVAIL REFER MOUNTPOINT tank 1.98G 16.4G 16.7M /tank I'm finding that having the "tank" filesystem be "/" and "/tank" simultaneously makes it awkward when creating sub-filesystems, say for example "tank/usr" and "tank/var". 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". For now, I've worked around this with symlinks in the "tank" filesystem like: usr -> tank/usr , but the problem is that when mounting the CompactFlash as root and importing "tank", it complains that it can't mount "tank/usr" (because the symlink is in the way). 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 then conflict with the CF filesystem's "/usr" 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 inherited mountpoints for sub-filesystems are under "/" instead of "/"? Barry