News for hackers. Stuff that matters.
Re:Escape from systemd by cmurf on Wednesday June 14, 2017 @12:20PM (#14553778)
The journal files can get corrupted, but it's a localized corruption that journalctl skips over and continues on without additional data loss. Obviously anything that didn't completely commit is gone, which would be gone anyway with some other format. The main difference is that systemd-journald can a.) become aware of the corruption, b.) warn of it rather than display corrupt info, and c.) recover and continue on.

There have been a pile of bugs I've run into and reported where journald gets really confused; e.g. 'journalctl -b-5' won't actually go back five boots, it'll show some other content, or it'll give an error, but using --since will work fine. I haven't seen this problem recently, so the fix may be trickling out.

Re:Escape from systemd by bryanlarsen on Wednesday June 14, 2017 @02:39PM (#14554932)
That's not my experience -- once corrupted it stays corrupted. Is this something that's been fixed since Ubuntu 16.04?
Re:Escape from systemd by cmurf on Wednesday June 14, 2017 @06:30PM (#14556616)
I don't know what you're contradicting because I never said the corruption gets fixed. I said it's skipped over. Specifically what happens is upon detection of corruption, journald stops writing to the corrupt journal file, creates a new journal file, and new entries go there. The utility for reading the journal files, journalctl, can also detect this corruption and will skip over detected corruption and continue on.

I have no idea what version of systemd Ubuntu 16.04 has, but in systemd-233 I'm not seeing aforementioned problems with -b switch and corrupt journal files.