1833758 Members
3613 Online
110063 Solutions
New Discussion

Housekeep /var directory

 
SOLVED
Go to solution
Kenn Chen
Advisor

Housekeep /var directory

How could I housekeep the /var directory. remove unused files from here. files in /var/spool/mqueue can be removed ??
Cyber Zen
7 REPLIES 7
eran maor
Honored Contributor
Solution

Re: Housekeep /var directory

Hi

The files in /var/spool/mqueue are created by sendmail. Older files can be
removed. Look at the date/timestamp to determine the files age

you can also trim the wtmp and btmp files .
check to see if there is log files .

you can also use the command cleanup to clear the /var from the old patches but this option is not recommend .
love computers
eran maor
Honored Contributor

Re: Housekeep /var directory

Santosh Nair_1
Honored Contributor

Re: Housekeep /var directory

We usually move /var/adm/sw to a separate filesystem as this tends to grow quite a bit.
Other directories to check would be /var/tmp and /var/preserve (make sure none of files are in use).
Also if use DCE, check /var/opt/dce/svc and check for core files in /var/opt/dce/*.

Finally, perhaps make use of some log rotating routine for /var/adm/syslog/*.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Sridhar Bhaskarla
Honored Contributor

Re: Housekeep /var directory

Idris,

If you have done all kinds of trimmings and cleanups and still frustated you can do one last smart thing.

There is one directory /var/adm/sw/save that is real dumb and is not helpful until you recall a patch. You can move this directory to another file system and create a link.

Also did you try cleanup command?...

#cleanup -c 2

will remove the patches 2 levels before.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Kenn Chen
Advisor

Re: Housekeep /var directory

I found some files in /var/preserve/ directory.

Exaaa03926
Exaaa03925

Can i delete it ??
Cyber Zen
Santosh Nair_1
Honored Contributor

Re: Housekeep /var directory

If I'm not mistaken, these should be temporary files created by vi sessions.
If you do a fuser on the files and see no process attached to the files, then I would say yes, delete the files.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
eran maor
Honored Contributor

Re: Housekeep /var directory


var/preserve contains automatically
preserved vi files. These files can be deleted whenever necessary
love computers