Problem with scsi tape drives (2.4.18) and soft error count (BusLogic,

Evan Harris (eharris@puremagic.com)
Tue, 2 Apr 2002 14:38:13 -0600 (CST)


I've had a long time problem with trying to get the total soft error count
from tape devices when using the kernel provided tape interface.
Hopefully, someone here can shed some light on the problem. Using several
different DAT and DLT tape drives, the behavior seems the same.

I'm trying to figure out how to retrieve the soft error count from a tape
drive after having performed a backup. It helps me to gauge when a tape
needs to be retired, and I'm used to being able to get the total soft error
count from other backup software packages for dos/windows.

mt apparently queries the soft error count, but it always seems to be zero.
I've dug into the problem a bit, and it seems that mt reports zero because
the tape drive has had it checked and cleared by the kernel at every drive
operation. Is there any place in the kernel that this information is stored
so that it may be retrieved?

I've also tried with different scsi adapters, and it may rollover to an
adapter/driver issue. For instance, the BusLogic driver keeps alot more
statistics information in /proc/scsi/BusLogic/1 than the Adaptec driver, but
doesn't happen to have the soft error count in there.

Any help or pointers would be appreciated. Web search hasn't turned up much
useful information.

Evan

-- 
| Evan Harris - Consultant, Harris Enterprises - eharris@puremagic.com
|
| Custom Solutions for your Software, Networking, and Telephony Needs

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/