You are not logged in.
Pages: 1
The journalctl's vacuum option is not working on my system:
[user@hostname ~]$ journalctl --disk-usage
Archived and active journals take up 72.1M on disk.
[user@hostname ~]$ journalctl --vacuum-size=35M
Vacuuming done, freed 0B of archived journals on disk.
[user@hostname ~]$ journalctl --disk-usage
Archived and active journals take up 72.3M on disk.Anyone knows how to fix this?
Last edited by joseribeiro (2015-06-25 22:55:12)
Offline
Note that running --vacuum-size= has only indirect effect on the output shown by --disk-usage as the latter includes active journal files, while the former only operates on archived journal files.
Post the output of
ls -l /var/log/journal/Offline
[user@hostname ~]$ ls -l /var/log/journal/
total 0
drwxr-sr-x+ 1 root systemd-journal 62 Jun 21 18:58 6c29f1847ffc4dec8bb52a174fd5d862Last edited by joseribeiro (2015-06-25 23:37:43)
Offline
The journalctl's vacuum option is not working on my system:
[user@hostname ~]$ journalctl --disk-usage Archived and active journals take up 72.1M on disk. [user@hostname ~]$ journalctl --vacuum-size=35M Vacuuming done, freed 0B of archived journals on disk. [user@hostname ~]$ journalctl --disk-usage Archived and active journals take up 72.3M on disk.Anyone knows how to fix this?
You're messing with file under root directory, you can read but not write or modify it without the root privilege.
Offline
Interesting; when I try the same commands; it says "Permission denied", I wonder why you're not getting that? Is your system up to date?
Offline
You're messing with file under root directory, you can read but not write or modify it without the root privilege.
I get the same result with superuser permission. Look:
[user@hostame ~]$ sudo journalctl --disk-usage
Archived and active journals take up 72.1M on disk.
[user@hostame ~]$ sudo journalctl --vacuum-size=35M
Vacuuming done, freed 0B of archived journals on disk.
[user@hostame ~]$ sudo journalctl --disk-usage
Archived and active journals take up 72.3M on disk.Interesting; when I try the same commands; it says "Permission denied", I wonder why you're not getting that? Is your system up to date?
Yes.
Last edited by joseribeiro (2015-06-26 13:00:58)
Offline
Okay, show us what `ls -l /var/log/journal/*/` outputs, maybe there are files that journalctl counts but ignores when vacuuming?
Offline
Is it related to:
Note that running --vacuum-size= has only indirect effect on the output shown by --disk-usage as the latter includes active journal files, while the former only operates on archived journal files.All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Okay, show us what `ls -l /var/log/journal/*/` outputs, maybe there are files that journalctl counts but ignores when vacuuming?
Here is the output:
$ ls -l /var/log/journal/*/
total 16388
-rw-r-x---+ 1 root systemd-journal 8388608 Jun 27 16:43 system.journal
-rw-r-x---+ 1 root systemd-journal 8388608 Jun 27 17:10 user-1000.journalOffline
I've recreated /var/log/journal:
Now I have this:
$ ls -1s /var/log/journal/*/
total 57344
8192 system@bcaa2f2178c7450d9ab5bb5d1c496892-000000000001c5ba-000519acc5b3571d.journal
8192 system@bcaa2f2178c7450d9ab5bb5d1c496892-000000000001fa65-000519ad0ff00bd2.journal
8192 system.journal
16384 user-1000@ee13e6436422421da906549125cdc0fa-000000000001c5b9-000519acc5b355e5.journal
16384 user-1000.journalHere is my journald.conf:
$ grep -v "#" /etc/systemd/journald.conf
Storage=persistent
SystemMaxUse=50M
SystemMaxFileSize=16M
RuntimeMaxUse=32M
RuntimeMaxFileSize=12MActually systemd journal log occupy 57M(57344), more than I set. Is it normal?
I still can't get vacuum option to work...
Last edited by joseribeiro (2015-07-01 23:16:01)
Offline
Pages: 1