From owner-freebsd-questions@FreeBSD.ORG Tue May 17 22:14:17 2005 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 3969216A4CE for ; Tue, 17 May 2005 22:14:17 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id C989843D88 for ; Tue, 17 May 2005 22:14:16 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 35DE9514E7; Tue, 17 May 2005 15:14:12 -0700 (PDT) Date: Tue, 17 May 2005 15:14:11 -0700 From: Kris Kennaway To: Jerry McAllister Message-ID: <20050517221411.GA1499@xor.obsecurity.org> References: <1220.66.25.129.27.1116333880.squirrel@mail.cm.utexas.edu> <200505171259.j4HCxavZ029551@clunix.cl.msu.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <200505171259.j4HCxavZ029551@clunix.cl.msu.edu> User-Agent: Mutt/1.4.2.1i cc: virenp@mail.utexas.edu cc: questions@freebsd.org cc: Kris Kennaway Subject: Re: Transferring dump file to tape? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 22:14:17 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 17, 2005 at 08:59:36AM -0400, Jerry McAllister wrote: > > Thanks for your input. As per Kris' suggestion adding the > > blocksize worked for me. 'mt' reports my tapedrive having > > a blocksize of 1024 bytes (1k), so my command was > >=20 > > dd if=3Dvar-200501516 of=3D/dev/nsa0 bs=3D1k > >=20 > > I transfered the dump file to tape and then was able to > > restore directly from tape. My test dump file was small > > (140K) but today I plan to test with a full-size > > multi-gigabyte dump file. I haven't played long with dd to > > judge its reliability. While I was looking around, I also > > came across sdd (/usr/ports/sysutils/sdd), which claims to > > be a better dd replacement. >=20 > Adjusting the blocksize was my suggestion. Also mine :0 > But, even doing that doesn't fix the problem we often see with > writes to tape failing in that manner.=20 >=20 > dd itself is reliable. It is tried and true. I think our > failures come from something in the sa driver because a drive > that fails usually fails for everything except maybe tar and dump. Are you absolutely certain that the tape device is not in use at the time that the application receives the error? Kris --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCimyzWry0BWjoQKURAlalAJsFEZGglLr/8KVPCbqDF2FJ9Bb98gCdGhMs vQ5wVNfyNZMeT3u5GMzjfpY= =vJPz -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--