1827245 Members
2094 Online
109716 Solutions
New Discussion

gz file size

 
SOLVED
Go to solution
emily_3
Frequent Advisor

gz file size

I tried to backup those files in one directory to *.gz file by using gzip command, but it always failed when the *.gz file reach 2G.
Is there any way to change the limitation of this file size?
7 REPLIES 7
Jerome Baron
Respected Contributor

Re: gz file size

gzip version 1.2.4 and earlier do not support large files. gzip version 1.2.4a
(released September, 1999) supports file sizes of "over 4GB"

Regards,
Jerome
eran maor
Honored Contributor
Solution

Re: gz file size

Hi

it seem that you have a limit of 2 g.b on your file system .

check the file system if he is for largefiles with the command :
fsadm -F vxfs /dev/vg00/rlvol%%


if not you can change it with the command :
/usr/sbin/fsadm -F vxfs -o largefiles /dev/vg02/rlvol2


i will also recommend you to install the new version of the gzip from :
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gzip-1.3.3/

this version also support gzip over 2 g.b
love computers
Steve Steel
Honored Contributor

Re: gz file size

Hi


look at fsadm

You probably do not have largefiles on that disc.

You can check and change with fasdm

Also read /usr/share/doc/lg_files.txt

Regards

Steve Steel

Quote of the moment
-------------------
"We are drowning in information but starved for knowledge."
-- John Naisbitt
If you want truly to understand something, try to change it. (Kurt Lewin)
Stefan Farrelly
Honored Contributor

Re: gz file size

You can download the later version of gzip here;

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

Im from Palmerston North, New Zealand, but somehow ended up in London...
John Palmer
Honored Contributor

Re: gz file size

Yes, make sure you use the GNU gzip command available from: http://hpux.cs.utah.edu/hppd/hpux/Gnu/gzip-1.3.3/
and also ensure that the filesystem that holds your zipped files is largefile enabled. If it isn't, you can change it with fsadm, see man fsadm_vxfs.

Regards,
John
Chris Airriess
New Member

Re: gz file size

It could be a filesystem problem, but maybe not--I can make files greater than 2.147 GB using dd or tar, but if the output is piped through gzip (1.3.3 from RedHat 7.3) the file is truncated at that size.

As a workaround, I am running gzip to stdout and piping the output to dd which can write files without this size limitation.

C
Steven E. Protter
Exalted Contributor

Re: gz file size

Another important factor.

Once the filesystem is fixed, do not install PHCO_26422(11.11) or ints equivalent on any other HP-UX release.

That little bugger updates the pax utility letting it pack files between 2 and 8 Gigabytes into the golden image.

The current problem is that pax_iux doesn't handle the same filesize and your unpacking process will hang.

Just a little pitfall you want to avoid. I fell in, it hurt. Real bad.

Zero point this if you think its useless.

Hi and good luck.

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