From nobody Sat Apr 22 15:25:34 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q3ZwT0h03z46sw2 for ; Sat, 22 Apr 2023 15:25:45 +0000 (UTC) (envelope-from robert@webtent.org) Received: from mail.webtent.org (ns2.webtent.net [144.129.73.34]) by mx1.freebsd.org (Postfix) with ESMTP id 4Q3ZwR53f4z3xCm for ; Sat, 22 Apr 2023 15:25:43 +0000 (UTC) (envelope-from robert@webtent.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of robert@webtent.org designates 144.129.73.34 as permitted sender) smtp.mailfrom=robert@webtent.org; dmarc=pass (policy=reject) header.from=webtent.org Received: from [192.168.1.50] (unknown [192.168.1.50]) (Authenticated sender: robert@mail.webtent.org) by mail.webtent.org (Postfix) with ESMTPSA id C1A164E6014 for ; Sat, 22 Apr 2023 11:25:36 -0400 (EDT) To: FreeBSD From: Robert Fitzpatrick Subject: ZFS on root with dedupe Message-ID: Date: Sat, 22 Apr 2023 11:25:34 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-1.19 / 15.00]; NEURAL_SPAM_LONG(0.99)[0.991]; NEURAL_HAM_SHORT(-0.87)[-0.869]; NEURAL_HAM_MEDIUM(-0.61)[-0.613]; DMARC_POLICY_ALLOW(-0.50)[webtent.org,reject]; R_SPF_ALLOW(-0.20)[+a]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:33363, ipnet:144.129.64.0/18, country:US]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[robert]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4Q3ZwR53f4z3xCm X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N Hi, I installed FreeBSD 13.1 server with ZFS raid 10 to serve a PostgreSQL database, LDAP and DNS. I never noticed until today, I installed some more memory and was checking status after the starting up. DEDUP appears enabled, is that by default? I certainly did not enable. Does this mean it is in fact enabled and what are the repercussions of disabling now? > root@db1:~ # zpool list > NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT > zdb1 262G 26.1G 236G - - 7% 9% 1.00x ONLINE - > root@db1:~ # zpool status > pool: zdb1 > state: ONLINE > scan: scrub repaired 0B in 00:04:52 with 0 errors on Thu Apr 13 10:46:22 2023 > config: > > NAME STATE READ WRITE CKSUM > zdb1 ONLINE 0 0 0 > mirror-0 ONLINE 0 0 0 > ada0p3 ONLINE 0 0 0 > ada1p3 ONLINE 0 0 0 > mirror-1 ONLINE 0 0 0 > ada2p3 ONLINE 0 0 0 > ada3p3 ONLINE 0 0 0 > root@db1:~ # zfs list > NAME USED AVAIL REFER MOUNTPOINT > zdb1 26.0G 228G 96K /zdb1 > zdb1/ROOT 24.8G 228G 96K none > zdb1/ROOT/default 24.8G 228G 14.6G / > zdb1/tmp 1.12M 228G 200K /tmp > zdb1/usr 1.17G 228G 96K /usr > zdb1/usr/home 1.31M 228G 1.30M /usr/home > zdb1/usr/ports 1.17G 228G 1.17G /usr/ports > zdb1/usr/src 96K 228G 96K /usr/src > zdb1/var 5.35M 228G 96K /var > zdb1/var/audit 96K 228G 96K /var/audit > zdb1/var/crash 96K 228G 96K /var/crash > zdb1/var/log 4.78M 228G 660K /var/log > zdb1/var/mail 200K 228G 144K /var/mail > zdb1/var/tmp -- Robert