From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15570 invoked from network); 16 Mar 2000 00:47:03 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Mar 2000 00:47:03 -0000 Received: from asimov.lib.uaa.alaska.edu (asimov.lib.uaa.alaska.edu [137.229.112.145]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id TAA17452 for ; Wed, 15 Mar 2000 19:47:03 -0500 From: tibor@lib.uaa.alaska.edu Received: by asimov.lib.uaa.alaska.edu (Postfix, from userid 500) id C272C285CD; Wed, 15 Mar 2000 15:47:01 -0900 (AKST) Received: from localhost (localhost [127.0.0.1]) by asimov.lib.uaa.alaska.edu (Postfix) with ESMTP id BAE8327726; Wed, 15 Mar 2000 15:47:01 -0900 (AKST) Date: Wed, 15 Mar 2000 15:47:01 -0900 (AKST) To: axp-list@redhat.com Cc: kraj@ac.housing.berkeley.edu Subject: Re: AIT Drive In-Reply-To: <38D01B50.2A5B6AE5@ac.housing.berkeley.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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