* AIT Drive
@ 2000-03-15 23:22 Karanraj Guleria
2000-03-16 0:47 ` tibor
0 siblings, 1 reply; 6+ messages in thread
From: Karanraj Guleria @ 2000-03-15 23:22 UTC (permalink / raw)
To: axp-list
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.
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.
What should I do?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: AIT Drive
2000-03-15 23:22 AIT Drive Karanraj Guleria
@ 2000-03-16 0:47 ` tibor
2000-03-16 1:04 ` kraj
0 siblings, 1 reply; 6+ messages in thread
From: tibor @ 2000-03-16 0:47 UTC (permalink / raw)
To: axp-list; +Cc: kraj
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: AIT Drive
2000-03-16 0:47 ` tibor
@ 2000-03-16 1:04 ` kraj
2000-03-16 2:13 ` W Bauske
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: kraj @ 2000-03-16 1:04 UTC (permalink / raw)
To: axp-list
> (FYI, you'll probably always want to use /dev/nst0 instead of /dev/st0)
I know that /dev/nst0 won't rewind the tape everytime I write to it,
but how do I know that it's correctly point to st0?
>
> 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
What will this command write to the tape?
The way it stands, the density on my tape drive hasn't been set by linux
yet, and I was wondering if that's a problem while doing writes.
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: AIT Drive
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
2 siblings, 0 replies; 6+ messages in thread
From: W Bauske @ 2000-03-16 2:13 UTC (permalink / raw)
To: axp-list
kraj@ac.housing.berkeley.edu wrote:
>
> > (FYI, you'll probably always want to use /dev/nst0 instead of /dev/st0)
>
Depends what you use tapes for. I don't bother with
more than one file on a tape most of the time. Working
now on a set of 141-150 out of 180 3590's.
> I know that /dev/nst0 won't rewind the tape everytime I write to it,
> but how do I know that it's correctly point to st0?
By convention it should unless your kernel is screwy.
> >
> > 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
>
> What will this command write to the tape?
>
Zeros, as a test. Might be better to just use your own
data/files as the test case to understand your average
compression rate.
> The way it stands, the density on my tape drive hasn't been set by linux
> yet, and I was wondering if that's a problem while doing writes.
>
Most drives default to their highest density setting
and compression, if available, at power on. Also,
mt doesn't show the true density setting until you
put a tape in the drive and it's loaded.
Wes
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: AIT Drive
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
2 siblings, 0 replies; 6+ messages in thread
From: tibor @ 2000-03-16 2:20 UTC (permalink / raw)
To: axp-list; +Cc: kraj
On Wed, 15 Mar 2000 kraj@ac.housing.berkeley.edu wrote:
> I know that /dev/nst0 won't rewind the tape everytime I write to it,
> but how do I know that it's correctly point to st0?
That's just one of those things you can safely assume. :-)
> > 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
>
> What will this command write to the tape?
Just a bunch of zeros in blocks of 512 KB. From the man page: "...reads
from [/dev/]zero always return \0 characters."
One thing I should probably point out, is that this list deals with Linux
on the Alpha platform, and these issues are not specific to Alpha.
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: AIT Drive
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
2 siblings, 0 replies; 6+ messages in thread
From: Malcolm Caldwell @ 2000-03-16 2:23 UTC (permalink / raw)
To: axp-list
On Wed, Mar 15, 2000 at 05:04:35PM -0800, kraj@ac.housing.berkeley.edu wrote:
>
>
> > (FYI, you'll probably always want to use /dev/nst0 instead of /dev/st0)
>
> I know that /dev/nst0 won't rewind the tape everytime I write to it,
> but how do I know that it's correctly point to st0?
use ls and check the major and minor device numbers. The major should be the
same.
Eg. on my i686 box:
$ ls -l /dev/st0 /dev/nst0
crw-rw---- 1 root disk 9, 128 May 6 1998 /dev/nst0
crw-rw---- 1 root disk 9, 0 May 6 1998 /dev/st0
> > 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
>
> What will this command write to the tape?
>
> The way it stands, the density on my tape drive hasn't been set by linux
> yet, and I was wondering if that's a problem while doing writes.
>
>
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
--
Malcolm Caldwell - Manager, IT Infrastructure Email:malcolm@it.ntu.edu.au
Information Technology Support Ph: +61 8 89466631
Northern Territory University,Darwin Fax: +61 8 89466630
CASUARINA 0909 Australia
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-03-16 2:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-15 23:22 AIT Drive Karanraj Guleria
2000-03-16 0:47 ` tibor
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox