Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: tibor@lib.uaa.alaska.edu
To: axp-list@redhat.com
Cc: kraj@ac.housing.berkeley.edu
Subject: Re: AIT Drive
Date: Wed, 15 Mar 2000 15:47:01 -0900 (AKST)	[thread overview]
Message-ID: <Pine.LNX.4.10.10003151518350.28102-100000@asimov.lib.uaa.alaska.edu> (raw)
In-Reply-To: <38D01B50.2A5B6AE5@ac.housing.berkeley.edu>

On Wed, 15 Mar 2000, Karanraj Guleria wrote:

> Hello All,
> 
> I'm trying to setup a Sony sdx 300 c AIT tape drive on a Linux box here
> at work. It's been detected rightly as a SCSI tape drive pointed to by
> /dev/st0.  I'm using the mt command to access the drive and am tarring
> files into it and 'catting' data out of it to be read.
> 
> The problem arises from the fact that df is reporting the drive capacity
> at 4GB instead of 25GB which is the size of the tapes I'm using.

df only works with block devices containing filesystems.  If you're doing
something like "df /dev/st0" then what you're seeing is the disk usage
stats for your root filesystem.

(FYI, you'll probably always want to use /dev/nst0 instead of /dev/st0)

> In order to fix this I've looked at the SCSI programming howto, but
> haven't gotten anywhere since none of the devices are being pointed to
> by the generic scsi pointers (sga, sgb, etc). I basically need to know
> what density to set the blocks to in order to get the right data
> capacity returned from the tape.

You don't have to do anything to get the drive to fill up tapes to the
appropriate capacity.  My experience is only with 4mm DAT drives, but the
AIT drive should autodetect the type of tape and its capacity.

You might want to try something like "dd if=/dev/zero of=/dev/nst0
bs=512k" and you should be able to see how much data gets written to the
tape.  If you only see 4GB written to tape using that method, then I would
say there is probably something wrong--however I would expect you'd see it
approach the compressed capacity of the tape (50GB?).  Note that for most
things you will rarely achieve the numbers the vendors use for compressed
performance.

Mike
-- 
Mike Tibor         Univ. of Alaska Anchorage    (907) 786-1001 voice
LAN Technician     Consortium Library             (907) 786-6050 fax
tibor@lib.uaa.alaska.edu       http://www.lib.uaa.alaska.edu/~tibor/
http://www.lib.uaa.alaska.edu/~tibor/pgpkey  for PGP public key


  reply	other threads:[~2000-03-16  0:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-15 23:22 AIT Drive Karanraj Guleria
2000-03-16  0:47 ` tibor [this message]
2000-03-16  1:04   ` kraj
2000-03-16  2:13     ` W Bauske
2000-03-16  2:20     ` tibor
2000-03-16  2:23     ` Malcolm Caldwell
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox