1833064 Members
3084 Online
110049 Solutions
New Discussion

Cleaning up /var

 
Donald Thaler
Super Advisor

Cleaning up /var

There is a subdirectory /var/appconfig/appmanager with a number of what looks like login entries i.e
'oracle-10..2.0.3.53-0' which have further subdirectories of desktop_apps/desktop_tools etc.

Can i delete these directories ?
5 REPLIES 5
Rick Garland
Honored Contributor

Re: Cleaning up /var

To see what are the biggest files;

cd /var
du -x -ka . | sort -nr | more

This will produce a list of files in ascending order by size. This can help you determine where to get the most impact of cleanup.

Can also have a look at /var/adm/syslog - are you trimming the syslog.log and mail.log files? If not these can become hugh.

Steven E. Protter
Exalted Contributor

Re: Cleaning up /var

Shalom,

cleanup -c 1

Gets rid of patches that were superseded more than once. Saves a lot of space on /var

I'm not familiar with

/var/appconfig/appmanager

I can't advise on that. Oracle does not be default store anything important in /var unless you told it to.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
spex
Honored Contributor

Re: Cleaning up /var

Hi Donald,

Those are CDE objects. Try moving them to a different location and see how CDE is affected.

PCS
John Collier
Esteemed Contributor

Re: Cleaning up /var

Rick,

A little off subject, but do you know if that would work on a Linux system (say RH or Fedora, for example) as well?

Also, will that list only files or is it also good for directories with many small files that add up to one big problem?
"I expect to pass through this world but once. Any good, therefore, that I can do, or any kindness that I can show to any human being, let me do it now. Let me not defer or neglect it, for I shall not pass this way again." Stephen Krebbet, 1793-1855
Rick Garland
Honored Contributor

Re: Cleaning up /var

The command will work on Linux as well. Double check the man pages for du to make sure of the options for listing files - although I believe it is still correct.