[systemd-devel] Settings in /etc/systemd/journald.conf dont work

Lennart Poettering lennart at poettering.net
Wed Feb 3 04:51:03 PST 2016


        On Wed, 03.02.16 12:32, Tommy_Lu (Tommy_Lu at gmx.de) wrote:

Please always mention which journal version you are using.

> I have changed the settings to
> Storage=persistent
> SplitMode=none
> SystemMaxUse=10M
> SystemMaxFileSize=5M
> MaxRetentionSec=1week
> 
> ...but at first, there is no effect.  "journalctl --disk-usage" says after
> reboot "Journals take up 40.0M on disk" furthermore. The content in
> /var/log/journal is 4 Files, 3 times 8 MB, one time 16 MB, all together 40
> MB. That is much more as the setted 5 or 10MB.

As documented in the man page: we'll only vacuum archived files. The
"active" files always stay around.

Quoting: 
         
         "Note that only archived files are deleted to reduce the
         number of files until this limit is reached; active files
         will stay around. This means that, in effect, there might
         still be more journal files around in total than this limit
         after a vacuuming operation is complete."

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list