RHEL9 Performance Co-Pilot (PCP) pmlogger サービスの有効化方法

環境
Red Hat Enterprise Linux release 9.2 (Plow)
PCP 6.0.1

前提条件
PCP がインストールされている。

操作方法
1.pmloggerサービスを確認します

# systemctl status pmlogger
○ pmlogger.service - Performance Metrics Archive Logger
     Loaded: loaded (/usr/lib/systemd/system/pmlogger.service; disabled; preset: disabled)
     Active: inactive (dead)
       Docs: man:pmlogger(1)

2.pmlogger サービスを開始して、有効にします。

# systemctl start pmlogger
# systemctl enable pmlogger
Created symlink /etc/systemd/system/multi-user.target.wants/pmlogger.service → /usr/lib/systemd/system/pmlogger.service.

3.pmloggerサービスのステータスを確認します

# systemctl status pmlogger
● pmlogger.service - Performance Metrics Archive Logger
     Loaded: loaded (/usr/lib/systemd/system/pmlogger.service; enabled; preset: disabled)
     Active: active (running) since Sun 2024-02-18 20:39:58 JST; 1min 23s ago
       Docs: man:pmlogger(1)
   Main PID: 3636 (pmlogger)
      Tasks: 1 (limit: 22836)

4.pmlogger サービスが有効になっているかどうかを確認します。

# pcp
Performance Co-Pilot configuration on localhost.localdomain:

 platform: Linux localhost.localdomain 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 12 10:45:03 EDT 2023 x86_64
 hardware: 2 cpus, 1 disk, 1 node, 3631MB RAM
 timezone: JST-9
 services: pmcd
     pmcd: Version 6.0.1-4, 9 agents, 1 client
     pmda: root pmcd proc pmproxy xfs linux mmv kvm jbd2
 pmlogger: primary logger: /var/log/pcp/pmlogger/localhost.localdomain/20240218.20.39

 

IT

Posted by arkgame