pcs_status_fail_cleanup

문서의 이전 판입니다!


pcs status fail cleanup

pacemaker를 통한 클러스터 구성시 간혹 장애상황에 대한 로그가 pcs status에 보여지는경우가 있다.
아래와 같은 경우

[root@Int-SFDB-01 ~]# pcs status
Cluster name: CLSFDB
Stack: corosync
Current DC: ha-sfdb-01 (version 1.1.23-1.el7_9.1-9acf116022) - partition with quorum
Last updated: Mon Jan 25 13:13:46 2021
Last change: Mon Jan 25 13:13:34 2021 by hacluster via cibadmin on ha-sfdb-01

2 nodes configured
2 resource instances configured

Online: [ ha-sfdb-01 ha-sfdb-02 ]

Full list of resources:

 Resource Group: SFDBGR
     res-vip	(ocf::heartbeat:IPaddr2):	Started ha-sfdb-02
     res-mysqld	(systemd:mysqld):	Started ha-sfdb-02

Failed Resource Actions:
* res-mysqld_start_0 on ha-sfdb-01 'unknown error' (1): call=47, status=complete, exitreason='',
    last-rc-change='Mon Jan 25 13:08:53 2021', queued=0ms, exec=2060ms

Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled

위와같이 리소스 상태는 정상인데 Failed Resource Actions 항목에 이전 장애 상황에 대한 로그가 나타나는 경우가 있다.
이것은 장애가 발생하여 다른 노드로 정상적으로 전환되어 복구 되었지만 장애에 대한 로그가 보여지는것이다.

확인후 해당 내역을 삭제하고 싶다면 아래 pcs resource cleanup 명령어로 지워주면 된다.

[root@Int-SFDB-01 ~]# pcs resource cleanup
로그인하면 댓글을 남길 수 있습니다.
  • pcs_status_fail_cleanup.1611548166.txt.gz
  • 마지막으로 수정됨: 2021/01/25 04:16
  • 저자 koov