cancel
Showing results for 
Search instead for 
Did you mean: 

/var cleanup

Fenglin
Regular Advisor

/var cleanup

Hi

Is there anything that I need to take into consideration before I execute the following command : "cleanup -c 1" to housekeep /var?

Regards
Feng Lin
3 REPLIES
Johnson Punniyalingam
Honored Contributor

Re: /var cleanup

not realy.. also consider

# clenup -c2
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: /var cleanup

you also . check, "Syslog File" using SAM

SAM-Routine Tasks->System Log Files-> Select _Logs->Actions ->Trim ->To the Recommended Size

All Check:-

/var/mail/ -> you also clear the root"user accounts mails,if you need those mail, you also consider, mv those mails some other file systems.if you realy need it
Problems are common to all, but attitude makes the difference
Rita C Workman
Honored Contributor

Re: /var cleanup

There are alot of logs written to /var.

Sometimes it is good to see what you can move out to it's own mountpoint, such as /var/opt/omni for example, to keep /var from filling up too fast or locking things up. Check your system to see if this might help you.

Make it a practice to clean system logfiles on a regular basis.

The cleanup command will commit older patches, meaning you can not go out and remove them once you run this command. It is very handy to gain space on /var. But again, using the -c 1 or -c 2 is beneficial, since it will allow you to remove any current patches should you run into an issue.

Regards,
Rita