From owner-freebsd-questions@FreeBSD.ORG Mon Apr 7 01:03:57 2003 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 D306637B409 for ; Mon, 7 Apr 2003 01:03:57 -0700 (PDT) Received: from cwnet5.wirelessnet.de (cwnet5.wirelessnet.de [212.20.170.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88CD443FA3 for ; Mon, 7 Apr 2003 01:03:56 -0700 (PDT) (envelope-from usenet@esct.org) Received: from baldur.asgard (pd9e35e13.dip.t-dialin.net [217.227.94.19]) h3783g202704; Mon, 7 Apr 2003 10:03:51 +0200 Received: by baldur.asgard (Postfix, from userid 1001) id EE8D437D; Mon, 7 Apr 2003 10:03:39 +0200 (CEST) Date: Mon, 7 Apr 2003 10:03:39 +0200 From: Andreas Totlis To: Nathan Vidican , freebsd-questions@freebsd.org Message-ID: <20030407080339.GC4265@baldur.asgard> Mail-Followup-To: Nathan Vidican , freebsd-questions@freebsd.org References: <20030406144727.M85382@vidican.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030406144727.M85382@vidican.com> User-Agent: Mutt/1.4i Subject: Re: Problems with dump/capacity/DLT IV 40-80GB Tape cartridges 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: Mon, 07 Apr 2003 08:03:58 -0000 Hello Nathan, I'm always fight with my SLR50 Tape Drive :-) * Nathan Vidican [030406 16:49]: > sa0 at ahc1 bus 0 target 1 lun 0 > sa0: Removable Sequential Access SCSI-2 device > sa0: 20.000MB/s transfers (10.000MHz, offset 8, 16bit) > > Output of 'df' returns the following: > > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/aacd0s1a 2064302 64488 1834670 3% / > /dev/aacd2s1e 70558134 4227862 60685622 7% /server > /dev/aacd0s1f 6132382 1363156 4278636 24% /usr > /dev/aacd0s1e 8257742 124818 7472306 2% /var > procfs 4 4 0 100% /proc > > The Problem: > ~~~~~~~~~~~~ > > When using 'dump -0au -f /dev/sa0 /server' I cannot fit the contents of > /server (approx 4.2gigs of data) onto a single tape volume. The tape > inserted is a brand new HP C5141F, (which is a 40/80GB DLT IV cartidge). > Dump prompts for a new tape to be inserted to complete the operation. I > assumed this had to do with the '-a' part in the dump command; assuming that > dump is therefore not (properly) auto-detecting the EOT (end of tape), or > using the wrong recording density and reaching the end of the tape all too > quickly. Using 'restore -i' I can indeed read the data written to the tape, > so it is writting the data... just not properly. > > The Question: > ~~~~~~~~~~~~~ > > Is anyone out there using similar hardware, or know of the proper arguments > to pass to dump to make full use of the capacity of these DLT IV cartridges? > I have checked HP's website, and these particular cartidges list a length of > 557Meters, and a density of 46.8K/80K/96K dependant upon 40GB/70GB/80GB > compression schemes. How do I formulate the dump command to properly make > use of these tapes.... any suggestions? Try to set the blocksize by your Drive(e.g.: "mt -f /dev/... blocksize 64" - see man mt). Set the blocksize in your dump command. My actually dump call: /sbin/dump 0aubf 512 - /mail | /usr/local/bin/team 1m 3 >/dev/nrsa0 Anymore you should use a buffer (e.g. team) to ensure that the Drive streams continous. hth Andreas -