Skip to end of metadata
Go to start of metadata


Applies to

  • All versions of openSUSE

Purpose

This article describes how to limit the size of the journal logs. Since the journal logs are likely to grow up to hundreds of MB, they might occupy a significant amount of disk space on your Cryptshare Server.

Solution

To limit the size of the journal logs to 10MB, please follow the instructions below:

  1. Connect to your Cryptshare Server via SSH
  2. Verify current disk space usage:

    df -h
  3. Limit the size of the journal:

    sed -i -e 's/#SystemMaxUse=/SystemMaxUse=10M/' /etc/systemd/journald.conf
  4. Restart the journal daemon:

    systemctl restart systemd-journald
  5. Verify that the disk space usage went down:

    df -h