From owner-freebsd-questions@freebsd.org Tue Jul 14 21:05:02 2020 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 0025936F475 for ; Tue, 14 Jul 2020 21:05:02 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5tM02Gntz4f10 for ; Tue, 14 Jul 2020 21:04:59 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id 06EL4mX0094465 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Tue, 14 Jul 2020 23:04:50 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu To: freebsd-questions@freebsd.org From: Andrea Venturoli Subject: UFS dump bigger than expected Message-ID: Date: Tue, 14 Jul 2020 23:04:47 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B5tM02Gntz4f10 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=netfence.it; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 2.44.121.52 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-3.48 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:2.44.121.52]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.96)[-0.962]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_SHORT(-0.73)[-0.732]; DMARC_POLICY_ALLOW(-0.50)[netfence.it,none]; NEURAL_HAM_MEDIUM(-0.98)[-0.984]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:30722, ipnet:2.44.0.0/16, country:IT]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 21:05:02 -0000 Hello. I've got a problem with an UFS filesystem: dump produces a file which is bigger than I expect. # freebsd-version -ku 11.3-RELEASE-p10 11.3-RELEASE-p10 # uname -m amd64 # df -h -t ufs|grep usr /dev/mirror/gm0d 242G 199G 24G 89% /usr # cd /usr/ # du -x -d 0 -h 182G . # du -x -d 0 -n -h 9.2G . # /sbin/dump -0 -a -f /data/dumps/usr.dump -L -h 0 -u /usr DUMP: Date of this level 0 dump: Tue Jul 14 20:00:14 2020 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/mirror/gm0d (/usr) to /data/dumps/usr.dump DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 27584621 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: 4.18% done, finished in 1:54 at Tue Jul 14 22:02:57 2020 DUMP: 9.36% done, finished in 1:36 at Tue Jul 14 21:50:15 2020 DUMP: 16.19% done, finished in 1:17 at Tue Jul 14 21:36:01 2020 DUMP: 27.59% done, finished in 0:52 at Tue Jul 14 21:15:51 2020 DUMP: 43.59% done, finished in 0:32 at Tue Jul 14 21:00:43 2020 DUMP: 59.13% done, finished in 0:20 at Tue Jul 14 20:54:06 2020 DUMP: 68.72% done, finished in 0:15 at Tue Jul 14 20:54:17 2020 DUMP: 86.52% done, finished in 0:06 at Tue Jul 14 20:49:35 2020 DUMP: 96.40% done, finished in 0:01 at Tue Jul 14 20:50:02 2020 DUMP: DUMP: 27589206 tape blocks on 1 volume DUMP: finished in 2797 seconds, throughput 9863 KBytes/sec DUMP: level 0 dump on Tue Jul 14 20:00:14 2020 DUMP: Closing /data/dumps/usr.dump DUMP: DUMP IS DONE #ls -lh /data/dumps total 27596000 -rw-r--r-- 1 root wheel 26G Jul 14 20:49 usr.dump So, resuming, there's 182GB or 199GB of data here, but only 9.2GB of this should be dumped; the rest has the "nodump" flags active. However I end up with 26GB of dump! This machine has been there for something like five years and dump has always worked properly. The only thing I came up with, while searching the web, is:https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=111782 but this is a little different. Any hint? bye & Thanks av.