Bug 1088998
| Summary: | When XZ compression is used /var/log/sa/sa* files kept longer than given HISTORY parameter | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Peter Portante <pportant> | |
| Component: | sysstat | Assignee: | Peter Schiffer <pschiffe> | |
| Status: | CLOSED ERRATA | QA Contact: | Branislav NĂ¡ter <bnater> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.6 | CC: | bnater | |
| Target Milestone: | rc | Keywords: | Upstream | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | sysstat-9.0.4-23.el6 | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: sa2 script didn't support xz compression
Consequence: old daily data files weren't deleted
Fix: add support of xz compression to the sa2 script
Result: old daily data are deleted
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1097294 (view as bug list) | Environment: | ||
| Last Closed: | 2014-10-14 06:40:53 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1097294 | |||
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1468.html |
When an admin configures sysstat to compress the /var/log/sa/sa* data files after a certain number of days, which is less than the number of days to keep the files, no files are deleted when the "xz" compression utility is used. This appears to be due to /usr/lib64/sa/sa2 having a "find" parameter set that does not match xz compressed file names: find ${DDIR} \( -name 'sar??' -o -name 'sa??' -o -name 'sar??.gz' -o -name 'sa??.gz' -o -name 'sar??.bz2' -o -name 'sa??.bz2' \) \ -mtime +"${HISTORY}" -exec rm -f {} \; The fix was already merged upstream in pull request #17: https://github.com/sysstat/sysstat/pull/17