Friday, July 22, 2016

Fedora - Checking boot time, verify journal log, calculate journal log size and clean logs

$ systemd-analyze
Startup finished in 1.569s (kernel) + 5.077s (initrd) + 1min 36.483s (userspace) = 1min 43.131s

$ systemd-analyze blame
     1min 8.481s plymouth-quit-wait.service
         51.288s dnf-makecache.service
         10.577s systemd-udev-settle.service
          9.210s dev-sdb6.device
          8.583s systemd-journal-flush.service
          8.491s libvirtd.service
          7.880s firewalld.service

$ journalctl --disk-usage
Archived and active journals take up 656.1M on disk.

$ du -sh  /var/log/journal
657M    /var/log/journal

$ journalctl --verify
000000: Invalid tail monotonic timestamp                                                                                                             
File corruption detected at [email protected][email protected]rnal:6502ed0 (of 109051904 bytes, 97%).
FAIL: [email protected][email protected]rnal (Bad message)
PASS: [email protected][email protected]l            
PASS: [email protected]67b01ae6-23ce9c5d42e3dba7.journal~                                            
PASS: [email protected]bbbf8870-02b44febe18a6235.journal~                                            
5aa8278: Unused data (entry_offset==0)                                                                                                               
PASS: [email protected]45c23726fd6-d4b9e97e2b2c7246.journal~                                         
PASS: [email protected]1bfe8603-b0df6d6afd47b76d.journal~                                            
PASS: [email protected]59dbb3e2-cdd6e212043dc4bf.journal~                                            
PASS: [email protected]01a4efc4-2a7a09659026f270.journal~                                            
PASS: /var/log/journal/0cfa1379b4e94fd4bd1cdc4bb20a8a25/user-1000.journal                                                                            
000000: Invalid tail monotonic timestamp                                                                                                             
File corruption detected at [email protected]7ccb5cc8-168a8bb731df29f9.journal~:ee6b38 (of 16777216 bytes, 93%).
FAIL: [email protected]7ccb5cc8-168a8bb731df29f9.journal~ (Bad message)
PASS: [email protected]59d7468c197-df87dd623a6a7deb.journal~                                         
PASS: /var/log/journal/0cfa1379b4e94fd4bd1cdc4bb20a8a25/system.journal                                                                               
PASS: [email protected]c7e54f38-1ff1cfcb111bc56b.journal~                                            
PASS: [email protected]57804ffa241-e7dc957cecea3ba5.journal~                                         
PASS: [email protected]6fa407a3-8e3c6afba238749a.journal~                                            
PASS: [email protected]149fbd05-2893f465d26bbe5a.journal~     

$ ls /var/log/journal/0cfa1379b4e94fd4bd1cdc4bb20a8a25/* 
[email protected]149fbd05-2893f465d26bbe5a.journal~
[email protected]67b01ae6-23ce9c5d42e3dba7.journal~
[email protected]bbbf8870-02b44febe18a6235.journal~
[email protected]c7e54f38-1ff1cfcb111bc56b.journal~
[email protected]1bfe8603-b0df6d6afd47b76d.journal~
[email protected]01a4efc4-2a7a09659026f270.journal~
[email protected]6fa407a3-8e3c6afba238749a.journal~
[email protected]59dbb3e2-cdd6e212043dc4bf.journal~
[email protected]7ccb5cc8-168a8bb731df29f9.journal~
[email protected][email protected]l
/var/log/journal/0cfa1379b4e94fd4bd1cdc4bb20a8a25/system.journal
[email protected]45c23726fd6-d4b9e97e2b2c7246.journal~
[email protected]57804ffa241-e7dc957cecea3ba5.journal~
[email protected]59d7468c197-df87dd623a6a7deb.journal~
[email protected][email protected]rnal
/var/log/journal/0cfa1379b4e94fd4bd1cdc4bb20a8a25/user-1000.journal

$ sudo rm -rf /var/log/journal/0cfa1379b4e94fd4bd1cdc4bb20a8a25/* 


No comments:

Post a Comment