RHEL9 Performance Co-Pilot の保存期間を変更する方法

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

概要
“/etc/sysconfig/pmlogger_timers"内のPMLOGGER_DAILY_PARAMSに-kオプションで設定します。

操作方法
1.ファイルpmlogger_timersの確認
# cat /etc/sysconfig/pmlogger_timers
## Type: string
## Default: “-E"
#
# Run the pmlogger_daily binary, via pmlogger_daily.service, with the
# given parameters. If PMLOGGER_DAILY_PARAMS is left commented out, the
# default is “-E", which causes pmlogger_daily to continue rather than fail
# if metadata inconsistencies are encountered when merging archives during
# daily log processing. See pmlogger_daily(1), pmlogger_merge(1),
# pmlogger_rewrite(1) and the -x flag for pmlogextract(1).
#
#PMLOGGER_DAILY_PARAMS=""

## Type: string
## Default: “-C"
#
# Run the pmlogger_check binary, via pmlogger_check.service, with the
# following parameters.
#
#PMLOGGER_CHECK_PARAMS=""

2.保存期間を修正します
PMLOGGER_DAILY_PARAMS="-k 30″

3.pmlogger.serviceを再起動します
# systemctl restart pmlogger.service

IT

Posted by arkgame