From owner-freebsd-questions@FreeBSD.ORG Sun Nov 9 14:34:54 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E0C0FD36; Sun, 9 Nov 2014 14:34:54 +0000 (UTC) Received: from blue.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5F5B1EDA; Sun, 9 Nov 2014 14:34:54 +0000 (UTC) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by fileserver.home.qeng-ho.org (8.14.7/8.14.5) with ESMTP id sA9EYjfe013170; Sun, 9 Nov 2014 14:34:45 GMT (envelope-from freebsd@qeng-ho.org) Message-ID: <545F7B85.1050900@qeng-ho.org> Date: Sun, 09 Nov 2014 14:34:45 +0000 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Matthew Seaman , freebsd-questions@freebsd.org Subject: Re: Where do user files go these days? References: <545ED36B.8040207@gmail.com> <20141109035011.a3fea3b3.freebsd@edvax.de> <545EF01A.8020804@gmail.com> <20141109064453.2451a5ab.freebsd@edvax.de> <545F5AD6.6000404@FreeBSD.org> In-Reply-To: <545F5AD6.6000404@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 09 Nov 2014 14:34:55 -0000 On 09/11/2014 12:15, Matthew Seaman wrote: > On 09/11/2014 05:44, Polytropon wrote: >>> Thanks. In every system I can remember, /home was a separate file >>>> system (when it existed at all), and I didn't see /usr/home in hier(7), >>>> so I wondered. > >> Correct; "man hier" doesn't mention it because it's >> a "user thing" mostly, as the OS and system services >> do not use it (or require it to function properly). >> Sharing /usr with home as one partition is (in most >> cases) less critical than putting all "functional >> subtrees" into one and the same partition, so some >> disk-filling "runaway process" could stop /tmp, /var >> and even / from working properly... > > I do wonder about the layout generated for home directories by the > installer nowadays. It is the case that everything expects user home > directories to be in /home/username -- except for the layout in the > installer. > > Now, moving /home into /usr/home and making a compatibility symlink > might make sense for some partitioning schemes with UFS, but it > certainly doesn't when installing with ZFS or with an all-in-one style > UFS partition. It's not like we're constrained in the number of > partitions we can put on one drive in anything like the same way in > these days of GPT either. > > In fact, having a zroot/usr/home makes managing boot environments more > complex than it needs to be -- you'ld want /usr/bin and /usr/lib and > almost certainly /usr/local to be part of a BE, but not /usr/home. > Having a zroot/home mounted as /home makes so much more sense. > > Don't get me started though -- there are worse problems with managing > what should be in a B.E. and what should not, and trying to reconcile > all that with hier(7). Much of /var should be part of a B.E., but not > /var/mail or /var/log or /var/db/mysql. Similarly /usr/local/pgsql > should be outside a B.E. This leads to all sorts of arcane trickery > like creating a zroot/var ZFS with canmount=off,mountpoint=/var to > overlay zroot/ROOT/BENAME/var with canmount=on,mountpoint=/var all so > you can mount zroot/var/mail from outside the boot environment. I'm glad to find it's not just me who wondered about /var and boot environments. I've got /var/tmp, /var/crash and /var/db/entropy outside the b.e. as well, although with hindsight I'm not sure about crash.