Solved

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

Posted on 2008-10-24
6
678 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:peter991
ID: 22794416
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
ID: 22794489
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
ID: 22794642
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:peter991
ID: 22795575
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
ID: 22797214
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
ID: 22797222
ps aux | awk '{ print $8 " " $2 }' | grep -w Z  >>> find the zombic/diffcunt process
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

623 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