Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
5.3. Performing Minimal PCP Setup to Gather File System Data
The following procedure provides instructions on how to install a minimal PCP setup to collect statistics on Red Hat Enterprise Linux. The minimal setup involves adding the minimum number of packages on a production system needed to gather data for further analysis.
The resulting
tar.gz
archive of the pmlogger
output can be analyzed by using various PCP tools, such as PCP Charts, and compared with other sources of performance information.
- Install the pcp package:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow yum install pcp
# yum install pcp
- Start the
pmcd
service:Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl start pmcd.service
# systemctl start pmcd.service
- Run the
pmlogconf
utility to update thepmlogger
configuration and enable the XFS information, XFS data, and log I/O traffic groups:Copy to Clipboard Copied! Toggle word wrap Toggle overflow pmlogconf -r /var/lib/pcp/config/pmlogger/config.default
# pmlogconf -r /var/lib/pcp/config/pmlogger/config.default
- Start the
pmlogger
service:Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl start pmlogger.service
# systemctl start pmlogger.service
- Perform operations on the XFS file system.
- Stop the
pmlogger
service:Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl stop pmcd.service
# systemctl stop pmcd.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow systemctl stop pmlogger.service
# systemctl stop pmlogger.service
- Collect the output and save it to a
tar.gz
file named based on the hostname and the current date and time:Copy to Clipboard Copied! Toggle word wrap Toggle overflow cd /var/log/pcp/pmlogger/
# cd /var/log/pcp/pmlogger/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow tar -czf $(hostname).$(date +%F-%Hh%M).pcp.tar.gz $(hostname)
# tar -czf $(hostname).$(date +%F-%Hh%M).pcp.tar.gz $(hostname)