From owner-freebsd-questions@FreeBSD.ORG Mon Feb 3 21:32:02 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2ECD8CD0 for ; Mon, 3 Feb 2014 21:32:02 +0000 (UTC) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.freebsd.org (Postfix) with ESMTP id A39DD16FA for ; Mon, 3 Feb 2014 21:32:01 +0000 (UTC) Received: from slackbox.erewhon.net (a83-162-243-5.adsl.xs4all.nl [83.162.243.5]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id s13LQ6dP053050; Mon, 3 Feb 2014 22:26:06 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id E1548123A4; Mon, 3 Feb 2014 22:26:05 +0100 (CET) Date: Mon, 3 Feb 2014 22:26:05 +0100 From: Roland Smith To: Matthias Apitz Subject: Re: dump(8) && -b option Message-ID: <20140203212605.GA49118@slackbox.erewhon.net> References: <20140203074405.GA10184@sh4-5.1blu.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <20140203074405.GA10184@sh4-5.1blu.de> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.22 (2013-10-16) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2014 21:32:02 -0000 --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 03, 2014 at 08:44:05AM +0100, Matthias Apitz wrote: >=20 > Hello, >=20 > 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: >=20 > # dump -0auL -b 100 -f - /usr=20 > ... > DUMP: finished in 40 seconds, throughput 7485 KBytes/sec >=20 > # dump -0auL -b 10 -f - /usr > ... > DUMP: finished in 70 seconds, throughput 4274 KBytes/sec >=20 > with -b 1000 the dump hangs forever: >=20 > # dump -0auL -b 1000 -f - /usr > ... > DUMP: dumping (Pass III) [directories] > (hangs) >=20 > on of its child is doing this where fd 3 is the device to be backed up: >=20 > pread(0x3,0x28809000,0x1000,0x89909000,0xa5,0xbfbfcc88) ERR#5 'Input/outp= ut error' > pread(0x3,0x28809000,0x1000,0x89909000,0xa5,0xbfbfcc88) ERR#5 'Input/outp= ut error' > pread(0x3,0x28809000,0x1000,0x89909000,0xa5,0xbfbfcc88) ERR#5 'Input/outp= ut error' > pread(0x3,0x28809000,0x1000,0x89909000,0xa5,0xbfbfcc88) ERR#5 'Input/outp= ut error' > pread(0x3,0x28809000,0x1000,0x89909000,0xa5,0xbfbfcc88) ERR#5 'Input/outp= ut error' >=20 > Why is this? Input/output error indicates that a file could not be read. Did you run a f= sck before dump? Are you trying to dump a live filesystem? On 9.0 doing dumps of a live filesystem that has journaled soft-updates (SU+J) enabled were broken. I am not sure if this has been fixed already. > Maybe the best is doing the write to the disk with dd(1), for example > with >=20 > # dump -0auL -f - /usr | dd bs=3D8m > /dev/da0s1a/usr.dmp For now, the best thing AFAIK is not to use -L but to dump the filesystem f= rom single user mode when it is not mounted. Roland --=20 R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlLwCW0ACgkQEnfvsMMhpyXNmwCgkbH5GUuEIosSdQTj9zGbBKLV WmEAn0GVrEb/eqZelrS337/gb5zGIt1z =JO0V -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--