Re: Help with CT8000-A codes

From: Dances With Crows (danSPANceswitTRAPhcrows_at_usa.net)
Date: 12/17/03


Date: 17 Dec 2003 04:22:21 GMT

On Wed, 17 Dec 2003 03:08:12 GMT, Ken Bass staggered into the Black Sun
and said:
> I found an old Conner CT8000-A tape drive and connected it to my linux
> (8.0) box.

Linux 8.0? Funny, latest version I can find on kernel.org is
2.6.0-test11. "Linux" without a distro name refers to the kernel. You
could be referring to Redhat 8.0, SuSE 8.0, or Mandrake 8.0, all of
which are slightly different. Which one is it?

> After rebooting, it was detected and added into the system.
> I am also able to control (rewind, retension) it via mt, and other
> utilities, like tar, find the drive okay.
>
> The problem is when I try to write to it with tar, tar returns an
> error, and the syslog has lines like this in it:
>
> ide-tape: ht0: I/O error, pc = a, key = 5, asc = 00, ascq = 81
>
> Does anyone know what these values (pc, key, asc, ascq) mean?

These are sort of documented in the file ide-tape.c in the kernel
source, which you should already have on your system. These are numbers
returned from the tape drive that give you additional information about
what really went wrong. Since IDE tape drives are really ATAPI devices,
the best way to get good diagnostic information out of them is to set
"verbose SCSI debugging information" to Y in your kernel configuration
(most distros have this set in their stock kernels) and use the devices
under ide-scsi emulation. You do this by booting with the kernel
commandline parameter "hdX=ide-scsi", then modprobing ide-scsi ,
scsi_mod, and {st,sr_mod} depending on whether the ATAPI device is a
tape or CD-R* after you've logged in. Then try running tar on /dev/st0
and seeing what you get out of dmesg.

pc = A refers to the MODE_SELECT command. The other numbers aren't
making a lot of sense to me, though I'm looking in the constants.c file
from the drivers/scsi directory of the kernel source. I'm not finding
anything that matches up with error values of 5, 0, and 81 there.

> Is there documentation (g*d forbid!) about these?

G*d? As you will find out, SCSI and ATAPI devices are not governed by
any of the Abrahamic deities. Before this is over, you may need a black
goat, a sharp knife, a copy of _De Vermis Mysteriis_, a copy of the
Principia Discordia, and a willingness to experience bizarre horrors
from alternate dimensions. Or you could be lucky and the drive could
work fine under ide-scsi emulation--some will when they don't work with
ide-tape. HTH,

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /                Hire me! 
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume


Relevant Pages

  • Re: Problem with killing processes
    ... middle of a system call to the kernel. ... Unless you have tape drives that are hot-swappable on the SCSI bus, ... may need to reset the computer to reset the hardware. ... james | The attitude ``The computer said so, ...
    (Fedora)
  • Re: When Kill dosent work
    ... I do not know how the Linux kernel works, ... It must know to what process the now-unexpected interrupt ... The few times when I have had these problems (and they were always SCSI tape ... problems with DDS-2 tape drives), the problems were with the hardware while ...
    (comp.os.linux.misc)
  • ide-scsi bug with ide tape drives
    ... 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 2.6.12.3. ... Or maybe there is no filemark because the previous tar process didn't succeed to put it. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: ide-scsi bug with ide tape drives
    ... > 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 2.6.12.3. ... > 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. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: this is not a specific linux question but more of just UNIX - tar, dump, restore command questio
    ... I took your "older tar" to mean Cygwin tar. ... > tar that will do the right thing for both stdout/stdin and tape drives. ... but two Windoze servers with Linux and OpenBSD. ...
    (comp.os.linux.misc)