Link to home
Start Free TrialLog in
Avatar of dedean01
dedean01Flag for United States of America

asked on

gzip is not working with the mknod command

I am an oracle DBA and I am trying to compress my export file as the file is being created. I am trying to use the mknod command with the gzip command to compress the export file as it being created.  It appears as though I have everything setup correctly, but for some reason it does not compress the output file.  the output file is  "1 gig" in size.  Is there some sort of buffer that needs to be factored in.
/etc/mknod test.exp p
/usr/contrib/bin/gzip < test.exp > systest_exp &
nohup exp test/test1 parfile=/opt/backup/test.par
Avatar of griessh
griessh
Flag of United States of America image

Hi dedean01,

Questions:
Could you please elaborate on "does not compress the output file". What is the error? Does it create anything? Does it do anything?

A few things to check:

- Some versions of gzip can only deal with files < 2GB.
- Is there enough space on your file system (run 'df -k .')

======
Werner
Avatar of dedean01

ASKER

/ :df -k .

/opt/backups           (/dev/vg01/lvol3       ) : 51034568 total allocated Kb
                                                  21013008 free allocated Kb
                                                  30021560 used allocated Kb
                                                        58 % allocation used

There is plenty of space on the filesystem and it does not give me an error.  If I use the gzip command without the mknod utility then it works fine.
"/usr/contrib/bin/gzip  test.exp"

ASKER CERTIFIED SOLUTION
Avatar of MikeOM_DBA
MikeOM_DBA
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial