Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VAR 100%

Status
Not open for further replies.

kizziebutler

Programmer
Apr 28, 2005
81
GB
Recommendation on clearing out VAR. BDF is showing that VAR is showing 100% full. I have cleared down

cp /dev/null wtmp
cp /dev/null syslog.log

This has brought down VAR is 98%, please can anybody recommend anything else which I may have missed.

Thank you
 
Try a find /var -size +5000 to check for any core files or other logs which are getting too large - possibly wtmpx? Maybe the print sub-system has caused the problem?
 
Sorry - meant to add that if +5000 gives no results, try decrementing it by 1000 at a time until it produces some result.
 
How about cd'ing to /var and running du -k . to find out the used capacity of the subdirectories?
 
/var/preserve could have large files when a user exit vi inproperly etc (also it slow down the boot process).
 
Some simple techiques.

Find the largest files:
cd /var; find . -type f -exec ls -ls {} \; | sort -n

Find files updated today
find /var -mtime 0 -exec ls -ld {} \;

Always run fuser or lsof across a file before removing it, if it's active the space may not be returned to the filesystem, until the processes are terminated.

--
Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top