From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 25 04:17:05 2003 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B6E916A4BF for ; Mon, 25 Aug 2003 04:17:05 -0700 (PDT) Received: from siralan.org (12-223-225-141.client.insightbb.com [12.223.225.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id B69F643FE0 for ; Mon, 25 Aug 2003 04:17:04 -0700 (PDT) (envelope-from mikes@siralan.org) Received: from siralan.org (localhost [127.0.0.1]) by siralan.org (8.12.9/8.12.9) with ESMTP id h7PBH2i1018125; Mon, 25 Aug 2003 06:17:03 -0500 (EST) (envelope-from mikes@siralan.org) Received: (from mikes@localhost) by siralan.org (8.12.9/8.12.9/Submit) id h7PBH1SA018124; Mon, 25 Aug 2003 06:17:01 -0500 (EST) From: "Michael L. Squires" Message-Id: <200308251117.h7PBH1SA018124@siralan.org> In-Reply-To: <3EF37A16.15316.2772DF95@localhost> "from Dan Langille at Jun 20, 2003 09:18:14 pm" To: Dan Langille Date: Mon, 25 Aug 2003 06:17:01 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: freebsd-scsi@freebsd.org Subject: Re: SCSI tape data loss X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2003 11:17:05 -0000 I ran "tapetest.c" under 5.1-RELEASE (without pthread under 5.1-RELEASE, first part with pthread under 5.1-RELEASE, second part (scan) under 5.1-RELEASE-p2). 216012 blocks written/read without pthreads 217073 blocks written/read with pthreads (same!) Hardware is SuperMicro P6DGH, dual PIII/850, onboard AIC7896, DLT4000 tape drive, Seagate ST423451W 23GB HD. --------------------------results---------------------------------------------- dmesg: FreeBSD 5.1-RELEASE #1: Sat Aug 23 14:56:45 EST 2003 root@mikes.siralan.org:/usr/obj/usr/src/sys/MIKES CPU: Intel Pentium III (851.93-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 ahc0: port 0xe400-0xe4ff mem 0xffafe000-0xffafefff irq 10 at device 14.0 on pci0 aic7896/97: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs ahc1: port 0xe800-0xe8ff mem 0xffaff000-0xffafffff irq 10 at device 14.1 on pci0 aic7896/97: Ultra2 Wide Channel B, SCSI Id=7, 32/253 SCBs sa0 at ahc1 bus 0 target 4 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 10.000MB/s transfers (10.000MHz, offset 15) output from tapetest.c (edited) weof_dev Wrote EOF to /dev/sa0 Write failed. Last block written=216012. stat=0 ERR=Unknown error: 0 *rewind Rewound /dev/sa0 *scan Starting scan at file 0 216012 blocks of 64512 bytes in file 0 End of File mark. End of File mark. End of tape Total files=1, blocks=216012, bytes = 1050464256 ioctl MTWEOF error on /dev/sa0. ERR=Input/output error. Bad status from weof -1. ERR=Input/output error Write failed. Last block written=217073. stat=-1 ERR=No space left on device *rewind Rewound /dev/sa0 *scan Starting scan at file 0 Bad status from read -1. ERR=Input/output error 217073 blocks of 64512 bytes in file 0 *