public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SCSI tape corruption problem
@ 2001-04-11 11:37 lomarcan
  2001-04-11 13:18 ` Mircea Damian
  0 siblings, 1 reply; 10+ messages in thread
From: lomarcan @ 2001-04-11 11:37 UTC (permalink / raw)
  To: linux-kernel

I've recently installed a SDT-9000 tape drive. Running kernel 2.4.x I've
noticed the following (critical) problem:

Apparently the data are corrupted on the way to (from?) tape. I'm sure the
DAT 
drive is good (worked good on NT, head clean, new cartridge). It doesn't
report
data errors. I've got bad CRC errors on tar (the gzip part, of course)

The drive is on an Adaptec 2904 controller, with a Yamaha CDRW on the same
bus.
I'm pretty sure it's terminated correctly. Another SCSI controller (2940)
is 
driving 2 hard drives. Underlying HW: Athlon 1GHz, on Asus board (VIA
chipset). 
It seems to happen frequently (tried four times with about 600MB of data,
three
times failed the restore :((. Tried all the 2.4.x kernel series (thru
2.4.3)

What can it be? (I'll try to compare the read data with the original...)

				-- Lorenzo Marcantonio


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: SCSI tape corruption problem
@ 2001-04-11 14:24 lomarcan
  0 siblings, 0 replies; 10+ messages in thread
From: lomarcan @ 2001-04-11 14:24 UTC (permalink / raw)
  To: linux-kernel


> This seems to happen on my system too but I have and IDE tape:

Seems uncurrelated. I'm trying this:

# cd ~archive; tar cvzf /dev/tapes/tape0 # using devfs on rewinding dev
(some 600MB of stuff...)

where ~archive is on a SCSI drive (ext2 fs on LVM volume if can help)

# tar tvzf /dev/tapes/tape0
... some stuff pass correctly...

then gzip give a CRC error (no tape errors in syslog)

tape0 is on scsi0 (2904), the disk is on scsi1 (2940UW). Seems that the
problem is writing, because I get the CRC error always at the same point

				-- Lorenzo Marcantonio


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: SCSI tape corruption problem
@ 2001-04-14  8:23 Marc SCHAEFER
  2001-04-14 17:42 ` Geert Uytterhoeven
  2001-04-15 13:04 ` Olaf Titz
  0 siblings, 2 replies; 10+ messages in thread
From: Marc SCHAEFER @ 2001-04-14  8:23 UTC (permalink / raw)
  To: linux-kernel

Now try this:

   cd ~archive
   mt -f /dev/tapes/tape0 rewind
   tar cvf - . | gzip -9 | dd of=/dev/tapes/tape0 bs=32k

and then:

   mt -f /dev/tapes/tape0 rewind
   dd if=/dev/tapes/tape0 bs=32k | gzip -d | tar --compare -v -f -

The above is the proper way to talk to a tape drive through gzip.

PS: if you pre-compress, it can be wise to suppress hardware compression
(mt -f /dev/nst0 datcompression 0) and maybe use a big buffer with
the buffer command.


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <200104140822.KAA30156@vulcan.alphanet.ch>]

end of thread, other threads:[~2001-04-15 16:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-11 11:37 SCSI tape corruption problem lomarcan
2001-04-11 13:18 ` Mircea Damian
  -- strict thread matches above, loose matches on Subject: below --
2001-04-11 14:24 lomarcan
2001-04-14  8:23 Marc SCHAEFER
2001-04-14 17:42 ` Geert Uytterhoeven
2001-04-14 18:08   ` Marc SCHAEFER
2001-04-14 18:20   ` Marc SCHAEFER
2001-04-15 13:04 ` Olaf Titz
     [not found] <200104140822.KAA30156@vulcan.alphanet.ch>
2001-04-14 19:25 ` Lorenzo Marcantonio
2001-04-15  1:16   ` Marc SCHAEFER

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