journalctl para excluir log

1
du -sh /var/log/journal/
201M    /var/log/journal/
journalctl --vacuum-size=10M
Deleted archived journal /var/log/journal/5fabef35e4144feb92a9d7177b21d4e4/system@5dc54ed9ad1e41a785428a8ae2e88877-000000000000255c-00056318d1d89bc3.journal (80.0M).
Deleted archived journal /var/log/journal/5fabef35e4144feb92a9d7177b21d4e4/system@5dc54ed9ad1e41a785428a8ae2e88877-0000000000018c73-0005657d4e6fa7a7.journal (48.0M).
Vacuuming done, freed 128.0M of archived journals on disk.
du -sh /var/log/journal/
73M /var/log/journal/

Por que journalctl --vacuum-size=10M não pode excluir o log até que / var / log / journal seja 10M?

    
por it_is_a_literature 19.04.2018 / 03:40

1 resposta

2

Em man journalctl :

Note that running --vacuum-size= has only an indirect effect on the output shown by --disk-usage, as the latter includes active journal files, while the vacuuming operation only operates on archived journal files.

Parece que você tem 73 MB de arquivos de diário ativos.

    
por 19.04.2018 / 04:11

Tags