1833016 Members
2297 Online
110048 Solutions
New Discussion

need to clean up /var

 
SOLVED
Go to solution
Olga_1
Regular Advisor

need to clean up /var

Is there any harm if I delete these files:

/var/stm/logs/sys>ll
total 1925360
985368532 Mar 25 11:07 activity_log
343728 Mar 25 11:07 cclogd_activity_log
1384 Mar 25 11:07 diaglogd_activity_log
1576 Mar 25 11:07 memlogd_activity_log
42324 Mar 25 11:07 scan_hw_log

Is there anything else what can be cleaned in /var?
How about files in /var/adm/sw/save/
Thank you very much
6 REPLIES 6
Steve Steel
Honored Contributor

Re: need to clean up /var

Hi


What OS

look at man cleanup and swmodify

Also

sam routine tasks where logs can be cleaned up


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Dagmar Boelen
Frequent Advisor

Re: need to clean up /var

File is /var/adm/sw/save are used to fallback to a previous installation of a patch for example.
James R. Ferguson
Acclaimed Contributor
Solution

Re: need to clean up /var

Hi:

Don't manage anything in ''var/adm/sw' except with the 'cleanup' command!

# cleanup -c 1

...will remove superseded patches but leave one level in the event that you want to rollback to a predecessor patch. The SD logs will also be trimmed. Using 'cleanup' can return considerable filesystem space to '/var', particularly if you have never done it!

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: need to clean up /var

Olga,

Anything in /var/tmp is a candidate for the trash bin. Use SAM to trim log files (under "Routine Tasks", I believe). Use the find command to search out core files (find /var -name core -exec rm {} \;). Use the "du -sk /var/* |sort -n" command to find the largest directories under /var and drill down into them with the same du command to find where all your space is being consumed.

Do *not* remove anything under /var/adm/sw! Use the cleanup command (cleanup -c 1) to commit old patches instead.


Pete


Pete
Paula J Frazer-Campbell
Honored Contributor

Re: need to clean up /var



Soap and warm water only, do not use anything abrasive.

If you can spell SysAdmin then you is one - anon
Pete Randall
Outstanding Contributor

Re: need to clean up /var

And as for your first question, I see no harm in trimming these files (I would not remove them).

cat /dev/null > log_file_name


Pete


Pete