From owner-freebsd-questions@FreeBSD.ORG Mon Feb 3 07:44:14 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 88743D9 for ; Mon, 3 Feb 2014 07:44:14 +0000 (UTC) Received: from sh4-5.1blu.de (sh4-5.1blu.de [178.254.11.41]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4FF3D1822 for ; Mon, 3 Feb 2014 07:44:14 +0000 (UTC) Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.76) (envelope-from ) id 1WAECL-0003EI-Qz for freebsd-questions@freebsd.org; Mon, 03 Feb 2014 08:44:05 +0100 Date: Mon, 3 Feb 2014 08:44:05 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: dump(8) && -b option Message-ID: <20140203074405.GA10184@sh4-5.1blu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 7.0-RELEASE (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2014 07:44:14 -0000 Hello, Last weekend I was playing around with the dump options to improve the dump speed to my external USB drive. I tried using the -b option to increase the blocksize of the written junks: # dump -0auL -b 100 -f - /usr ... DUMP: finished in 40 seconds, throughput 7485 KBytes/sec # dump -0auL -b 10 -f - /usr ... DUMP: finished in 70 seconds, throughput 4274 KBytes/sec with -b 1000 the dump hangs forever: # dump -0auL -b 1000 -f - /usr ... DUMP: dumping (Pass III) [directories] (hangs) on of its child is doing this where fd 3 is the device to be backed up: pread(0x3,0x28809000,0x1000,0x89909000,0xa5,0xbfbfcc88) ERR#5 'Input/output error' pread(0x3,0x28809000,0x1000,0x89909000,0xa5,0xbfbfcc88) ERR#5 'Input/output error' pread(0x3,0x28809000,0x1000,0x89909000,0xa5,0xbfbfcc88) ERR#5 'Input/output error' pread(0x3,0x28809000,0x1000,0x89909000,0xa5,0xbfbfcc88) ERR#5 'Input/output error' pread(0x3,0x28809000,0x1000,0x89909000,0xa5,0xbfbfcc88) ERR#5 'Input/output error' Why is this? Maybe the best is doing the write to the disk with dd(1), for example with # dump -0auL -f - /usr | dd bs=8m > /dev/da0s1a/usr.dmp Any comments? Thanks matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards