RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1088998 - When XZ compression is used /var/log/sa/sa* files kept longer than given HISTORY parameter
Summary: When XZ compression is used /var/log/sa/sa* files kept longer than given HIST...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sysstat
Version: 6.6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Peter Schiffer
QA Contact: Branislav Náter
URL:
Whiteboard:
Depends On:
Blocks: 1097294
TreeView+ depends on / blocked
 
Reported: 2014-04-17 15:41 UTC by Peter Portante
Modified: 2014-10-14 06:40 UTC (History)
1 user (show)

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
Clone Of:
: 1097294 (view as bug list)
Environment:
Last Closed: 2014-10-14 06:40:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1468 0 normal SHIPPED_LIVE sysstat bug fix and enhancement update 2014-10-14 01:10:47 UTC

Description Peter Portante 2014-04-17 15:41:06 UTC
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

Comment 5 errata-xmlrpc 2014-10-14 06:40:53 UTC
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


Note You need to log in before you can comment on or make changes to this bug.