Operating System - HP-UX
1753797 Members
7498 Online
108805 Solutions
New Discussion юеВ

Re: gzip fails - var full

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

gzip fails - var full

hi,
after a gzip ran /var out of space, /var is full.
/var/tmp is empty, so where are the temp files for the gzip operation?

Later,
Bill
It works for me (tm)
9 REPLIES 9
Jean-Louis Phelix
Honored Contributor
Solution

Re: gzip fails - var full

hi,

I tried to run a big gzip (unsing gzip X then cat X | gzip), but using glance I never found any opened file in /var (only stdin, stdout, stderr, input file and output file). Strange ...

Regards
It works for me (┬й Bill McNAMARA ...)
Pete Randall
Outstanding Contributor

Re: gzip fails - var full

Hi Bill,

How about touching a file with the approximate time this happened, then running a find -newer on /var to see if you can locate what gzip might have created?

Pete

Pete
Bill McNAMARA_1
Honored Contributor

Re: gzip fails - var full

so this is strange,
I just went out for a cig. and the space was restored.. no one else on the box..
the process must have still been running or somthing??

# gzip -V
gzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H
It works for me (tm)
harry d brown jr
Honored Contributor

Re: gzip fails - var full

Bill,

I did a gzip and these were the files open:

# /usr/local/bin/lsof -p 6732
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gzip 6732 root cwd DIR 64,0xd 1024 2 /var/opt
gzip 6732 root txt REG 64,0xb 139264 8924 /usr/contrib/bin/gzip
gzip 6732 root 0u CHR 17,0x2 0t86357 1069 /dev/pty/ttyp2
gzip 6732 root 1u CHR 17,0x2 0t86357 1069 /dev/pty/ttyp2
gzip 6732 root 2u CHR 17,0x2 0t86357 1069 /dev/pty/ttyp2
gzip 6732 root 3u REG 64,0xf 691920 98 /var/adm/wtmp
gzip 6732 root 4r REG 64,0xd 133027840 2163 /var/opt/gcc-3.2.tar
gzip 6732 root 5w REG 64,0xd 26230784 2161 /var/opt/gcc-3.2.tar.gz
# /usr/local/bin/lsof -p 6732
# gzip -V
gzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H
#


live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: gzip fails - var full

Bill,

What version of gzip are you running?

gzip -V

live free or die
harry
Live Free or Die
Christian Gebhardt
Honored Contributor

Re: gzip fails - var full

Hi
I tried
tusc -f gzip bigfile
and find no calls to files in /var.

Try to set TMPDIR
'sort' uses TMPDIR --> /var/tmp --> /tmp
in this order for temporary files.

Chris

Bill McNAMARA_1
Honored Contributor

Re: gzip fails - var full

I guess it's related to the fact that I was gzipping a file in /var

Later,
Bill
It works for me (tm)
Pete Randall
Outstanding Contributor

Re: gzip fails - var full

Ahhhh! That just might have had something to do with it, Bill.

;^)

Pete

Pete
Darrell Allen
Honored Contributor

Re: gzip fails - var full

Hi Bill,

I may be stating the obvious so please pardon me if this is so. Maybe it will help a future reader.

gzip writes the .gz file in the same directory as the source file. gzip will not remove the source file until after the gzipped file is completely written. If the filesystem runs out of space, gzip will wrapup and delete the .gz file is was writing.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)