From owner-freebsd-questions@FreeBSD.ORG Mon Nov 17 13:42:33 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AF5916A4CE for ; Mon, 17 Nov 2003 13:42:33 -0800 (PST) Received: from anybots.com (w055.z066088028.sjc-ca.dsl.cnc.net [66.88.28.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92F3143FE0 for ; Mon, 17 Nov 2003 13:42:32 -0800 (PST) (envelope-from tlb@tlb.org) Received: from [10.10.10.16] (tlb [10.10.10.16]) by anybots.com (8.12.6/8.12.6) with ESMTP id hAHLgWL2000918 for ; Mon, 17 Nov 2003 13:42:32 -0800 (PST) (envelope-from tlb@tlb.org) From: Trevor Blackwell To: freebsd-questions@freebsd.org Content-Type: text/plain Message-Id: <1069105352.19437.833.camel@tlb> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 17 Nov 2003 13:42:32 -0800 Content-Transfer-Encoding: 7bit Subject: SCSI Travan tape drive is flaky X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2003 21:42:33 -0000 I have a 10/20 GB Seagate Travan tape drive: FreeBSD 4.7-RELEASE #1: Fri Jan 24 08:05:09 GMT 2003 ... ahd1: port 0x5c00-0x5cff,0x6000-0x60ff mem 0xd0402000-0xd0403fff irq 22 at device 3.1 on pci4 aic7901A: Ultra320 Wide Channel B, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs ... sa0 at ahd1 bus 0 target 4 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 10.000MB/s transfers (10.000MHz, offset 15) When I write to it, it gives up (writes less than a block) randomly after using only a fraction of the tape, anywhere from 1 to 2 GB. I've never gotten more than 2 GB written to it. I've tried with 2 different 10/20 GB tapes. For instance: # mt erase; mt rewind; dd if=tlb-usr.dump0.gz of=/dev/nsa0 bs=65536 dd: /dev/nsa0: short write on tape device 13191+0 records in 13190+1 records out 864442368 bytes transferred in 944.588678 secs (915152 bytes/sec) [It moved 864 MB of 7706 MB in the file] Afterwards, mt errstat says: # mt errstat Last I/O Residual: 0 Last I/O Command: 0A 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 Last I/O Sense: F0 00 03 00 0A F8 00 0A 00 00 00 00 0C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Last Control Residual: 0 Last Control Command: 1A 00 0F 00 1C 00 00 00 00 00 00 00 00 00 00 00 Last Control Sense: 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 C0 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (I can't find a reference for interpreting this) and further writes fail: # dd if=tlb-usr.dump0.gz of=/dev/nsa0 bs=65536 dd: /dev/nsa0: Operation not permitted 1+0 records in 0+0 records out 0 bytes transferred in 0.033122 secs (0 bytes/sec) # whoami root It is able to read back the written data: # mt rewind; tcopy file 0: block size 65536: records 0 to 13190 file 0: block size 22528: record 13190 file 0: eof after 13191 records: 864442368 bytes Any suggestions? -- Trevor Blackwell tlb@tlb.org (650) 776-7870