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 1293467 - getting "bad magic" when running pmcollectl on current data archive
Summary: getting "bad magic" when running pmcollectl on current data archive
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: pcp
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Nathan Scott
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-21 20:02 UTC by Dwight (Bud) Brown
Modified: 2016-01-04 17:25 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-22 17:46:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dwight (Bud) Brown 2015-12-21 20:02:30 UTC
Description of problem:
# pmcollectl -sD -p /var/log/pcp/pmlogger/<hostname>/20151221.14.26.0
pmcollectl: archive folio /var/log/pcp/pmlogger/<hostname>/20151221.14.26.0 has bad magic

# ls -l /var/log/pcp/pmlogger/<hostname>/20151221.14.26.0
-rw-r--r--. 1 pcp pcp 105656748 Dec 21 14:43 /var/log/pcp/pmlogger/<hostname>/20151221.14.26.0


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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Lukas Berk 2015-12-21 20:53:18 UTC
Hi Dwight,

Are these log files from the default pmlogger instance? If so, does using the -a (archive) option work, instead of the -p option (meant for archive folio formats instead)?

Aka, something like #pmcollectl -sD -a /var/log/pcp/pmlogger/<hostname>/20151221.14.26.0

Comment 3 Dwight (Bud) Brown 2015-12-22 15:09:38 UTC
-a is invalid/not supported option?  help file says -p?

# pmcollectl -sD -a /var/log/pcp/pmlogger/<hostname>/20151222.00.10.0 
pmcollectl: invalid option -- 'a'
Usage: pmcollectl [options]
Interactive: [-v] [-h host] [-s subsys] [-c N] [-i N] [-R N]
Write raw logfile: pmcollectl -f rawfile [-c N] [-i N] [-R N]
Read raw logfile: pmcollectl -p rawfile

Options:
  -v, --verbose         Produce verbose output
  -p, --playback        Read sample data from file
  -c COUNT, --count=COUNT
                        Number of samples
  -f FILENAME, --filename=FILENAME
                        Name of output file
  -R N, --runtime=N     How long to take samples
  -i N, --interval=N    The sample time interval
  -s SUBSYS, --subsys=SUBSYS
                        The subsystem to sample
  -h HOST, --host=HOST  metrics source is PMCD on host
  -V, --version         display version number and exit
  -?, --help            show this usage message and exit

Comment 4 Frank Ch. Eigler 2015-12-22 15:14:56 UTC
Older pmcollectl only deals with "archive folios", which are like groups of archive files, and reads from them with the -p (playback) option.  Newer pmcollectl deals directly with archives too, and reads from them with the more pcp-typical -a option.

Comment 5 Frank Ch. Eigler 2015-12-22 17:46:08 UTC
One can create archive-folios from archive files using the mkaf program:

# cd /var/log/pcp/*/$HOSTNAME
# /usr/libexec/pcp/bin/mkaf ARCHIVE-FILE > my.af
# cat my.af 
[...]
# pmcollectl -p my.af

(Note that the .af file should be in the same directory as the archives themselves.)


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