博客园  :: 首页  :: 管理

关于pacemaker的Failed Fencing Actions报错信息的清理

Posted on 2023-02-08 18:10  520_1351  阅读(446)  评论(0编辑  收藏  举报
刚在服务器上执行pcs status 时,发现底部有如下一段报错
Failed Fencing Actions:
  * reboot of Linux-Client-01 failed (Initiated by earlier fencer process and presumed failed): delegate=, client=pacemaker-controld.1949, origin=Linux-Client-02, last-failed='2023-02-08 11:14:14 +08:00'

一看就是与Fencing相关的报错,当前各个资源都运行是正常的,于是准备清理掉这行报错

清理方法如如下:

需要先定位出开头那一行* reboot of XXXXX failed 中间的部分,即节点名称,然后通过如下命令即可完成清理/清除

[root@Linux-Client-01 QQ-5201351]# pcs stonith history cleanup Linux-Client-01
cleaning up fencing-history for node Linux-Client-01

我们其实也可以通过 pcs stonith history cleanup 不指定节点删除所有的Fencing Actions相关的报错信息

最后再执行pcs status命令查看,就没有Failed Fencing Actions 相关的报错信息了

另外:我们也还可以通过pcs stonith history 查看【当前+历史】的Fencing Actions相关的报错信息

 

 

 

尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/17102878.html