From owner-freebsd-fs@FreeBSD.ORG Wed May 2 12:28:25 2012 Return-Path: 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 6EB181065674 for ; Wed, 2 May 2012 12:28:25 +0000 (UTC) (envelope-from martin@lispworks.com) Received: from lwfs1-cam.cam.lispworks.com (mail.lispworks.com [193.34.186.230]) by mx1.freebsd.org (Postfix) with ESMTP id F38BE8FC17 for ; Wed, 2 May 2012 12:28:24 +0000 (UTC) Received: from higson.cam.lispworks.com (higson [192.168.1.7]) by lwfs1-cam.cam.lispworks.com (8.14.3/8.14.3) with ESMTP id q42CHa6j070594; Wed, 2 May 2012 13:17:36 +0100 (BST) (envelope-from martin@lispworks.com) Received: from higson.cam.lispworks.com (localhost.localdomain [127.0.0.1]) by higson.cam.lispworks.com (8.14.4) id q42CHast005068; Wed, 2 May 2012 13:17:36 +0100 Received: (from martin@localhost) by higson.cam.lispworks.com (8.14.4/8.14.4/Submit) id q42CHaPl005064; Wed, 2 May 2012 13:17:36 +0100 Date: Wed, 2 May 2012 13:17:36 +0100 Message-Id: <201205021217.q42CHaPl005064@higson.cam.lispworks.com> From: Martin Simmons To: freebsd-fs@freebsd.org In-reply-to: <4FA0E73E.3030301@FreeBSD.org> (message from Matthew Seaman on Wed, 02 May 2012 08:50:22 +0100) References: <20120430210711.GA50280@server.vk2pj.dyndns.org> <4F9F8888.3030104@FreeBSD.org> <20120502052811.GA71211@server.vk2pj.dyndns.org> <4FA0E73E.3030301@FreeBSD.org> Subject: Re: ZFS with multiple boot/root pools 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, 02 May 2012 12:28:25 -0000 >>>>> On Wed, 02 May 2012 08:50:22 +0100, Matthew Seaman said: > > On 02/05/2012 06:28, Peter Jeremy wrote: > > >> >http://www.infracaninophile.co.uk/articles/install-on-zfs/ but there are > >> >several other treatments around. > > > I've had a look through those notes and you are still specifying > > mountpoints for (eg) zroot/ROOT/9.0-RELEASE/usr - which implies you > > wind up with multiple /usr's mounted. > > Yes. That's deliberate, and /usr is treated as a special case, because > I want to keep instances /usr/src and /usr/obj paired up with the BE > built from them, and it makes things a lot easier if I can mount them > early at /usr/src or /usr/obj in order to do the build. It looks like /usr itself isn't a problem because it is never mounted (canmount=off on zroot/ROOT/9.0-RELEASE/usr and zroot/usr), but multiple mounts will happen for /usr/src and /usr/obj. Do you change the mountpoint property of zroot/ROOT/*/usr on the inactive BE's to avoid that? BTW, there is a minor bug in the article (on 8.3 at least): "zpool export zroot" fails to unmount everything because the cwd is in /tmp/zroot/etc at that point. Adding "cd /" beforehand fixes it. __Martin