Bug 1301579
Summary: | Request to add journalctl --disk-usage output in sosreport | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | masanari iida <masanari.iida> |
Component: | sos | Assignee: | Pavel Moravec <pmoravec> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | agk, bmr, gavin, pkshiras, plambri, sbradley |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
URL: | https://github.com/sosreport/sos/issues/750 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-11 08:20:43 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
masanari iida
2016-01-25 12:35:06 UTC
Could you please elaborate why this information would be valuable to collect? Can't be the same information extracted from current data, e.g. from size of sos_commands/logs/journalctl_--all_--this-boot_--no-pager_-o_verbose (though not sure how --this-boot can affect it - with default journald settings, these values match before and also after reboot)? > Can't be the same information extracted from current data, e.g. from size of > > sos_commands/logs/journalctl_--all_--this-boot_--no-pager_-o_verbose No: that is a text rendering of the journal contents. The journal itself is stored in a binary format with additional metadata. Although the size of journal logs approximates the size of the journal they do not measure the same thing. http://www.freedesktop.org/wiki/Software/systemd/journal-files/ This is also useful since it presents a global summary of disk usage rather than piecemeal per-file, e.g. (Fedora 23): # journalctl --disk-usage Archived and active journals take up 640.1M on disk. With all that said on RHEL7 it is slightly less interesting/accurate: # journalctl --disk-usage Journals take up 96.0M on disk. Although it is true that there are 96.0M of journal files present on this system: # du -ch /run/log/journal/ 96M /run/log/journal/8f1a41c7c31a4575bd21b465748f123c 96M /run/log/journal/ 96M total These are all on the non-persistent (in-memory) /run file system - RHEL7 does not use persistent journald logs at all by default so this will only ever measure the size of the logs from the current boot. That said I don't see any reason to not collect this & it is then available for other distributions (like Fedora) that do already offer persistent journald logs by default. Makes sense. Esp. when cmd execution time and also output size are trivially small. PR raised in upstream. POSTed to upsetram as: https://github.com/sosreport/sos/commit/28c87cdb311bafa194a1d2d8df2421b2a80323a7 This has been fixed in upstream sos 3.3 we rebased to by [1] in RHEL7.3. Errata [2] should resolve this bug. Please test [2] and in case it does not address the reported problem properly, reopen this BZ. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1293044 [2] https://rhn.redhat.com/errata/RHBA-2016-2380.html |