always ide-scsi bug with ide tape drives]

always ide-scsi bug with ide tape drives]

Post by Pascal GRE » Thu, 10 Nov 2005 01:11:03


2 months ago I sent a mail to warn about a bug with ide tape drives.
The bug occured with kernels 2.6.12 but today I tested it with kernel 2.6.14 and I have exactly the same problem.
Could anyone have a look at it?
Further is the previous mail I sent with kernel, the behaviour didn't change with kernel 2.6.14.

--- Original message from Pascal GREGIS < XXXX@XXXXX.COM > -----
Date: Tue, 6 Sep 2005 11:19:13 +0200
Subject: ide-scsi bug with ide tape drives
User-Agent: Mutt/


I have a big problem that I supposed to be a bug of ide-scsi, eventhough I'm not totally sure of this.

I am using manual tape drives, some of them are real scsi drives and the others are ide drives, on some Linux systems that I recently upgraded to kernel
The problem is that, with this kernel version, when I read from my ide tape drives, the read does not stop, when it has finished with the real tape data, it keeps on reading \0 characters.
This problem is new with the kernel, or at least with 2.6.12 (it doesn't happen in 2.6.10 nor in and it does only occur with the ide drives, with the scsi ones it returns correctly. This is why I suppose it is a bug of the ide-scsi module.

I can give some additionnal infos :
$ uname -a
Linux mybox ...
$ lsmod
Module Size Used by
st 41888 0
sg 40224 0
ide_scsi 18180 0
8139too 25856 0
8139cp 21248 0
e100 38784 0
sis900 22144 0
mii 6016 4 8139too,8139cp,e100,sis900
sata_sis 7424 0

I straced a read on the tape, where I previously put a little tar of less than 8kb,
the result looks like follows :

$ strace dd if=/dev/st0 of=tmp/mynewof ibs=1024
execve("/bin/dd", ["dd", "if=/dev/st0", "of=tmp/mynewof", "ibs=1024"], [/* 15 vars */]) = 0
uname({sys="Linux", node="devlrn1", ...}) = 0
close(0) = 0
open("/dev/st0", O_RDONLY|O_LARGEFILE) = 0
close(1) = 0
open("tmp/mynewof", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 1
... (rt_sigaction calls)
read(0, "test/\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
write(1, "test/\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(1, "test/\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
read(0, "#!/bin/sh\n\nsource /etc/init.d/fu"..., 1024) = 1024
write(1, "#!/bin/sh\n\nsource /etc/init.d/fu"..., 512) = 512
write(1, "ot/vxaTool ${DRIVE_DEVICE} -C 0\n"..., 512) = 512
read(0, "DRIVE_DEVICE rewind\nif [ $? -ne "..., 1024) = 1024
write(1, "DRIVE_DEVICE rewind\nif [ $? -ne "..., 512) = 512
write(1, " else\n\t dd if=/dev"..., 512) = 512
read(0, "nd $?\ndone\n\n# Restoring files\n\ne"..., 1024) = 1024
write(1, "nd $?\ndone\n\n# Restoring files\n\ne"..., 512) = 512
write(1, "${SRC_FILE_NAME}$i ${DST_FILE_NA"..., 512) = 512
read(0, "kup/catalog_control.bash start\ne"..., 1024) = 1024
write(1, "kup/catalog_control.bash start\ne"..., 512) = 512
write(1, "test/\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
read(0, "#!/bin/bash\n\n# do not put any sp"..., 1024) = 1024
write(1, "#!/bin/bash\n\n# do not put any sp"..., 512) = 512
write(1, "comp_parent \\( -type d -or -type"..., 512) =

1. PROBLEM: "kernel BUG at drivers/scsi/ide-scsi.c:493!"

2. IDE tape drive /IDE controller

I have a sytems with 2 ide controller: one controller has a HD as master the
other one has a a DVD burner and a dvd player as master/slave.

If I get a ait-1 tape drive ide and I installed as slave in the controller
with the HD as main is the HD performance going to be affected?

Any other suggestions of tape drives. Capacity >60 GB

The way I use the system is the following. All OS and data are in SATA drives.
I installed the IDE mainly for backups. Unfortunately I realized that the
backup program I use as well as any other backup program I have tested can not
write files >2GB. I have played with both xcopy and tar as a temporary
solution. Tar is interesting. If I use in the regular way like
$tar -c -ppP --posix -f=all.tar c:/ d:/ e:/ f:/ g:/
it will write but again the 2GB ceiling is reach. But as I learned in one of
the thread the way to trick it is to use redirection from stout to file. I
still not sure how to restore a single file to a particular directory with the
"<" ..and backagain is easy to use :-) and therefore I am looking for a tape

Have all a happy holidays!


-=terry (Denver)=-
AIM: terryXela

3. [BUG ALERT] ide-scsi: DMA alignment bug fixed

4. [BUG ALERT] [PATCH] ide-scsi: DMA alignment bug fixed

5. FS: CDRW/DVD Drives, SCSI/IDE Hard Drives, & SCSI Controllers-12.11.04

6. FS: CDRW/DVD Drives, SCSI/IDE Hard Drives, & SCSI Controllers

7. Cannot mount multi-session DVD with ide-cd, must use ide-scsi

8. ide-cd doesn't replace ide-scsi?

9. [PATCH 2.6.16-rc1] ide-scsi: fix for IDE probe/remove ops changes

10. IDE-Streamer and ide-scsi ...

11. [Bug #14294] kernel BUG at drivers/ide/ide-disk.c:187

12. ide-scsi: DMA alignment bug fixed

13. ide-scsi bug crashes kernels 2.4.21 to 2.4.22-pre2

14. [BUG] ide-scsi on a 2.4.21-ac8

15. IDE-SCSI bug