SUSE Support

Here When You Need Us

/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 3
SUSE Manager 2.1

Situation

Logs files in /var/log/cobber/tasks occupy a high amount of disk space:
# du -hs /var/log/cobbler/tasks/
4.2G    /var/log/cobbler/tasks

Resolution

As disk space on SUSE Manager is very important monitor and until a solution has been implemented please use the following find command to locate files older than X days to delete:
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 {} \;
find /var/log/cobbler/tasks/ -mtime +150 -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:
# cat /etc/cron.d/cleanup_cobbler_tasks
5 12 * * 5 root /usr/bin/find /var/log/cobbler/tasks/* -mtime +30 -exec rm {} \;

Cause

cobbler logs are stored in separate files and not a single one, hence there is no logrotate available to clean up the directory. Over time this may consume several GiB of disk space.

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

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.