From owner-freebsd-questions@FreeBSD.ORG Fri Jan 16 09:50:20 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB64316A4CE for ; Fri, 16 Jan 2004 09:50:20 -0800 (PST) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7897943D48 for ; Fri, 16 Jan 2004 09:50:17 -0800 (PST) (envelope-from freebsd-questions@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AhY6p-0003kI-00 for ; Fri, 16 Jan 2004 18:50:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AhY6m-0003kA-00 for ; Fri, 16 Jan 2004 18:50:12 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AhY6m-0007NT-00 for ; Fri, 16 Jan 2004 18:50:12 +0100 From: Jesse Guardiani Date: Fri, 16 Jan 2004 12:50:11 -0500 Organization: WingNET Lines: 78 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org User-Agent: KNode/0.7.2 X-Mail-Copies-To: never Sender: news Subject: Level 9 dump size calculation? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jesse@wingnet.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 17:50:20 -0000 Howdy list, I've got a machine (4.6.1-RELEASE-p10) doing level 9 dumps over SSH to a tape drive on a remote machine over a T1. The machine being backed up looks like this: # df -h Filesystem Size Used Avail Capacity Mounted on /dev/aacd0s1a 300M 52M 225M 19% / /dev/aacd0s1h 2.5G 11M 2.3G 0% /tmp /dev/aacd0s1e 12G 5.3G 5.4G 49% /usr /dev/aacd0s1f 5.8G 1.1G 4.2G 21% /usr/home /dev/aacd0s1g 12G 1.1G 9.6G 10% /var procfs 4.0K 4.0K 0B 100% /proc And my dump command looks like this: ssh "$serverName" -nTc blowfish "/sbin/dump -0us 1000000 -f - /dev/aacd0s1a | gzip -c -3" | gunzip -cd -3 > "$tapeDriveDevice" (machine with tape drive connects to machine to be backed up via SSH, starts the dump on the remote machine [with dump output piping through gzip and then to stdout], decompresses output after it has traveled over the T1 and finally writes it to the tape drive device.) I execute one dump command for /,/usr,/usr/home, and /var. And I get emailed output that looks like this: DUMP: Date of this level 0 dump: Tue Jan 13 06:00:01 2004 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/aacd0s1a (/) to standard output DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 54069 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: DUMP: 54091 tape blocks DUMP: finished in 130 seconds, throughput 416 KBytes/sec DUMP: level 0 dump on Tue Jan 13 06:00:01 2004 DUMP: DUMP IS DONE Granted, the above commands and output are from a level 0 dump, but my level 9s are performed in exactly the same manner. Here's my question: How do I determine how large the dump output is? The dump man page states that dump uses a blocksize of 10k by default. 54091 tape block * 10k/block = 540910k 540910k/1024 = 528.23M Surely dump isn't expanding my 52M in / to 528.23M!! However: 54091k/1024 = 52.82M (which is very close to how much used space I actually have in /) Is dump incorrectly labeling 54091 as the number of tape blocks when it should instead be labeling 54091 as the number of kilobytes? -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net