Operating System - HP-UX
1833571 Members
3142 Online
110061 Solutions
New Discussion

Re: Urgent !!! restore data failed!!!

 
Ocean Lee
Occasional Advisor

Urgent !!! restore data failed!!!

Hi,
I want to create a TAR file for 6GB data in dir ./work. I use the command "tar cvf work.tar ./work",
everything seems fine at first. because my filesystem only supports 2GB large per-file, so
when the work.tar reached 2GB, it ask me to add new device, then I touched a new null file named
work1.tar, it went on to write the data into file work1.tar. by this way, at last I get three files
named: work.tar, work1.tar and work2.tar.
when I use the command "tar xvf work.tar" to extract, 2GB data restored fine, but at the end
of the untar action, an error occur:

Tar: error! blocksize changed

then untar stoped.
So I can only extract the first 2GB files. I attempt some other way:
upgrade the filesystem to support larger then 2GB per-file, then cat the work.tar, work1.tar,
work2.tar to one file work_all.tar. then I extract from the work_all.tar file, no error occured
but I still only can extract first 2GB data.
4 REPLIES 4
Vijeesh CTK
Trusted Contributor

Re: Urgent !!! restore data failed!!!



hi

tar will support only 2 GB size..if u want new tar which will support more athn 2 GB file size u can download it fm hpux porting site http://hpux.ee.ualberta.ca/
and install it on ur server

CTK
harry d brown jr
Honored Contributor

Re: Urgent !!! restore data failed!!!

Like CTK said, get the GNU TAR ported by HP:

http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25/

also add the latest gzip:

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gzip-1.3.3/

and look for other utilities like "lsof"

live free or die
harry
Live Free or Die
Dragan Krnic_2
Advisor

Re: Urgent !!! restore data failed!!!

Your problem maybe your shell. Piping either a large file or several 2 GB files to normal tar always worked for me when I used the plain old /usr/bin/ksh.
no quote
Alexander M. Ermes
Honored Contributor

Re: Urgent !!! restore data failed!!!

Hi there.
The piping idea seems the way to go.
We use to this during the export of Oracle databases by piping the export data into a .dmp-file through a pipe file created with mkfifo. If you ned more details, let us know.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"