[Bug 1858412] Re: systemd vacuuming does not work for remote journals
Dan Streetman
ddstreet at canonical.com
Wed May 6 18:01:49 UTC 2020
xenial:
ubuntu at lp1858412-x:~$ dpkg -l systemd|grep systemd
ii systemd 229-4ubuntu21.27 amd64 system and service manager
ubuntu at lp1858412-x:~$ du -sh /var/log/journal/remote
65M /var/log/journal/remote
ubuntu at lp1858412-x:~$ sudo journalctl -D /var/log/journal/remote --vacuum-size=10M
ubuntu at lp1858412-x:~$ du -sh /var/log/journal/remote
65M /var/log/journal/remote
ubuntu at lp1858412-x:~$ dpkg -l systemd|grep systemd
ii systemd 229-4ubuntu21.28 amd64 system and service manager
ubuntu at lp1858412-x:~$ du -sh /var/log/journal/remote
65M /var/log/journal/remote
ubuntu at lp1858412-x:~$ sudo journalctl -D /var/log/journal/remote --vacuum-size=10M
Deleted archived journal /var/log/journal/remote/system at 2cd50be57af347e1a473974288f23b15-0000000000000001-0005a4fe64b79740.journal (8.0M).
Deleted archived journal /var/log/journal/remote/system at 2cd50be57af347e1a473974288f23b15-000000000000047d-0005a4fe7e0e6b7b.journal (8.0M).
Vacuuming done, freed 16.0M of archived journals on disk.
ubuntu at lp1858412-x:~$ du -sh /var/log/journal/remote
49M /var/log/journal/remote
** Tags removed: verification-needed verification-needed-xenial
** Tags added: verification-done verification-done-xenial
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1858412
Title:
systemd vacuuming does not work for remote journals
Status in systemd package in Ubuntu:
Fix Released
Status in systemd source package in Xenial:
Fix Committed
Status in systemd source package in Bionic:
Fix Committed
Status in systemd source package in Disco:
Won't Fix
Status in systemd source package in Eoan:
Fix Committed
Bug description:
[impact]
attempting to vacuum journals using -D with the 'root' (in journald
terms) journal directory fails to perform any vacuuming. This can
lead to journal files continually increasing in size and filling up
the filesystem.
[test case]
see original description below.
[regession potential]
this removes a check in the code when iterating journal directories
during vacuuming, so any regression would likely occur during
vacuuming, possibly causing failure to vacuum.
[scope]
this is fixed upstream by commit
c488660e6edb3c1375ab62514a8df035c3d712bf which is included starting in
version 244, so this is already included in Focal. This is needed for
Eoan, Bionic, and Xenial.
[original description]
systemd has an issue in regard to vacuuming remote journals:
https://github.com/systemd/systemd/issues/2376 - this affects 18.04 as
this version still has this problem.
Steps to reproduce on "Description: Ubuntu 18.04.3 LTS":
root at 1:~# du -hs /var/log/journal/remote/
8.6G /var/log/journal/remote/
root at 1:~# journalctl -D /var/log/journal/remote --vacuum-size=100M
root at 1:~# du -hs /var/log/journal/remote/
8.6G /var/log/journal/remote/
Would it be possible to backport this trivial patch
https://github.com/systemd/systemd/pull/13924 into 18.04?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1858412/+subscriptions
More information about the foundations-bugs
mailing list