From owner-freebsd-questions@FreeBSD.ORG Thu Mar 19 23:38:00 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D44D01065672 for ; Thu, 19 Mar 2009 23:38:00 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 81C648FC1A for ; Thu, 19 Mar 2009 23:38:00 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id n2JNbxm0079556; Thu, 19 Mar 2009 17:37:59 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id n2JNbxfZ079553; Thu, 19 Mar 2009 17:37:59 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 19 Mar 2009 17:37:59 -0600 (MDT) From: Warren Block To: Jaime In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (wonkity.com [127.0.0.1]); Thu, 19 Mar 2009 17:37:59 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: Formatting a tape? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2009 23:38:01 -0000 On Thu, 19 Mar 2009, Jaime wrote: > On Thu, Mar 19, 2009 at 1:39 PM, Andrew Hamilton-Wright wrote: >> What happens if you use dd to try and write to the tape? >> >> The command >> dd if=/dev/zero of=/dev/sa0 count=8 >> should print out: >> 8+0 records in >> 8+0 records out > > I tried this and the output was: > 8+0 records in > 8+0 records out > 4096 bytes transferred in 0.036611 secs (111879 bytes/sec) Small write works okay... > So then I tried my backup script (which is basically a tar command) > and got this on the console: > (sa0:ahc0:0:6:0): Unexpected busfree in Data-out phase > SEQADDR == 0x86 > (sa0:ahc0:0:6:0): lost device > (sa0:ahc0:0:6:0): failed to write terminating filemark(s) > (sa0:ahc0:0:6:0): tape is now frozen- use an OFFLINE, REWIND, or MTEOM > command to clear this state. > (sa0:ahc0:0:6:0): removing device entry Bigger write fails... > On the ssh terminal / standard output, I got this: > tar: Write error: Input/output error > > Now "camcontrol devlist" doesn't show the tape drive, even though it > did before. And the device acts flaky. That screams "SCSI termination problem" to me. That would also be consistent with most/all of the tapes failing, because it's not the tapes. ... > I'm going to tinker some more and see if I can get this drive working > again. I'll also try another tape. (Its worth noting that I DID > manage to get a tape working thanks to mt -f /dev/sa0 fsf 1 && mt -f > /dev/sa0 rewind.) More info later. Try that one working tape again. Betcha it "fails". -Warren Block * Rapid City, South Dakota USA