----- Mail original ----- De: "František Šumšal" <frantisek@xxxxxxxxx> À: systemd-devel@xxxxxxxxxxxxxxxxxxxxx Envoyé: Mardi 17 Mai 2022 11:13:56 Objet: Re: journalctl --vacuum-time does nothing > Hello, > > You might want to combine the vacuum option with `--rotate`, since journalctl > won't vacuum journals that are currently online, only archived ones > (`journalctl --header` to get the states of the respective journal files). I tried the --rotate option and I don't see archived log files: root@debian:/# journalctl --rotate --vacuum-time=3days Vacuuming done, freed 0B of archived journals from /run/log/journal. Vacuuming done, freed 0B of archived journals from /var/log/journal. Vacuuming done, freed 0B of archived journals from /var/log/journal/ac27c4f71b94428396fc1096906bddb6. root@debian:/# journalctl --list-boots 0 eec45fd7dd9b44ce8f18d132382844f3 Tue 2022-05-17 15:39:37 CEST—Tue 2022-05-17 15:39:38 CEST root@debian:/# journalctl --header File path: /var/log/journal/ac27c4f71b94428396fc1096906bddb6/user-1000.journal File ID: b4bd901f6463475b8eb416da416af6f1 Machine ID: ac27c4f71b94428396fc1096906bddb6 Boot ID: eec45fd7dd9b44ce8f18d132382844f3 Sequential number ID: 5b7e6cd7b7a6448691bea6ae5b4153e1 State: OFFLINE Compatible flags: Incompatible flags: COMPRESSED-ZSTD KEYED-HASH Header size: 256 Arena size: 8388352 Data hash table size: 233016 Field hash table size: 333 Rotate suggested: no Head sequential number: 0 (0) Tail sequential number: 42118 (a486) Head realtime timestamp: --- (0) Tail realtime timestamp: --- (0) Tail monotonic timestamp: 0 (0) Objects: 2 Entry objects: 0 Data objects: 0 Data hash table fill: 0,0% Field objects: 0 Field hash table fill: 0,0% Tag objects: 0 Entry array objects: 0 Deepest field hash chain: 0 Deepest data hash chain: 0 Disk usage: 8.0M File path: /var/log/journal/ac27c4f71b94428396fc1096906bddb6/system.journal File ID: d17c9a10a3fe4884a3b1ab1031edfcf2 Machine ID: ac27c4f71b94428396fc1096906bddb6 Boot ID: eec45fd7dd9b44ce8f18d132382844f3 Sequential number ID: a3632c9bcac24d45a1085c630e4d0571 State: OFFLINE Compatible flags: Incompatible flags: COMPRESSED-ZSTD KEYED-HASH Header size: 256 Arena size: 8388352 Data hash table size: 233016 Field hash table size: 333 Rotate suggested: no Head sequential number: 42119 (a487) Tail sequential number: 42123 (a48b) Head realtime timestamp: Tue 2022-05-17 15:39:37 CEST (5df3545a0c90e) Tail realtime timestamp: Tue 2022-05-17 15:39:38 CEST (5df3545a2b401) Tail monotonic timestamp: 4min 48.417s (1130e807) Objects: 112 Entry objects: 5 Data objects: 46 Data hash table fill: 0,0% Field objects: 37 Field hash table fill: 11,1% Tag objects: 0 Entry array objects: 22 Deepest field hash chain: 0 Deepest data hash chain: 0 Disk usage: 8.0M