Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1331857

Summary: Invalid system activity file: /var/log/sysstat/sa* generated after changing number of CPUs on a virtual machine
Product: Red Hat Enterprise Linux 6 Reporter: Marc Richter <mrichter>
Component: sysstatAssignee: Peter Schiffer <pschiffe>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: low Docs Contact:
Priority: low    
Version: 6.7   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-30 09:49:30 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 Marc Richter 2016-04-29 20:10:30 UTC
Description of problem: After changing the number of virtual CPUs on a VM, the current sar data file becomes corrupt and unusable.


Version-Release number of selected component (if applicable):

sysstat-9.0.4-27.el6.x86_64

How reproducible: using a RHEL 6.7 KVM hosted VM. Customer was using VMware


Steps to Reproduce:
1. Fire up a RHEL 6.7 VM
2. Check that sar is producing good output. Let the system run for a few collection cycles
3. Increase the number of CPUs. If system won't hotplug, reboot it.
4. Issue a sar command and the error message will result

Actual results: error


Expected results: sar data goodness


Additional info:

Comment 2 Peter Schiffer 2016-04-29 21:49:12 UTC
Marc,

changing the number of CPUs within one sa data file is supported since sysstat 10.3.1. Here are the commits from the upstream:

https://github.com/sysstat/sysstat/commit/8a2b558892353ff1fdcc70be187106837aeea882
https://github.com/sysstat/sysstat/commit/cd31adf53381b6fa88b145a7e608bc83f0f454b4
https://github.com/sysstat/sysstat/commit/372339579ff08e92610303c3b96276f65faa5f51
https://github.com/sysstat/sysstat/commit/f4878ad79941bec3674946a9bb4ac921b8cec46e
https://github.com/sysstat/sysstat/commit/cd625e9cad4acf03d0dda0059af337f70b90036b
https://github.com/sysstat/sysstat/commit/331c3f97ad71fc86b6878c3412a20b7d25d7dd07

From the commits you can see that this is a huge change, and what is more, this change breaks backward compatibility of the sa data files, what disallow us to backport this feature to the RHEL-6. Unfortunately, RHEL-7 ships with sysstat 10.1.5, so it won't work there either..

peter

Comment 3 Marc Richter 2016-04-30 01:28:48 UTC
Peter,

So what I'm hearing is "Yeah, not a chance." ;-)

No worries, I think this is a real edge case and not worth the risk of even arguing a backport.

We can close this as WONTFIX if necessary.

Marc

Comment 4 Peter Schiffer 2016-04-30 09:49:30 UTC
Thanks Marc.