• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 684
  • Last Modified:

/var is 1GB and Full. Keepsfilling up. Sendmail or Cron not working

VAR is 100% full and fills every time I clear it.
/var/spool/mqueue fills but files are zero kb.
I was going to use lsof  to check (actually lsof32)  but missing files.
Ive moved over 30 MB away and cleared tmp , but keeps filling to 100%...
System is HP UX  - B.10.20 D

thanks in advance

0
stephengriffin
Asked:
stephengriffin
  • 3
  • 2
1 Solution
 
peter991Commented:
The files in /var/spool/mqueue could be from cronjobs.

If you want to get rid of all the output from the crontab entries you should consider piping it.

Example:
55 23 * * * /var/minime/night_jobs.sh >> /tmp/minime.log 2>&1

Or:
55 23 * * * /var/minime/night_jobs.sh > /dev/null 2>&1
0
 
stephengriffinAuthor Commented:
Hi Peter, thanks for response.
I can work on something like this after I resolve first issue.

Problem is that it fills up in a few seconds and im trying to soft link various dirs out so I can save the space..
0
 
peter991Commented:
Ok!
Try to find what is filling up.

Example of finding files bigger than...

800kb
#> find /var -size +800000c -ls | awk '{print $7,$11}' | sort +n

2mb
#> find /var -size +2000000c -ls | awk '{print $7,$11}' | sort +n

8mb
#> find /var -size +8000000c -ls | awk '{print $7,$11}' | sort +n
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
peter991Commented:
Have you tried a reboot?

Deleting files on the run in /tmp can be hazardous to the system.
0
 
SaranyakkaliCommented:
must be it is using by some process, did you check with TOP utility and Defunct  or zombic  process any..

thanks
0
 
SaranyakkaliCommented:
ps aux | awk '{ print $8 " " $2 }' | grep -w Z  >>> find the zombic/diffcunt process
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now