Subject: Problem with Compaq DLT streamer
To: None <port-sparc@netbsd.org>
From: Chris Amthor <amthor@chroam.de>
List: port-sparc
Date: 08/15/2004 18:24:23
Hi folks,

I recently got an old Compaq DLT tape drive and some tapes (BTW: funny
thing: one of the tapes has the "digital" logo stamped on it ;)

I've connected the drive to an SS5's builtin controller, the machine
is running NetBSD-1.6.2. The drive itself appears to be working.

The device identifies as:

popeye# scsictl /dev/st0 identify
/dev/st0: scsibus0 target 6 lun 0 <DEC, DLT2000, 8306>

and is willing to talk:

popeye# mt -t /dev/st0 status
SCSI tape drive, residual=0
ds=3<Mounted>
er=0
blocksize: 0 (0, 0, 0, 0)
density: 25 (0, 0, 0, 0)
current file number: 0
current block number: 0

The problem starts when I try to write some data on a tape:

popeye# tar cvzf /dev/st0 /etc

[...]

popeye# tar (child): only wrote 2048 of 2510 bytes to /dev/st0

Seems to be related to blocksize to me, since 2048 is a common value.

dmesg has one entry:

esp0: tagged queuing rejected: target 3
st0(esp0:0:6:0):  Check Condition on CDB: 0x08 00 00 08 00 00
    SENSE KEY:  Blank Check
   INFO FIELD:  2048
 COMMAND INFO:  61 (0x3d)
     ASC/ASCQ:  End-Of-Data Detected

for each try.

The most interesting issue: target 3 is the HDD the OS sits on, the
streamer is target 6 (same bus).

Any ideas?

cheers,
\end{kryz}

-- 
Q: How is "SunOS" spelled?
A: As one speaks it. With capital "S-O-S".