Solved

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

Posted on 2008-10-24
6
668 Views
Last Modified: 2013-12-06
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
Comment
Question by:stephengriffin
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:peter991
Comment Utility
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
 
LVL 1

Author Comment

by:stephengriffin
Comment Utility
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
 
LVL 6

Accepted Solution

by:
peter991 earned 125 total points
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 6

Expert Comment

by:peter991
Comment Utility
Have you tried a reboot?

Deleting files on the run in /tmp can be hazardous to the system.
0
 
LVL 3

Expert Comment

by:Saranyakkali
Comment Utility
must be it is using by some process, did you check with TOP utility and Defunct  or zombic  process any..

thanks
0
 
LVL 3

Expert Comment

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now