Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 May 1999 19:37:44 -0700 (PWT)
From:      Matthew Jacob <mjacob@feral.com>
To:        John Lengeling <johnl@raccoon.com>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: Problems with HP T20 SCSI Travan under FreeBSD 3.1
Message-ID:  <Pine.LNX.4.04.9905031918420.7852-100000@feral.com>
In-Reply-To: <372E15B3.CB551A3@raccoon.com>

next in thread | previous in thread | raw e-mail | index | archive | help

(sharing this with the group)...

The top of the FreeBSD-3.1 tree works with my T20 but poorly- that is, it
writes tapes fine, but attempts to append fail if you use fsf to locate
the end of media- this is because the writing of two filemarks (which it
assumes it can do- while it has determined it has to be in fixed mode in
samount it can't know that two filemarks aren't accepted), you get this
(by now well known and embarrassing) nonsense:

(sa0:ahc0:0:1:0): Write append position error
(sa0:ahc0:0:1:0): WRITE(06). CDB: a 1 0 0 a 0 
(sa0:ahc0:0:1:0): Deferred Error: MEDIUM ERROR info:2800 asc:50,1
(sa0:ahc0:0:1:0): Write append position error
(sa0:ahc0:0:1:0): WRITE(06). CDB: a 1 0 0 a 0 
(sa0:ahc0:0:1:0): Deferred Error: MEDIUM ERROR info:2800 asc:50,1
(sa0:ahc0:0:1:0): Write append position error
(sa0:ahc0:0:1:0): WRITE(06). CDB: a 1 0 0 a 0 
(sa0:ahc0:0:1:0): Deferred Error: MEDIUM ERROR info:2800 asc:50,1
(sa0:ahc0:0:1:0): Write append position error
(sa0:ahc0:0:1:0): WRITE FILEMARKS. CDB: 10 0 0 0 2 0 
(sa0:ahc0:0:1:0): MEDIUM ERROR info:1800 asc:50,1
(sa0:ahc0:0:1:0): Write append position error
(sa0:ahc0:0:1:0): failure at writing filemarks - opting for safety

whereupon it rewinds. Very stupid.

If you use 'mt eod' to append, that works much better- but still seems
iffy.

Taking a snapshot of my current -current scsi_sa.[ch] with one minor tweak
(for an ioctl I haven't pulled back yet) seems to work much better. I've
tried a multi-tape file tar- and it seems to work for me w/o too much
testing- feel free to snag the scsi_sa.c/scsi_sa.h from 
ftp://ftp.feral.com/pub/freebsd and try it on your drive.

I should note that tcopy *hangs* in trying to evaluate these tapes- I have
to track down what's happening here about this- this may be some
interactions with blocks past an error not getting biodone'd correctly.

-matt







To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.04.9905031918420.7852-100000>