Operating System - HP-UX
1753511 Members
5378 Online
108795 Solutions
New Discussion юеВ

Re: tar is not working with a file more than 8GB

 
Yaboto
Super Advisor

tar is not working with a file more than 8GB

Hi,

Please advise me on what to do to make tar backup and compress files that are more than 8GB.

Regards,
Berenger
12 REPLIES 12
Steven E. Protter
Exalted Contributor

Re: tar is not working with a file more than 8GB

Shalom,

Make smaller files.

tar had to be patched to get up to the 8 GB file limit. I know of no versions that will make files bigger than that.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Javed Khan_1
Valued Contributor

Re: tar is not working with a file more than 8GB

Hi,

try gnu tar (gtar) , you need to download and install this freeware on your system

Regards,
Javed
Never Give Up
Javed Khan_1
Valued Contributor

Re: tar is not working with a file more than 8GB

Patrick Wallek
Honored Contributor

Re: tar is not working with a file more than 8GB

>> I know of no versions that will make files bigger than that.

Actually, tar can **CREATE** files of any size.

The HP-UX native tar cannot **READ/ARCHIVE** files that are larger than 8GB in size.

Steven Schweda
Honored Contributor

Re: tar is not working with a file more than 8GB

GNU "tar" is the easy answer. Apparently
it's up to version 1.20 now.

http://www.gnu.org/software/tar/

The problem with "tar" was a quirky (and
limited) format for storing file sizes. One
relatively simple change squeezed a few more
bits in to get from 2GB to 8GB. The next
(even less compatible) change switched from
ASCII octal digits to raw binary, which
should be good for a while.
Rasheed Tamton
Honored Contributor

Re: tar is not working with a file more than 8GB

Hi,

You can use fbackup instead of tar. If the archive is to be moved to another OS, then as SEP said make the file smaller.

Use split command to split the large file to smaller sizes; then use tar and gzip and move the file to destination server. Unzip and untar it there; then cat the split files to the original one.

If the original file is 10000MB file; you could split it to two 5000MB files as below:

split -b5000m mylargefile
[it will create two 5000Mb files called xaa & xab] ;

tar/gzip and move to the destination host.
untar/gunzip, you will get back the xaa/ab

cat x* > mylargerfile

Regards,
Rasheed Tamton.
Sajjad Sahir
Honored Contributor

Re: tar is not working with a file more than 8GB

Dear berag

tar support lesser than 2GB size for backup
if u want more more than 2GB use fbackup

thanks and regards

Sajjad Sahir
Steven Schweda
Honored Contributor

Re: tar is not working with a file more than 8GB

> tar support lesser than 2GB size [...]

GNU "tar" has no such limitation. Not at
2GB, not at 8GB. (It handles long file
names, too.)

Yes, there are many ways to work around the
limitations of an old "tar" program, but, as
I said, the _easy_ way is to use a better
"tar" program, like, say, GNU "tar".
James R. Ferguson
Acclaimed Contributor

Re: tar is not working with a file more than 8GB

Hi Beraq:

> Rasheed: You can use fbackup instead of tar.

Beware that this is fine if your copy is going to be from HP-UX and to HP-UX (only!). 'fbackup' and 'frecover' are HP-UX ONLY.

As Steven said, the GNU tar doesn't have an 8GB limitation. As an open-source tool you could easily install it on any UNIX/LINUX necessary, too. Thus, it is one avenue that you might want to explore.

A better definition of your environments and requirements would lead to better, more definitive solutions.

Regards!

...JRF...