cancel
Showing results for 
Search instead for 
Did you mean: 

Help with GZIP

 
Ragni Singh
Super Advisor

Help with GZIP

Hello all, what command or how can I zip up these huge files?

-rw-r--r-- 1 root other 13201392128 Jul 13 20:10 f480a_local.tar
-rw-r--r-- 1 root other 33286085632 Jul 13 17:52 f480a_raid1.tar
-rw-r--r-- 1 root other 13312 Jul 13 22:49 f480a_raid2.tar
-rw-r--r-- 1 root other 68500506112 Jul 13 21:18 f480a_raid4.tar


I tried doing and get the following message..

[root@db2.pmonline.com]/raid1#gzip f480a_local.tar
f480a_local.tar: Value too large for defined data type
7 REPLIES
Stuart Browne
Honored Contributor

Re: Help with GZIP

Pipes are your friend.

gzip -cd f480a_raid1.tar | tar tvf -

to do a listing (assuming a tar-gz file).
One long-haired git at your service...
skt_skt
Honored Contributor

Re: Help with GZIP

gzip does not support more than 2GB size.Use compress instead.

compress filename
Stuart Browne
Honored Contributor

Re: Help with GZIP

What ?! gzip should have no problems with large files under Linux!

.. and now that I've read this again, I think i told you the wrong direction..

gzip < f480a_raid1.tar > f480a_raid1.tar.gz

Using this method should work regardless of file size.

If it is a largefile issue, what version of gzip are you using ? It'd have to be old to not support large-files. We're talking pre-2002/2001.
One long-haired git at your service...
Steven Schweda
Honored Contributor

Re: Help with GZIP

> I tried doing and get the following message..

As usual, it might help if you showed the
actual command you used, and told us the
version of the program you're using.

gzip -V
sshakthi
Advisor

Re: Help with GZIP

Try bzip2

[option -1 to 9, 9 for best compression)

have a look at http://www.mkssoftware.com/docs/man1/bzip2.1.asp
Court Campbell
Honored Contributor

Re: Help with GZIP

I have a feeling this is Solaris. Regardless, you need to update gzip.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Yogeeraj_1
Honored Contributor

Re: Help with GZIP

hi,

in the worst case, you may also choose to split each file into more *manageable* sizes before doing the gzip.

hope this helps too!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)