Operating System - HP-UX
1822718 Members
3799 Online
109644 Solutions
New Discussion юеВ

Re: tar to support more than 2 GB

 
Balaji N
Honored Contributor

tar to support more than 2 GB

Does tar support data of more than 2 GB.
If not are there any work arounds?

Thanks for ur time.
Regards
Balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
10 REPLIES 10
Paula J Frazer-Campbell
Honored Contributor

Re: tar to support more than 2 GB

Hi

Tar have 2 gig limit:-

gzip the big file first see man gzip.


Paula
If you can spell SysAdmin then you is one - anon
Alexander M. Ermes
Honored Contributor

Re: tar to support more than 2 GB

Hi there.
No, tar does not work with files larger than 1.99 GB.
As a workaround try fbackup/frestore in command line mode. From SAM it does not work with these large files.
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"
Animesh Chakraborty
Honored Contributor

Re: tar to support more than 2 GB

The Answere is NO.

tar, cpio, pax, ftio information is published in the largefiles white
paper but it not readily known that this is where the answer lies.

According to /usr/share/doc/lg_files.txt:
"4.2.1 tar, cpio, pax, ftio

Some of the backup commands, specifically tar, cpio, pax (tar & cpio
formats), and ftio (because it creates cpio format archives) are
restricted from supporting large files due to standards defined
headers in the archives. Although the headers allow archival of files
upto 8GB, there is no guarantee that there will be no attempt to
restore these files on a system that does not support large
files. These commands will therefore support files up to 2GB
only. Attempts to archive any files >2GB will fail, and the files will
not be added to the archive."

The fbackup command does support largefiles as well as the GNU backup
utils like GNUtar. GNUtar can be found at:
http://hpux.asknet.de/hppd/hpux/Gnu/tar-1.13.18

Regards
Animesh
Did you take a backup?
Frederic Sevestre
Honored Contributor

Re: tar to support more than 2 GB

Hi,
tar does not support files larger than 2Gb. You should use fbackup or ar.
Regards
Crime doesn't pay...does that mean that my job is a crime ?
James R. Ferguson
Acclaimed Contributor

Re: tar to support more than 2 GB

Hi:

The limitations of support by 'tar', 'cpio' and 'pax' are well documented in their respective man pages:

"Because of industry standards and interoperability goals, [pax|tar|cpio] does not support the archival of files larger than 2GB or files that have user/group IDs greater than 60K. Files with user/group IDs greater than 60K are archived and restored under the user/group ID of the current process."

If you are dealing solely with HP servers, I'd use 'fbackup/frecover' to support >2GB handling.

Regards!

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: tar to support more than 2 GB

No. That is a 'feature' of the HP supplied tar. You can download GNU's tar if you truly need tar formats larger than 2GB to transfer to other platformsd. If you simply need to transfer with the HP world, then use fbackup/frestore.
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: tar to support more than 2 GB

If you really want tar, especially for files greater than 2gb, then download gnu's tar:

http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.22/

Although it will only be portable to other sites with GNU's tar, fbackup and frecover only work with hpux.


live free or die

hbrown
Live Free or Die
Victor_5
Trusted Contributor

Re: tar to support more than 2 GB

tar does not support over 2G, try to use fbackup/frecover instead.

Shawn
Roger Baptiste
Honored Contributor

Re: tar to support more than 2 GB


Tar is limited to 2GB. One workaround
to that is to run a compress on the file
and then tar it; or if your intention is
to tar a whole directory, then run
compressdir on the directory and then
do a tar. Ofcourse, this is assuming that
after compress the data falls within the
2Gb limit.

HTH. Also, how about assigning points ?

-Raj
Take it easy.