The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
tar: write error: unexpected EOF jabe UNIX for Dummies Questions & Answers 4 12-05-2007 07:40 PM
tar: write error: unexpected EOF vijayakumar.pc Shell Programming and Scripting 7 04-19-2007 12:41 PM
read/write socket error gio High Level Programming 2 04-17-2007 12:52 AM
cpio error. alisevA3 UNIX for Dummies Questions & Answers 1 05-03-2006 01:04 PM
Error in cpio? redlotus72 UNIX for Dummies Questions & Answers 3 06-28-2005 12:17 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-07-2006
fidodido fidodido is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 49
cpio write i/o error

Hiyas. Last night I was testing one of our shell script (not made by me) that is having some problems. What it does is that it backups some oracle data to tape and it is failing. I put the commands manually that it uses inside it to make the backup, in order to debug where it was failing. I ran the commands and it returned back, after like 12 hours, with the below error:

Code:
cpio: write : I/O error
cpio: A write error has occurred.

and thus I wonder what could cause cpio to do this? Also, it is _normal_ for cpio to take so much time for just 10GB ? The command I used was

Code:
cpio -ov -O/dev/ntape/tape0

Right now I am doing the same thing but with tar.. it seems to go a lot faster than cpio.

Thanks!
  #2 (permalink)  
Old 04-07-2006
fidodido fidodido is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 49
Ok. Apparently, the tar finished. But listing the tape contents only gives me three files, whereas they are more than 30.

Code:
# tar tvf /dev/tape/tape0
blocksize = 256
-rw-r--r--   202/0      977 Mar  3 06:37:57 2006 01032006Tarjeta.dat.Z
-rw-r--r--   202/0     7088 Mar  2 05:48:20 2006 01032006aamcc.dat.Z
-rw-r--r--   202/0     9393 Mar  2 02:02:55 2006 01032006aamcg.dat.Z
#

  #3 (permalink)  
Old 04-07-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
The error message is pretty self descriptive. The kernel tried to write data to tape and the tape driver returned an error. If this used to work ok, it is probably a hardware problem most likely with whatever tape drive you are using. Your tape driver may have logged a message using whatever facility is available on whatever OS you are using. Depending on which model of what family tape drive you have, there may be some operator maintenance that could be tried such as cleaning the transport and/or read/write heads. Also the medium on which you were writing may be bad and you may be able to try another instance of that medium. That's about all I can do with this error report. Oh well, at least you let "tape" slip out. That's more detail than we usually get.
  #4 (permalink)  
Old 04-07-2006
fidodido fidodido is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 49
Thanks Perderabo. I forgot to include my unix version, sorry for that. It is HP Tru-64 v.5.1b. The media we are using is HP's DDS4, I believe it is 40GB compressed and 20gb uncompressed.

What can you say about the last part with tar ? what I did was this

Code:
tar cvf dev/tape/tape0 *032006*

there are like 30 files in total with over 9GB of data. Only three of these are shown when I list the tape contents. I will try with another tape now, as you suggested.

Thanks!
  #5 (permalink)  
Old 04-07-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
At first you had a slash in front of the dev. Now you don't. Which is it really? It makes a big difference. You are doing a v in cvf so it should display the filenames. Are there 30 there...and then only 3 with tvf? Or 3 both times? If 30 during the cvf and 3 during the tvf, which 3??? The first 3? The last 3? 3 random selections? Did you rewind the tape bewteen the cvf and the tvf? If so how? Did you try a cleaning tape?
  #6 (permalink)  
Old 04-07-2006
fidodido fidodido is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 49
That was a typo, it is /dev/tape/tape0. When I list the tape contents, it always returns the first 3 files that it tar'ed when using cvf. Please, see the attached file, so you can actually see the oputput. It doesn't seem normal to me.
Attached Files
File Type: txt backup_output.txt (27.3 KB, 17 views)
Closed Thread

Bookmarks

Tags
cpio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0