From owner-freebsd-questions Mon Nov 4 03:40:25 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA00792 for questions-outgoing; Mon, 4 Nov 1996 03:40:25 -0800 (PST) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA00775 for ; Mon, 4 Nov 1996 03:40:13 -0800 (PST) From: Greg Lehey Received: from freebie.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0vKNNp-000Qq2C; Mon, 4 Nov 96 12:40 MET Received: (grog@localhost) by freebie.lemis.de (8.8.2/8.6.12) id MAA00750; Mon, 4 Nov 1996 12:27:05 +0100 (MET) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Message-Id: <199611041127.MAA00750@freebie.lemis.de> Subject: Re: Tape drive problems? maybe? In-Reply-To: <199610041714.TAA00465@ghost.mep.ruhr-uni-bochum.de> from Robert Eckardt at "Oct 4, 96 07:14:46 pm" To: roberte@mep.ruhr-uni-bochum.de (Robert Eckardt) Date: Mon, 4 Nov 1996 12:27:04 +0100 (MET) Cc: questions@FreeBSD.org (FreeBSD Questions) X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Robert Eckardt writes: > >> I am running FreeBSD 2.1.5-RELEASE and have just bought a shiny new >> Exabyte 8505XLI tape drive. I am attempting to back up several filesystems >> as different tape files. e.g. >> >> cd /somewhere ; tar cf /dev/nrst0 * >> cd /somewhere/else ; tar cf /dev/nrst0 * >> >> I have done this before with other UNIXes. >> >> Now I am attempting to restore these directories (actually just verify >> that this is happening) with: >> mt rewind >> tar tf /dev/nrst0 > filelist.1 >> tar tf /dev/nrst0 > filelist.2 > > Try: > tar tf /dev/nrst0 > filelist.1 > tar tf /dev/nrst0 > /dev/null > tar tf /dev/nrst0 > filelist.2 > > I found with my Wangtek that the tape driver has problems with EOF marks. > mt -f /dev/nrst0 fsf doesn't work at all (for me) > -- usually the SCSI bus locks. > >> Does anybody know what is going on? Robert's on the right track. Streaming tapes, especially helical-scan versions, aren't very good about positioning on a tape mark, and *sometimes* you won't find the next file first time: you'll be positioned somewhere in the tape mark, which on Exabytes are quite large. Someone once told me that they're the equivalent of a megabyte or two. I do regular backups to DDS and Exabyte drives every night, and then read in the files again with this script fragment: for i in $filesystems; do echo +++ Backup of file $file, file system $i >$backuplist/$tapeid.$file try=1 while [ `wc -l $backuplist/$tapeid.$file | awk '{print $1}'` -lt 2 -a $try -lt 4 ]; do try=`expr $try + 1` /opt/bin/tar tvflb $TAPE 128 >>$backuplist/$tapeid.$file done /opt/bin/gzip $backuplist/$tapeid.$file& file=`expr $file + 1` done Greg