bionic:

ubuntu@lp1858412-b:~$ dpkg -l systemd|grep systemd
ii  systemd        237-3ubuntu10.39 amd64        system and service manager
ubuntu@lp1858412-b:~$ du -sh /var/log/journal/remote
417M    /var/log/journal/remote
ubuntu@lp1858412-b:~$ sudo journalctl -D /var/log/journal/remote/ 
--vacuum-size=10M
ubuntu@lp1858412-b:~$ du -sh /var/log/journal/remote
417M    /var/log/journal/remote


ubuntu@lp1858412-b:~$ dpkg -l systemd|grep systemd
ii  systemd        237-3ubuntu10.40 amd64        system and service manager
ubuntu@lp1858412-b:~$ du -sh /var/log/journal/remote
417M    /var/log/journal/remote
ubuntu@lp1858412-b:~$ sudo journalctl -D /var/log/journal/remote/ 
--vacuum-size=10M
Deleted archived journal 
/var/log/journal/remote//remote-127.0.0.1@5a01d9e8d4804c69a55a151a95b0313b-0000000000000001-0005a4f9330068c4.journal
 (128.0M).
Deleted archived journal 
/var/log/journal/remote//remote-127.0.0.1@5a01d9e8d4804c69a55a151a95b0313b-00000000000267dd-0005a4f9337fd2bf.journal
 (128.0M).
Deleted archived journal 
/var/log/journal/remote//remote-127.0.0.1@5a01d9e8d4804c69a55a151a95b0313b-0000000000046581-0005a4fa0f7fe771.journal
 (128.0M).
Vacuuming done, freed 384.0M of archived journals from /var/log/journal/remote/.
ubuntu@lp1858412-b:~$ du -sh /var/log/journal/remote
33M     /var/log/journal/remote

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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@1:~# du -hs /var/log/journal/remote/
  8.6G  /var/log/journal/remote/
  root@1:~# journalctl -D /var/log/journal/remote --vacuum-size=100M
  root@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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to