From owner-freebsd-questions@FreeBSD.ORG Wed Feb 2 19:04:31 2005 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 87CD816A4CE for ; Wed, 2 Feb 2005 19:04:31 +0000 (GMT) Received: from sdf.lonestar.org (mx.freeshell.org [192.94.73.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 132EA43D2F for ; Wed, 2 Feb 2005 19:04:31 +0000 (GMT) (envelope-from pieckiel@sdf.lonestar.org) Received: from sdf.lonestar.org (IDENT:pieckiel@sverige.freeshell.org [192.94.73.4]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j12J3jhJ005165 for ; Wed, 2 Feb 2005 19:03:45 GMT Received: (from pieckiel@localhost) by sdf.lonestar.org (8.13.1/8.12.8/Submit) id j12J3jxB008142 for freebsd-questions@freebsd.org; Wed, 2 Feb 2005 14:03:45 -0500 (EST) Date: Wed, 2 Feb 2005 14:03:45 -0500 From: "Kevin A. Pieckiel" To: freebsd-questions@freebsd.org Message-ID: <20050202190345.GA8804@SDF.LONESTAR.ORG> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: gtar failing, please help! 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: Wed, 02 Feb 2005 19:04:31 -0000 I have some backup scripts that manipulate a tape library and tape drive to perform my nightly backups. Ever since the switch from gtar to bsdtar in the base system, gtar fails to write any data to my tape and usually puts my SCSI bus in an unusable state. I must then issue a camcontrol reset command to free up the tape drive for use. Unfortunately, I can't use dump or bsdtar because my data spans multiple tapes. Now I'm stuck without any backup solution because bsdtar/dump don't have the features I need, and gtar no longer writes to my tapes. (I understand that dump will support multi- tape archives, but the provision is with user intervension. I'm not going to wake up at 0-dark-30 on Sunday mornings to manually tell my tape library to switch tapes!) What broke gtar? How do I fix it? Please help! Below, you'll find some system info including program versions and exact commands I'm using to replicate the problem. In the second section, you'll see that bsdtar works great. Too bad it doesn't allow multi-tape archives! The third section shows the failing gtar (it does this on all versions installed) and how it locks up my tape drive until I reset the SCSI bus. What other info might you need to help me fix this? Thanks! ----- 8< ----- # uname -a FreeBSD hr-stc-file2.smartrafficenter.net 5.3-STABLE FreeBSD 5.3-STABLE #4: Thu Jan 13 19:07:12 EST 2005 toor@hr-stc-file2.smartrafficenter.net:/usr/obj/usr/src/sys/HR-STC-FILE2 i386 # which gtar /usr/bin/gtar # gtar --version tar (GNU tar) 1.13.25 Copyright (C) 2001 Free Software Foundation, Inc. This program comes with NO WARRANTY, to the extent permitted by law. You may redistribute it under the terms of the GNU General Public License; see the file named COPYING for details. Written by John Gilmore and Jay Fenlason. # /usr/local/bin/gtar --version tar (GNU tar) 1.15.1 # tar --version bsdtar 1.01.011, libarchive 1.01.013 Copyright (C) 2003-2004 Tim Kientzle # camcontrol inquiry 2:1:0 pass2: Removable Sequential Access SCSI-2 device pass2: Serial Number 0062016715 pass2: 80.000MB/s transfers (40.000MHz, offset 31, 16bit) # camcontrol inquiry 2:0:0 pass1: Removable Changer SCSI-2 device pass1: Serial Number 67500160 pass1: 3.300MB/s transfers ----- 8< ----- # tar -cvf /dev/nsa0 -b 128 --preserve --totals * a root a root/.snap a root/.snap/backup.snap a root/dev a root/tmp a root/usr a root/var a root/stand a root/stand/etc a root/stand/etc/defaults a root/stand/etc/defaults/rc.conf a root/stand/etc/netconfig a root/stand/etc/protocols a root/stand/etc/services a root/stand/etc/group a root/stand/help a root/stand/help/COPYRIGHT.hlp a root/stand/help/README.TXT a root/stand/help/ERRATA.TXT a root/stand/help/anonftp.hlp a root/stand/help/EARLY.TXT a root/stand/help/tcp.hlp a root/stand/help/RELNOTES.TXT a root/stand/help/HARDWARE.TXT a root/stand/help/INSTALL.TXT a root/stand/help/configure.hlp ... ----- 8< ----- # gtar -cvf /dev/nsa0 -b 128 --preserve --totals * root/ root/.snap/ root/.snap/backup.snap root/dev/ root/tmp/ root/usr/ root/var/ root/stand/ root/stand/etc/ root/stand/etc/defaults/ root/stand/etc/defaults/rc.conf root/stand/etc/netconfig root/stand/etc/protocols root/stand/etc/services root/stand/etc/group root/stand/help/ root/stand/help/COPYRIGHT.hlp root/stand/help/README.TXT root/stand/help/ERRATA.TXT root/stand/help/anonftp.hlp root/stand/help/EARLY.TXT Total bytes written: 0 (0B, 0B/s) gtar: /dev/nsa0: Wrote only 0 of 65536 bytes gtar: Error is not recoverable: exiting now # mt errstat mt: /dev/nsa0: Invalid argument