/var/log/cobbler/tasks occupies high amount of disk space
This document (7018625) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Manager 2.1
Situation
# du -hs /var/log/cobbler/tasks/
4.2G /var/log/cobbler/tasks
Resolution
find /var/log/cobbler/tasks/ -mtime +30 -exec rm {} \;This will delete all files older than 30 days. In case find exits with an error about argument list too long please adjust the -mtime +30 value to something else like:
find /var/log/cobbler/tasks/ -mtime +90 -exec rm {} \;to reduce the list of files. Once all older files have been deleted, a cron job may help to avoid a future disk space issue:
find /var/log/cobbler/tasks/ -mtime +150 -exec rm {} \;
# cat /etc/cron.d/cleanup_cobbler_tasks
5 12 * * 5 root /usr/bin/find /var/log/cobbler/tasks/* -mtime +30 -exec rm {} \;
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7018625
- Creation Date: 16-Feb-2017
- Modified Date:03-Mar-2020
-
- SUSE Manager
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com