Bug ID 1226415
Summary data loss: update 15.5 => 15.6 deletes old journal entries
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.6
Hardware Other
OS Other
Status NEW
Severity Critical
Priority P5 - None
Component Upgrade Problems
Assignee screening-team-bugs@suse.de
Reporter seife@novell.slipkontur.de
QA Contact jsrain@suse.com
Target Milestone ---
Found By ---
Blocker ---

Created attachment 875512 [details]
/var/log/journal filesystem statistics

I updated my server from 15.5 to 15.6 yesterday and encountered a critical data
loss:

My journal is configured to have its own file system for /var/log/journal (8GB)
to keep it from eating too much disk space, the config in
/etc/systemd/journald.conf is like this:

[Journal]
SystemMaxFileSize=8M
SystemMaxFiles=1024
SystemMaxUse=6666M
SystemKeepFree=10%

After the update, the journal was pruned from 6,5GB to 850MB, removing all
files older than one months (see attached screenshot)

server:~ # ls -l /var/log/journal/63ab585aac31189cc7872956493ee6b3/ -t | tail
-rw-r-----  1 root systemd-journal 8388608 Mai 21 07:54
system@62ccf578371040008472a383bf2e369b-00000000004f25f0-000618e2f318a881.journal
-rw-r-----+ 1 root systemd-journal 8388608 Mai 21 07:54
user-10329@00a919c7569e4d03a5a88dc16264a4d4-00000000004f264f-000618e347c0f293.journal
-rw-r-----  1 root systemd-journal 8388608 Mai 20 15:48
system@62ccf578371040008472a383bf2e369b-00000000004f1160-000618d40ffb0c6d.journal
-rw-r-----+ 1 root systemd-journal 8388608 Mai 20 15:48
user-10329@00a919c7569e4d03a5a88dc16264a4d4-00000000004f117c-000618d422c788ee.journal
-rw-r-----+ 1 root systemd-journal 8388608 Mai 19 22:02
user-10329@00a919c7569e4d03a5a88dc16264a4d4-00000000004f0154-000618cbae280621.journal
-rw-r-----  1 root systemd-journal 8388608 Mai 19 22:02
system@62ccf578371040008472a383bf2e369b-00000000004efaa0-000618cbaa041e71.journal
-rw-r-----  1 root systemd-journal 8388608 Mai 19 12:01
system@62ccf578371040008472a383bf2e369b-00000000004ee2ab-000618bd84364db7.journal
-rw-r-----+ 1 root systemd-journal 8388608 Mai 19 12:01
user-10329@00a919c7569e4d03a5a88dc16264a4d4-00000000004ee2f8-000618bda6f3a682.journal
-rw-r-----  1 root systemd-journal 8388608 Mai 18 19:08
system@62ccf578371040008472a383bf2e369b-00000000004ecd0a-000618ade47d8e5b.journal
-rw-r-----+ 1 root systemd-journal 8388608 Mai 18 19:08
user-10329@00a919c7569e4d03a5a88dc16264a4d4-00000000004ecd92-000618ae6f97b723.journal


You are receiving this mail because: