Operating System - HP-UX
1757029 Members
1838 Online
108858 Solutions
New Discussion юеВ

Relationship of max?siz to file size limits

 
SOLVED
Go to solution
Jeff Schussele
Honored Contributor

Relationship of max?siz to file size limits

All,

I have a system (N-4000 11.0) with an FS that does have largefiles enabled that will not allow a approx 2.1 Gb file to be created - via gunzip. I verified with ulimit -a that root has no filesize limit...duh. Yet root cannot gunzip this file - get file too large msg.

The only thing I can think of that's stopping me would be the max?siz kernel parameters - they are:

masxdsiz 1,073,741,824
maxdsiz_64bit same
maxssiz 33,554,432
maxssiz_64bit same
maxtsiz 134,217,728
maxtsiz_64bit 1,073,741,824

Does anyone see the problem here?

Thanks,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor
Solution

Re: Relationship of max?siz to file size limits

Hi Jeff:

Your version of 'gunzip' may not support largefiles. Try downloading this version from the HP porting center:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gzip-1.3.3/

Regards!

...JRF...
Steven Sim Kok Leong
Honored Contributor

Re: Relationship of max?siz to file size limits

Hi Jeff,

Can you double-check that your FS supports largefiles using fstyp?

Does prealloc encounter the same problem too?

# prealloc testfile 3246391296

Hope this helps. Regards.

Steven Sim Kok Leong
A. Clay Stephenson
Acclaimed Contributor

Re: Relationship of max?siz to file size limits

Those tunables (unless they were set to ridiculously low vales) have nothing to do with this. Even when largefiles are enabled for the filesystem and ulimit is unlimited, the application itself may have limits or may not have been written to take advantage of large files.
If it ain't broke, I can fix that.
Tom Geudens
Honored Contributor

Re: Relationship of max?siz to file size limits

Hi Jeff,
The problem (as James indicated) is gzip. The standard version will NOT go above 2Gb. You could use compress instead.

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
Jeff Schussele
Honored Contributor

Re: Relationship of max?siz to file size limits

Hi folks,

gunzip -V shows
1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H

So it appears somewhat ancient.
Can anybody verify that this ver does not support largefiles?

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: Relationship of max?siz to file size limits

Any version below 1.3.x is probably not stable when it comes to 2GB file size limit. Check ..
http://www.gzip.org/
Hope it helps ..
Jeff Schussele
Honored Contributor

Re: Relationship of max?siz to file size limits

OK guys, thanks.

Turned out that the 1.2.4 that was already on there was the culprit. Since I couldn't get immediate approval to up the ver, I reloaded the 1.2.4a from the depot & tried that.

Here's the interesting part, it uncompressed up to 2.038 Gb & sat there paused for about 20-30 seconds & then took off again to the final 2.8Gb size.

Thanks all.

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!