From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31261 invoked from network); 3 Feb 1999 05:42:51 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 3 Feb 1999 05:42:51 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id AAA07359 for ; Wed, 3 Feb 1999 00:35:54 -0500 Received: by paralleldata.com from localhost (router,SLMail V2.5); Tue, 02 Feb 1999 23:38:48 -0600 Received: by paralleldata.com from paralleldata.com (209.196.65.100::mail daemon; unverified,SLMail V2.5); Tue, 02 Feb 1999 23:38:47 -0600 Sender: "Wsb" Message-ID: <36B7EE93.C185E014@paralleldata.com> Date: Wed, 03 Feb 1999 06:37:07 +0000 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Tape drive problems References: <001701be4f12$b699f020$2be008cf@goliath.discordia.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit J wrote: > > I have a DSS tape drive connected to a UDB. I can read and write > test files to and from it just fine. I have a backup script that runs > each night which uses tar to dump a bunch of file systems to tape. > After the backup runs for a while, I get... > > tar: Cannot write to /dev/tape: Input/output error > tar: Error is not recoverable: exiting now > > Thinking there was a problem with the tape drive, I got another one > (similar, but not exaclty the same model) and some new tapes. And it does > exaclty the same thing. I'm not running out of space on the tape and I > have used a cleaning tape on the drives. So now I'm wondering if there is > some bug in the tape driver or tar. Has anyone seen something like this? > And is there a way to get more error information that just Input/output > error? > > The details... > > 166Mhz UDB > Redhat 5.1 > Kernel 2.0.35 > Tape drive: > Host: scsi0 Channel: 00 Id: 05 Lun: 00 > Vendor: ARCHIVE Model: Python 28388-XXX Rev: 4.98 > Type: Sequential-Access ANSI SCSI revision: 02 > > Backup script: > mt -f /dev/tape rewind > mt -f /dev/tape datcompression 1 > mt -f /dev/tape status > date > /dev/tape > cat /etc/fstab > /dev/tape > awk '{ if ($3=="ext2") { cmd = "echo " $2 "> /dev/tape ; tar clf /dev/tape > " $2; print cmd; system(cmd)}}' < /etc/fstab > date > /dev/tape > mt -f /dev/tape rewind > mt -f /dev/tape status > mt -f /dev/tape offline > > Results from backup script: > Compression on. > SCSI 2 tape drive: > File number=0, block number=0, partition=0. > Tape block size 512 bytes. Density code 0x13 (DDS (61000 bpi)). > Soft error count since last status=0 > General status bits on (41010000): > BOT ONLINE IM_REP_EN > echo /> /dev/tape ; tar clf /dev/tape / > tar: Removing leading `/' from absolute path names in the archive > tar: Removing leading `/' from absolute links > echo /usr> /dev/tape ; tar clf /dev/tape /usr > tar: Removing leading `/' from absolute path names in the archive > tar: Removing leading `/' from absolute links > tar: Cannot write to /dev/tape: Input/output error > tar: Error is not recoverable: exiting now > echo /var> /dev/tape ; tar clf /dev/tape /var > tar: Removing leading `/' from absolute path names in the archive > tar: Cannot write to /dev/tape: Input/output error > tar: Error is not recoverable: exiting now > ... > > So, does anyone have any ideas? Please help, before I go insane trying > to figure this out. > One possibility. Are you trying to tar more than 2GB? If so, watch out. Last time I tried, tar would bail out with an error if you tried. One way around it is to pipe the tar command into a 'dd' that does the write to the tape. Something like: tar clf - / | dd of=/dev/tape bs=10240 I believe that was what I did when I had the problem. I don't try back up more than 2GB at a time anymore. It's too bad cause I could backup lots on my DLT's in one go. I now burn CD's of my SW trees for backup. pretty much anything else is expendable. Wes Wes