Opensourcetechブログ

OpensourcetechによるNGINX/Kubernetes/Zabbix/Neo4j/Linuxなどオープンソース技術に関するブログです。

Pacemakerにおける「Failed Resource Actions:」のクリア方法


LinuCエヴァンジェリストの鯨井貴博@opensourcetechです。

Pacemakerにおける「Failed Resource Actions:」のクリア方法に関するメモです。

以下のように、「Failed Resource Actions:」が表示されている状態とします。

[root@db01 ~]# pcs status
Cluster name: drbd_cluster

WARNINGS:
Corosync and pacemaker node names do not match (IPs used in setup?)

Stack: corosync
Current DC: db01 (version 1.1.21-1.el7-f14e36f) - partition with quorum
Last updated: Mon Jun 8 19:26:49 2020
Last change: Mon Jun 8 19:25:17 2020 by root via crm_attribute on db01

2 nodes configured
6 resources configured

Online: [ db01 db02 ]

Full list of resources:

Resource Group: Group-FS
FS (ocf::heartbeat:Filesystem): Started db01
vipcheck (ocf::heartbeat:VIPcheck): Started db01
VIP (ocf::heartbeat:IPaddr2): Started db01
prmPing (ocf::pacemaker:ping): Started db01
OraLsnr (ocf::heartbeat:oralsnr): Started db01
OraSrv (ocf::heartbeat:oracle): Started db01

//  ・・・この部分・・・
Failed Resource Actions:
* OraSrv_monitor_0 on db02 'unknown error' (1): call=26, status=complete, exitreason='oracle instance XE is down',
last-rc-change='Mon Jun 8 20:04:42 2020', queued=1ms, exec=1924ms
//  ・・・この部分・・・

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



これの消し方ですが、「pcs resource failcount reset」を使います。

[root@db01 ~]# pcs resource failcount reset
Waiting for 1 reply from the CRMd. OK
[root@db01 ~]# pcs status
Cluster name: drbd_cluster

WARNINGS:
Corosync and pacemaker node names do not match (IPs used in setup?)

Stack: corosync
Current DC: db01 (version 1.1.21-1.el7-f14e36f) - partition with quorum
Last updated: Mon Jun 8 19:26:49 2020
Last change: Mon Jun 8 19:25:17 2020 by root via crm_attribute on db01

2 nodes configured
6 resources configured

Online: [ db01 db02 ]

Full list of resources:

 Resource Group: Group-FS
     FS (ocf::heartbeat:Filesystem):    Started db01
     vipcheck   (ocf::heartbeat:VIPcheck):      Started db01
     VIP        (ocf::heartbeat:IPaddr2):       Started db01
     prmPing    (ocf::pacemaker:ping):  Started db01
 OraLsnr        (ocf::heartbeat:oralsnr):       Started db01
 OraSrv (ocf::heartbeat:oracle):        Stopped

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


これで消すことが出来ます。

Opensourcetech by Takahiro Kujirai