Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Sep 2000 10:08:48 -0500
From:      Eric Christeson <echriste@ssesco.com>
To:        "'freebsd-scsi@freebsd.org'" <freebsd-scsi@freebsd.org>
Subject:   Problems with tape drive
Message-ID:  <01C01658.1F36EBC0.echriste@ssesco.com>

next in thread | raw e-mail | index | archive | help
I've been having a problem with my tape drive and I have a solution, I just 
don't know if it's the correct solution.  I'm running 4.1 stable and have a 
drive that gets recognized as a Tandberg TDC 3800 (see dmesg output that 
follows) with DC6525 tapes.  I have scsi and sa in the kernel and 
everything set up correctly, but whenever I try to do anything with the 
tape drive I get an error.

$ sudo mt status
mt: /dev/nsa0: Invalid argument
(sa0:sym0:0:5:0): unable to set fixed blocksize to 1024

I set some debug flags and did some digging through cam/scsi/scsi_sa.c and 
found that the quirk entry for the Tandberg 3800 doesn't set SA_QUIRK_FIXED 
or SA_QUIRK_VARIABLE so on line 1978 last_media_blksize gets set to 1024 
which in turn causes it to try to set the device blocksize to 1024 around 
line 2041.  I don't know if my drive or media is funky or what, but it 
wants the blocksize to be 512 and only 512 (or variable).  I've gotten 
around this by setting either SA_QUIRK_FIXED or SA_QUIRK_VARIABLE in the 
Tandberg 3800 quirk entry.


dmesg output:

Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 4.1-STABLE #0: Thu Aug 31 15:06:00 CDT 2000
    root@finch.koehntop.net:/usr/obj/usr/src/sys/FINCH
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium Pro (179.63-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x619  Stepping = 9

snip...

sa0 at sym0 bus 0 target 5 lun 0
sa0: <TANDBERG TDC 3800 =04:> Removable Sequential Access SCSI-2 device
sa0: 3.300MB/s transfers

thanks
eric

Eric J Christeson <echriste@ssesco.com>



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?01C01658.1F36EBC0.echriste>