
Originally Posted by
tckosvic
I almost lost my computer due to no / disk space from diagnostic messages. I believe it was due to the diagnostic changes I made regarding shutdown times.
Stop tinkering. Don't try to be too clever. Undo those diagnostics. Rely on journal only.
I got message -- only 1 gig left in root. Then apps stopped running. I did restart and no normal start only black screen. Alt-f2 got me to a login. I got to root and /var/log. messages file was 65 gig. I deleted it. A restart was normal. Subsequently, I deleted all the files in /var/log/journal that I created. Maybe I should delete entire journal directory?
Nope. Journal is a matured application. Use this instead:
Code:
erlangen:~ # journalctl --vacuum-size 1G
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/94f3af277bac4a8eb57da425c9677379.
erlangen:~ #
I also made sure that systemd.journald.conf had "storage=auto" as it was originally. Anything else, I should do to make sure messages are under control? Now I am back at 30% root use out of 100 gig.
Show usage:
Code:
erlangen:~ # btrfs filesystem usage -T /
Overall:
Device size: 1.82TiB
Device allocated: 403.07GiB
Device unallocated: 1.42TiB
Device missing: 0.00B
Used: 384.71GiB
Free (estimated): 1.44TiB (min: 745.61GiB)
Free (statfs, df): 1.44TiB
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 512.00MiB (used: 0.00B)
Multiple profiles: no
Data Metadata System
Id Path single DUP DUP Unallocated
-- -------------- --------- -------- -------- -----------
1 /dev/nvme0n1p2 397.01GiB 6.00GiB 64.00MiB 1.42TiB
-- -------------- --------- -------- -------- -----------
Total 397.01GiB 3.00GiB 32.00MiB 1.42TiB
Used 381.12GiB 1.79GiB 64.00KiB
erlangen:~ #
Code:
erlangen:~ # du -hd1 -t10k /var/log
12M /var/log/YaST2
8.1M /var/log/zypp
72M /var/log/journal
3.0M /var/log/cups
5.5M /var/log/audit
16K /var/log/samba
1.5M /var/log/apache2
12M /var/log/updateTestcase-2022-01-25-18-48-40
12M /var/log/updateTestcase-2022-01-27-01-22-32
183M /var/log
erlangen:~ #