[systemd-devel] How to remove *~ journal files?

Mantas Mikulėnas grawity at gmail.com
Sun Aug 9 05:14:54 PDT 2015


On Sun, Aug 9, 2015 at 9:57 AM, Andrei Borzenkov <arvidjaar at gmail.com>
wrote:

> More than half of all files here are *~ files:
>
> bor at opensuse:~/src/systemd> ls -1
> /var/log/journal/40527be2480f8cf60f4e8d4b000006b0/*~ | wc -l
> 85
> bor at opensuse:~/src/systemd> ls -1
> /var/log/journal/40527be2480f8cf60f4e8d4b000006b0/* | wc -l
> 127
>
> If I understand it correctly they are corrupted files. Should not they
> have been deleted?


Well no, they still have your logs, and they're usually 99% readable.
Journald renames even "uncleanly closed" files to journal~, just in case.


> What is the correct procedure to remove them?
>

`rm`, or let journald's built-in log rotation take care of them.

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150809/2aef0fd3/attachment.html>


More information about the systemd-devel mailing list