Bug 110814

Summary: sysstat error: Cannot append data to that file
Product: [Fedora] Fedora Reporter: Bernd Bartmann <bernd.bartmann>
Component: sysstatAssignee: Charlie Bennett <ccb>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1CC: gczarcinski, nphilipp, victor
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-22 22:28:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bernd Bartmann 2003-11-24 16:49:44 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031114

Description of problem:
Since changing my CPU from PIV 2.53 GHz w/o HT to PIV 3.0 GHz w/ HT my
system sends out a message from the sysstat cronjob every 10 minutes:

Cannot append data to that file

The file /var/log/sa/sa24 exists an is writable by root:
-rw-r--r--    1 root     root         2501 24. Nov 17:10 sa24


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


How reproducible:
Always

Steps to Reproduce:
1. run a system with an PIV HT cpu
2. wait for sysstat cronjob messages
3.
    

Additional info:

Comment 1 Bernd Bartmann 2003-11-25 15:15:17 UTC
Hmm, strange today I don't get any messages from sysstat anymore.

Comment 2 Gene Czarcinski 2003-12-04 14:08:20 UTC
Yes, but I am getting them on a Athlon MP new everything install.

Comment 3 Gene Czarcinski 2004-03-07 15:54:35 UTC
The messages were gone for a while and now they are back.  Once stated
for a day they will continue to midnight when the switch to a new day
starts using a new file.

Comment 4 Roland Friedwagner 2004-06-03 15:17:47 UTC
Getting same message:
strace /usr/lib/sa/sa1 1 1 output ...
...
open("/proc/stat", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xbf590000
read(3, "cpu  14870 1 12783 2507170\ncpu0 "..., 4096) = 688
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xbf590000, 4096)                = 0
access("/var/log/sa/sa03", F_OK)        = 0
open("/var/log/sa/sa03", O_RDWR|O_APPEND) = 3
read(3, "\377\302\37\0]!\10\1\0\0\0\0\17\0\0\0\230\357\276@\0\0"...,
229) = 229
write(2, "Cannot append data to that file\n", 32Cannot append data to
that file
) = 32
exit_group(1)                           = ?

Comment 5 Victor Ashik 2004-09-09 07:52:23 UTC
From sysstat FAQ:

Cannot append data to that file

A> The internal structure of the data file does not allow sar to append
data to it. The data file may come from another machine, or the components
of the current box, such as the number of processors, may have changed.
Use another data file, or delete current daily data file, and try again.

Somebody can meet this situation when system with multiple processors
has been booted with single processor kernel and smp kernel in the
same day.

Another problem is that FAQ is not included in
/usr/share/doc/sysstat-%{version} and can only be found in src.rpm
package.