LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices

Reply
 
Search this Thread
Old 09-07-2008, 05:28 PM   #1
rma1
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
CPIO Backup End of Media


I'm having problems getting backups working on SCO OpenServer 5.7.

using the following command:

find / -depth -print | cpio -ocvB -O /dev/rct0

some files are backed up then the following error is reported:

Reached end of medium on output.
Device /dev/rct0: Change to part 2 and press RETURN key. [q] q

The tape device is DDS4 (20Gb) and there is only 3Gb of data on the machine so there should be plenty of room on a single tape.

I've tried a different tape drive with the same issue so I don't think it's a hardware problem.

Any help would be appreciated.
 
Old 09-08-2008, 09:59 AM   #2
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: Slackware64 14.1 Multi-Lib
Posts: 125

Rep: Reputation: 22
This might help you:

http://www.mkssoftware.com/docs/man1/cpio.1.asp


"NOTES

When using its default binary method of storage, cpio cannot save files larger than two gigabytes in size in an archive. When storing archives in ASCII (because of -c), cpio cannot save files larger than eight gigabytes in size in an archive. However, other programs that extract files from cpio archives may be unable to properly extract files larger than two gigabytes and cpio issues a warning to that effect when you attempt to save such a file. "


You might want to try to compress the data first:


Code:
# find / | cpio -ocvB | gzip >/dev/rct0
I use the above code all the time to back up my system, but I write it to a file and then burn the file to a CD/DVD:

Code:
# find /usr | cpio -ocv | gzip >usr.cgz

Or just you could re-direct standard out to the device:

Code:
# find / -depth -print | cpio -ocvB >/dev/rct0
Are you really gaining anything with changing the buffer size (-B) from 512???
 
Old 09-10-2008, 08:06 PM   #3
rma1
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your reply,

The problem isn't with the cpio command though, It works fine if I direct it to a file. The problem lies with the set-up of the tape dive I think. If you run 'tape amount' after a backup there has always been only 256K written to the tape. I guess something must have been incorrectly set when the tape driver was configured
 
Old 10-30-2008, 11:19 AM   #4
mkaustin
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Quote:
using the following command:

find / -depth -print | cpio -ocvB -O /dev/rct0

some files are backed up then the following error is reported:
We've been using DDS2/3/4 tape drives for quite a while. SCO 3.2v5.0.7 works fine w/ cpio.
We typically use the command:
find . -depth -print | cpio -ovcO /dev/rStp0 -C 10240 -K 10000000

The actual device name should be rStp0 instead of rct0. The rct0 is a legacy name.
The -C is the record size (in bytes) to write to the tape.
The -K is the volume size in 1K blocks. 10 million will = 10 Gb on the tape.
On some systems we have had to use the command "tape -a 0 setblk". This is usually only on reading the tapes so this it will seek the record size when it start to read.
 
  


Reply

Tags
backup, cpio, sco, tape


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Full Backup With Cpio! grim2 Linux - General 6 02-09-2012 06:43 AM
cpio dies when spanning media duckie316 Linux - Server 4 05-09-2007 08:28 AM
Cannot fork after running CPIO backup sgamble2 Red Hat 1 10-28-2006 07:13 AM
retrieving tape backup after using cpio and gzip jazbinschek Linux - Newbie 8 12-29-2005 10:31 PM
Using cpio to backup to CDROM Cyberhund Linux - Newbie 3 07-21-2004 01:49 PM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration