Environment
Novell Filr 1.0.1
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 11
Situation
root (/) partition being filled by logs
logs are not cleaned up
disk out of space due to logs
logs are not cleaned up
disk out of space due to logs
Resolution
Logs are not cleaned up automatically, and need to be removed
manually.
Filr 1.1 moves /var to a seperate partition, and handles log rotation much better.
Filr 1.0.x Workaround
Create a script that will remove logs over 7 days old.
Filr 1.1 moves /var to a seperate partition, and handles log rotation much better.
Filr 1.0.x Workaround
Create a script that will remove logs over 7 days old.
- cd /etc/cron.daily
- vi filr_logRotate.sh
- Press 'i' to enter insert mode, and type:
find /var/opt/novell/tomcat-filr/logs/* -type f -mtime +7 -exec rm {} \; -
Press 'Esc' and type ":wq!" without the quotes to save and quit
-
Type chmod +x filr_logRotate.sh