Operating System - HP-UX
1834608 Members
2950 Online
110069 Solutions
New Discussion

why I cant gzip a large file !!!

 
Abdul Majeed Lardhi
Regular Advisor

why I cant gzip a large file !!!


if the file is more than 2G, I can not gzip the file ???

I tried to used Info-zip ( zip ) also I got an error ??

see the example :
uxjedb01^majeed:/fns/p/r/data/temp > ls -tlr
total 4372584
-rw-rw-r-- 1 fnsonlp fnspr 18584 Apr 1 12:33 FIN052.KEYFILE.dat
-rw-rw-rw- 1 majeed fnspr 2238731397 Apr 28 00:07 PSIMAG01
uxjedb01^majeed:/fns/p/r/data/temp > gzip PSIMAG01
PSIMAG01: Unknown error
uxjedb01^majeed:/fns/p/r/data/temp > gzip FIN052.KEYFILE.dat
uxjedb01^majeed:/fns/p/r/data/temp > ls -ltr
total 4372552
-rw-rw-r-- 1 fnsonlp fnspr 3984 Apr 1 12:33 FIN052.KEYFILE.dat.gz
-rw-rw-rw- 1 majeed fnspr 2238731397 Apr 28 00:07 PSIMAG01
uxjedb01^majeed:/fns/p/r/data/temp > gunzip FIN052.KEYFILE.dat
uxjedb01^majeed:/fns/p/r/data/temp > ls -ltr
total 4372584
-rw-rw-r-- 1 fnsonlp fnspr 18584 Apr 1 12:33 FIN052.KEYFILE.dat
-rw-rw-rw- 1 majeed fnspr 2238731397 Apr 28 00:07 PSIMAG01


any help ???
11 REPLIES 11
Ian Dennison_1
Honored Contributor

Re: why I cant gzip a large file !!!

Check your /etc/fstab entry for the filesystem, ensure that 'largefiles' is set.

Altervatively, use the 'fstyp -v /dev/vgXX/lvol99' command (if the f_flag entry is 16, then largefiles is enabled).

Share and Enjoy! Ian
Building a dumber user
T G Manikandan
Honored Contributor

Re: why I cant gzip a large file !!!

check whether the large files is enabled.

Thanks
H.Merijn Brand (procura
Honored Contributor

Re: why I cant gzip a large file !!!

Do you hit a limit? FS full?

And what happens if you gzip on the fly?

# gzip -9 < largefile > largefile.gz

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Peter Weibbrecht
Occasional Advisor

Re: why I cant gzip a large file !!!

Hello,

i think your gzip Version is rather old and have no support for large Files.
gzip Version 1.2.4 and older have no largefile support.
Download a new Version of gzip an it will work.
Take a look at
http://hpux.asknet.de/hppd/hpux/Gnu/gzip-1.3.3

Bye,

Peter

.... not this machine!!!
Filosofo
Regular Advisor

Re: why I cant gzip a large file !!!

Try to use gzip gzip 1.3.3
You can download from this site:

http://public.www.planetmirror.com/pub/hpux/Gnu/gzip-1.3.3/

Hello

Filo
Sistem engeneer expert
Abdul Majeed Lardhi
Regular Advisor

Re: why I cant gzip a large file !!!

the filesystem is not Full
the largefile is disabled but I can store a largefile !!!!
see this :

/dev/vgfnsd3_r2/lvfnsd3 /fnsd1 vxfs delaylog 0 2

-rw-rw-r-- 1 fnsonlp fnspr 18584 Apr 1 12:33 FIN052.KEYFILE.dat
-rw-rw-rw- 1 majeed fnspr 2238731397 Apr 28 00:07 PSIMAG01
-rw-r--r-- 1 majeed fnspr 2238749981 May 13 12:09 kkkk
-rw-r--r-- 1 majeed fnspr 2419453877 May 13 12:23 lll
-rw-r--r-- 1 majeed fnspr 2600157773 May 13 12:37 jjj

I am using the default gzip come with the system :
uxjedb01^majeed:/fns/p/r/data/temp > gzip -h
gzip 1.2.4 (18 Aug 93)


T G Manikandan
Honored Contributor

Re: why I cant gzip a large file !!!

gzip 1.2.4 does not support large files.

Download the install the latest version to support large files more than 2GB.

http://big.asknet.de/hppd/hpux/Gnu/gzip-1.3.3/
H.Merijn Brand (procura
Honored Contributor

Re: why I cant gzip a large file !!!

1. Maybe it *looks* large, but in fact it is not, but it is sparse
2. Have you tried using gzip in streaming mode as I suggested
3. Above links for gzip-1.3.3 are good. Bzip compresses much better. Both available on my ITRC site: http://www.cmve.net/~merijn or https://www.beepz.com/personal/merijn

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Jdamian
Respected Contributor

Re: why I cant gzip a large file !!!

the largefiles feature of a Veritas File System is not set in the mount options, i.e, in the fstab file.

To check if a file system can handle largefiles you must use fsadm command:

# fsadm -F vxfs /dev/vg00/rlvol7
nolargefiles

See manual pages for fsad_vxfs
Bill Douglass
Esteemed Contributor

Re: why I cant gzip a large file !!!

Actually, largefiles is a valid mount options for VxFS.

Look at the man page for mount_vxfs for details.
Jdamian
Respected Contributor

Re: why I cant gzip a large file !!!

Bill:

# mount -F vxfs -o largefiles /dev/vg00/kk /mnt/tmp
vxfs mount: mount option(s) incompatible with file system /dev/vg00/kk

What I meant is that VxFS options in fstab file is not enough to assert that a file system has the 'largefiles' feature.