*BSD News Article 71063


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!fu-berlin.de!zrz.TU-Berlin.DE!cs.tu-berlin.de!uni-erlangen.de!news.tu-chemnitz.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: DAT Hell
Date: 16 Jun 1996 09:09:48 GMT
Organization: Private BSD site, Dresden
Lines: 38
Message-ID: <4q0j0s$h0@uriah.heep.sax.de>
References: <4pvmjj$flb@mercury.mcs.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

tundra@MCS.COM (Tim Daneliuk) wrote:

> Sony SDT-5000 2/4G DAT Drive

> The DAT 'seems to work fine EXCEPT if I issue a command like 'mt erase'.
> 
> The system runs for a while (apparently erasing the tape) and then
> locks the SCSI subsystem up.  It scribbles the following all over the
> console:
> 
> sd0(aha0:4:0): timed out	// This is the DAT Drive

Seems the timeout in the st driver for erasing a tape is too small.

Go to the file /sys/scsi/st.c, lookup the function st_erase(), you
will find there:

	return (scsi_scsi_cmd(sc_link,
		(struct scsi_generic *) &scsi_cmd,
		sizeof(scsi_cmd),
		0,
		0,
		ST_RETRIES,
		immed ? 5000 : 300000,	/* 5 sec or 5 min */
		NULL,
		flags));

The 5000 seems to be never used (immed is always FALSE), bump the
300000 to something that makes the operation safe for you.  Once you
found it, multiply it by 2, and use /usr/bin/send-pr to submit your
new value so we can integrate it into the driver.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)