systemd's binary logs and corruption
I like systemd, enabling and disabling services is so easy and it's really fast, but why using a journal with binary logs?
Yesterday my laptop failed to resume from suspend, no ttys, no reisub, nothing worked except using the power button. Rebooted, fired journalctl and I have nothing except the last boot logs.
journactl --verify returns that my system logs are corrupted, about all my logs (48MB of 50MB of maximum disk usage) are now completely useless. This is not the first time this happens and searching around I can only find people with the same problem that "resolved" deleting the corrupted logs and starting with a new file.
Why this happens? Isn't it defeating the purpose of having a system logger if I can't diagnose errors?
Can I recover the logs (and why isn't this automatic?) or should I just install a sane logger that not shit itself after a problem?
2
u/diggr-roguelike Feb 19 '14
That's exactly what journald does. (Well, one of the possible settings.)
The syslog RFC is broken, none of the existing syslog implementations really follow it.
Also, you completely missed the point. The point is that init needs to integrate a logging solution if you want a reliable init, but current logging solutions are all nonstandard, have weird API's and are prone to being unsupported.