Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 682
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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