From owner-freebsd-questions@FreeBSD.ORG Mon Feb 23 14:36:48 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6AB714D0 for ; Mon, 23 Feb 2015 14:36:48 +0000 (UTC) Received: from mail-yh0-x22c.google.com (mail-yh0-x22c.google.com [IPv6:2607:f8b0:4002:c01::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EC2AC15 for ; Mon, 23 Feb 2015 14:36:48 +0000 (UTC) Received: by yhai57 with SMTP id i57so10353363yha.12 for ; Mon, 23 Feb 2015 06:36:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZQULgNTvZUmbDc0VXmrCogJPf2NmpA7tLen48PlIbfo=; b=CMBeR9wBZJQ06brScSDYOzd6X5rUdiposfdzDwpClI5Vdal+cbaTpalBlXnzWGpaNa LT+8c6jCQz98cG6/c4JaBS8l3FR5h6dnx6tNAQnt9BkLRWMc1iWkznYTzoseQK4MlEcn AvGZc84Vf9ZmkTQMPEeSUEK8raRHZ7VmXFR0AoLdM5P375iTZuHKvB80MvvdpDU2hSZ4 Q3yUcu67OhKV0Kb7LwqR//6t+hqWw27ScQA0tZ7XBgoQdQCGNNWrG11P6FXnFXJSLKuD CnCrA7iOnrWBrJ5FSHuazKJt/QiqE5fUeQZ44vUtsaHHY2dQdHBC0GJG3jLD8kDb1o8k wBUg== MIME-Version: 1.0 X-Received: by 10.170.188.10 with SMTP id f10mr11405718yke.22.1424702207068; Mon, 23 Feb 2015 06:36:47 -0800 (PST) Received: by 10.170.188.1 with HTTP; Mon, 23 Feb 2015 06:36:47 -0800 (PST) In-Reply-To: References: <54E01849.3020500@complete.org> Date: Mon, 23 Feb 2015 14:36:47 +0000 Message-ID: Subject: Re: 10.1 ZFS - why canmount=off for /usr and /var by default? From: krad To: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: John Goerzen , FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2015 14:36:48 -0000 It makes a degree of sense, however what are the properties most people set to inherit? Compression, atime, for me and I do that at the root dataset anyway, and sometimes dedup if its an ssd based pool. I still dont see why we set the mountpoint as this just confuses imho On 19 February 2015 at 15:49, Trond Endrest=C3=B8l < Trond.Endrestol@fagskolen.gjovik.no> wrote: > On Thu, 19 Feb 2015 12:06-0000, krad wrote: > > > It is a bit confusing, I have to ask why call it zroot/usr at all? I us= e > > /os/ for stuff like ports etc and then set the mountpoint. If we > must > > use usr in the name why not set the mountpoint to legacy as well, as it= s > > more clearly not used? > > Sorry for jumping in, but it's done simply to inherit the mountpoint. > > It has already been said, but here's a recap. > > Most of what you'll find in /usr belongs to the current BE. Datasets > create below zroot/usr, e.g. zroot/usr/local, magically appears as > /usr/foo, e.g. /usr/local. The same goes for zroot/var and /var. > > If you want to install FreeBSD with ZFS using some other train of > thought, then feel free to do so. > > I have my own set of scripts at > http://ximalas.info/~trond/create-zfs/canmount/, and they certainly > have their flaws, and maybe I even change these scripts in the future > as I move along and change my perspective on FreeBSD and ZFS. > > > On 15 February 2015 at 13:52, John Goerzen > wrote: > > > > > Ben Woods gmail.com> writes: > > > > > > > > > > > To quote Allan Jude when I posed this question to him: > > > > > > > > "The /usr dataset has 'canmount' set to off. It only exists so that > other > > > > datasets can be created under it. > > > > > > That makes sense. But it is misleading to have the mountpoint set to > /usr > > > and /var, isn't it? In a zfs list, it looks as if it's being used fo= r > /usr > > > and /var, when really as you say it's a container. > > > > > > I wonder - would there be a place I could submit a bug report to > suggest > > > that the mountpoint property be inherited at the default rather than > set > > > for > > > these two filesystems? > > > > > > > To use boot environments, you need to install the tool from the por= ts > > > tree: > > > > sysutils/beadm-devel > > > > > > Interesting. That looks quite nice. I need to read up a bit more on > it, > > > clearly, since it seems to be more than just a zfs clone and zpool se= t > > > bootfs that I was expecting. > > > > > > Thanks, > > > > > > John > > -- > +-------------------------------+------------------------------------+ > | Vennlig hilsen, | Best regards, | > | Trond Endrest=C3=B8l, | Trond Endrest=C3=B8l, = | > | IT-ansvarlig, | System administrator, | > | Fagskolen Innlandet, | Gj=C3=B8vik Technical College, Norway, = | > | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | > | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | > +-------------------------------+------------------------------------+