pcp logs are filling up /var on Red Hat Enterprise Linux

Solution Verified - Updated -

Issue

  • pcp consuming too much log space causing /var to fill.
__pmLogNewFile: failed to create "20190113.0": No such file or directory
pmlogextract: Error: __pmLogCreate: No such file or directory
pmlogger_merge: Directory: /var/log/pcp/pmlogger/examplehost.com
pmlogger_merge: Failed: pmlogextract  20190113.00.10 20190113.00.55 20190113
pmlogger_merge: Trying to continue, although output archive may be corrupted.
pmlogger_merge: Error: file "20190113.meta" not created
pmlogger_merge: Error: file "20190113.index" not created
pmlogger_merge: Error: file "20190113.0" not created
__pmLogPutResult2: write failed: returns 743288 expecting 7419960: No space left on device
pmlogextract: Error: __pmLogPutResult2: log data: No space left on device
Archive "20190116" not created.
pmlogger_merge: Directory: /var/log/pcp/pmlogger/examplehost.com
pmlogger_merge: Failed: pmlogextract  20190116.00.10 20190116.03.25 20190116.03.55 20190116.04.25 20190116.07.55 20190116.08.25 20190116.10.25 20190116.16.55 20190116
pmlogger_merge: Trying to continue, although output archive may be corrupted.
pmlogger_merge: Error: file "20190116.meta" not created
pmlogger_merge: Error: file "20190116.index" not created
pmlogger_merge: Error: file "20190116.0" not created
pmlogextract: Error: __pmLogRead[log 20190117.00.10]: Corrupted record in a PCP archive log
pmlogextract: Error occurred at byte offset 0 into a file of 30851072 bytes.
The last record, and the remainder of this file will not be extracted.
__pmLogPutResult2: write failed: returns 4255984 expecting 7420060: No space left on device
pmlogextract: Error: __pmLogPutResult2: log data: No space left on device
Archive "20190117" not created.
  • pmlogger reports of corrupted records in logs.

Environment

  • Red Hat Enterprise Linux (RHEL) 7, 8 and 9
  • Performance Co-Pilot (PCP)
  • pcp-zeroconf

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content