Operating System - HP-UX
1753724 Members
4936 Online
108799 Solutions
New Discussion юеВ

Re: Which files can be removed from VAR?

 
Paul Mccleary_2
Occasional Advisor

Which files can be removed from VAR?

After installation of the latest GR patch bundle our /var was filled - mainly
with patch filesets as we did not enable the NOSAVE option. Are there any
general files that it is safe to remove, other than mail files?
4 REPLIES 4
Neil Gast_1
Frequent Advisor

Re: Which files can be removed from VAR?

Usually the biggest hog of disk space is the /var/adm/crash directory. It may
contain old crash files.
Also check out /var/tmp -- it's not cleaned out by default, and it probably
contains some old junk.

You can check the disk usage of the directories under /var like so:

cd /var
du -sk *

Enjoy,
MrNeil
Anthony Goonetilleke_1
Regular Advisor

Re: Which files can be removed from VAR?

Another thing to watch out for is if you have omniback installed on your
machine then it stores the OBII database files in /var/opt/omni/db by default
and this can get very big. Also a general trim of log files in /var/adm and
/var/adm/syslog helps but as neil said if you do a du -sk * in /var/adm you can
pick out the culprits fairly quickly. You might want to automatically trim
your log files as well if they start getting to big, you can do this through
sam or a cron job.
Michael Adrian_1
Occasional Contributor

Re: Which files can be removed from VAR?

Who would I contact re restoration of the HP-UX 11 original configuration files
ie. /var directory or is there a way I could download over the internet?? I
don't have a backup to restore from. I also don't have the original HP-UX Media
Kit
Chris Treharne_2
New Member

Re: Which files can be removed from VAR?

I find by far the largest structure in /var is /var/adm/sw/save. You can
remove the contents of this directory ONLY if you have a secure system (a
backup is always a good idea) with patches which have been proven. By removing
the contents of /var/adm/sw/save you are removing your ability to remove the
patches listed within it. However, I have found it very useful on a number of
occasions when urgent patch installs rest on the freeing of space in /var.

Also check out the System Log Files tidying tool under Routine Tasks in SAM.

Good Luck.

Chris Treharne