From owner-freebsd-questions@freebsd.org Wed Sep 8 15:12:00 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 74CEF67C8D9 for ; Wed, 8 Sep 2021 15:12:00 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from mailout.qeng-ho.org (mailout.qeng-ho.org [217.155.128.244]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4H4QbM3qNKz3LNF for ; Wed, 8 Sep 2021 15:11:59 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (unknown [IPv6:2a02:8010:64c9:1::2]) by mailout.qeng-ho.org (Postfix) with ESMTP id 11ADF98DFD; Wed, 8 Sep 2021 16:11:52 +0100 (BST) Subject: Re: zfs newbie To: Doug Denault , freebsd-questions@FreeBSD.ORG References: From: Arthur Chance Message-ID: Date: Wed, 8 Sep 2021 16:11:50 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4H4QbM3qNKz3LNF X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@qeng-ho.org designates 217.155.128.244 as permitted sender) smtp.mailfrom=freebsd@qeng-ho.org X-Spamd-Result: default: False [-3.29 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.155.128.240/29]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[qeng-ho.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.989]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:13037, ipnet:217.155.0.0/16, country:GB]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2021 15:12:00 -0000 On 07/09/2021 23:17, Doug Denault wrote: > > Following the default 12.2 zfs install I got one pool (zroot) and a > dataset for each of the traditional mount points. So zfs list shows: > > NAME                 USED  AVAIL  REFER  MOUNTPOINT > zroot                279G  6.75T    88K  /zroot > zroot/ROOT          1.74G  6.75T    88K  none > zroot/ROOT/default  1.74G  6.75T  1.74G  / > zroot/tmp            176K  6.75T   176K  /tmp > zroot/usr            277G  6.75T    88K  /usr > zroot/usr/home       276G  6.75T   276G  /usr/home > zroot/usr/ports       88K  6.75T    88K  /usr/ports > zroot/usr/src        670M  6.75T   670M  /usr/src > zroot/var           47.5M  6.75T    88K  /var > zroot/var/audit       88K  6.75T    88K  /var/audit > zroot/var/crash       88K  6.75T    88K  /var/crash > zroot/var/log        820K  6.75T   820K  /var/log > zroot/var/mail      46.3M  6.75T  46.3M  /var/mail > zroot/var/tmp         88K  6.75T    88K  /var/tmp > > I had consultant configure another server for us. He set up the disk > array with one dataset. so zfs list on this system give: > > NAME    USED  AVAIL  REFER  MOUNTPOINT > zroot  2.65G  13.2T  2.62G  legacy > > From a sysadmin view I rather like the multiple datasets. Are there > advantages to one over the other? Note the zroot/ROOT/default tree. This lets you use boot environments. If you're not familiar with them take a look at bectl(8) and https://wiki.freebsd.org/BootEnvironments [bectl is a base system command very similar to the earlier beadm port that you may see referenced in old documentation.] -- Nothing teaches one not to try to stamp out burning thermite quite like real-life experience. — James Davis Nicoll