> -----Messaggio originale-----
> Da: Kai Makisara [mailto:[EMAIL PROTECTED]]
> Inviato: venerd� 17 settembre 1999 13.14
> A: Nicola Lamarca
> Oggetto: Re: Tape problems.
>
>
> On Fri, 17 Sep 1999, Nicola Lamarca wrote:
>
> > Hi all,
> > I've a Linux Box with RH6.0 and kernel 2.2.x-x, I've setup it
> > for the use of a SCSI 4/8GB Dat Tape. When I use taper it
> reports an I/O
> > error... besides I tried to use mt tools configuring the tape with:
> > # stinit -f init.def
> >
> > The file init.def has only one device configured in this way:
> >
> > # A compressing DAT (DDS-1-DC or DDS-2)
> > manufacturer=HP model = "C1533A" {
> > scsi2logical=1 can-bsr can-partitions auto-lock
> > mode1 blocksize=1024 compression=1
> > }
> >
> > Now when I try:
> > # tar cvf /dev/st0 /foo
> >
> > I reports an I/O error, this error shows up even if I submit:
> > # tar czvf foo.tgz /foo
> > # dd if=foo.tgz of=/dev/st0 bs=1024
> >
> Both of these experiments should succeed. What messages
> related to tape do
> you find from the system log? (The driver can only supply an
> error code to
> the program and there are very few error codes applicable to tapes. In
> addition to returning the code, the driver prints messages to
> console/log).
>
> Kai
>
The log that I can see (/var/log/messages) comes from the kernel:
1) Initialization of the tape (stinit -f stinit.def):
Sep 17 14:23:40 proxy02 kernel: st0: Mode 0 options: buffer writes: 1,
async writes: 1, read ahead: 1
Sep 17 14:23:40 proxy02 kernel: st0: can bsr: 1, two FMs: 0, fast
mteom: 0, auto lock: 1,
Sep 17 14:23:40 proxy02 kernel: st0: defs for wr: 0, no block limits:
0, partitions: 1, s2 log: 1
Sep 17 14:23:40 proxy02 kernel: st0: sysv: 0
Sep 17 14:23:40 proxy02 kernel: st0: Default block size set to 1024
bytes.
Sep 17 14:23:40 proxy02 kernel: st0: Compression default set to 1
2) Writes on the tape (dd if=foo.tgz of=/dev/st0 bs=1k)
Sep 17 14:35:00 proxy02 kernel: st0: Write not multiple of tape block
size.
What does it mean ?