A.3. PCP Installation


The most recent tested version of PCP should be available to download from the Red Hat Enterprise Linux 7 repositories.
The debugfs file system must be mounted in order for the GFS2 PMDA to operate correctly. If the debugfs file system is not mounted, run the following commands commands before installing the GFS2 PMDA.
# mkdir /sys/kernel/debug
# mount -t debugfs none /sys/kernel/debug
Copy to Clipboard Toggle word wrap
The GFS2 PMDA is not enabled by default upon installation. In order use GFS2 metric monitoring through PCP, you must enable the GFS2 domain agent. Use the following commands to install PCP and the GFS2 PMDA module and to enable GFS2 PMDA. Note that the PMDA install script must be run as root.
# yum install pcp pcp-gui pcp-pmda-gfs2
# cd /var/lib/pcp/pmdas/gfs2
# ./Install
Copy to Clipboard Toggle word wrap
When running the PMDA installation script, you will be prompted for which role you would like the PMDA to take:
  • collector allows the collection of performance metrics on the current system
  • monitor only allows the system to monitor local system or remote systems or both local and remote system
  • both enables both the collector and monitor configurations
In most cases the default choice (both collector and monitor) is sufficient to allow the PMDA to operate correctly.
# ./Install 
You will need to choose an appropriate configuration for installation of 
the "gfs2" Performance Metrics Domain Agent (PMDA). 

  collector	collect performance statistics on this system 
  monitor	allow this system to monitor local and/or remote systems 
  both		collector and monitor configuration for this system 

Please enter c(ollector) or m(onitor) or b(oth) [b] 
Updating the Performance Metrics Name Space (PMNS) ... 
Terminate PMDA if already installed ... 
Updating the PMCD control file, and notifying PMCD ... 
Waiting for pmcd to terminate ... 
Starting pmcd ... 
Starting pmlogger ... 
Check gfs2 metrics have appeared ... 316 metrics and 205 values
Copy to Clipboard Toggle word wrap
If there are any errors or warning with the installation of the GFS2 PMDA, make sure that PMCD is started and running and that debugfs is mounted (there may be warnings in the event that there is not at least one GFS2 file system loaded on the system).

注意

When installing the GFS2 PMDA on cluster nodes the default choice for PMDA configuration (both) will be sufficient to allow the PMDA to run correctly. On workstation machines where you intend just to monitor the data from remote PCP installations, it is recommended you you install the PMDA as a monitor.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat