From owner-freebsd-questions@freebsd.org Tue Sep 7 23:01:11 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 E527866EBCF for ; Tue, 7 Sep 2021 23:01:11 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (mail.geeks.org [IPv6:2001:4980:3333:1::1]) (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 4H413C0SQLz3hDY for ; Tue, 7 Sep 2021 23:01:11 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (localhost [127.0.0.1]) by after-clamsmtpd.geeks.org (Postfix) with ESMTP id 01604B149 for ; Tue, 7 Sep 2021 18:01:04 -0500 (CDT) Received: by mail.geeks.org (Postfix, from userid 1003) id E6758B148; Tue, 7 Sep 2021 18:01:03 -0500 (CDT) Date: Tue, 7 Sep 2021 18:01:03 -0500 From: Doug McIntyre To: freebsd-questions@freebsd.org Subject: Re: zfs newbie Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 4H413C0SQLz3hDY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of merlyn@geeks.org designates 2001:4980:3333:1::1 as permitted sender) smtp.mailfrom=merlyn@geeks.org X-Spamd-Result: default: False [-3.30 / 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_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[geeks.org]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7753, ipnet:2001:4980::/32, country:US]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] 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: Tue, 07 Sep 2021 23:01:12 -0000 On Tue, Sep 07, 2021 at 06:17:45PM -0400, 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 .. > From a sysadmin view I rather like the multiple datasets. Are there advantages > to one over the other? One huge one I use all the time... You can set quotas per dataset. For me, /var/log gets 4G (typically). Depending on the usecase, /tmp and /var/tmp may get quotas, but I wouldn't go blindly do that. Other things you can do is if you carve your database storage out of zroot, then you can set tuned ZFS parameters for your database file system areas. (ie. blocksize matching, compression/dedup setup, etc).