crfclust.bdb文件过大处理

现象

在11gR2的RAC中,在 $GRID_HOME/grid/crf/db/<hostname>路径下有一个文件crfclust.bdb所占空间巨大,有的几十G甚至上百G。

该文件crfclust.bdb是Cluster Health Monitor (CHM) file,他的默认大小是1G,但是有在一些平台和版本中由于bug原因导致过大.

Oracle Cluster Health Monitor (CHM) using large amount of space (more than default) (Doc ID 1343105.1)
Bug 20186278 – crfclust.bdb Becomes Huge Size Due to Sudden Retenti on Change (Doc ID 20186278.8)

解决方案

可以通过删除这个文件解决。

[root@myhost02 myhost02]# /oracle/product/11g/grid/bin/crsctl stop res ora.crf -init
CRS-2673: Attempting to stop 'ora.crf' on 'myhost02'
CRS-2677: Stop of 'ora.crf' on 'myhost02' succeeded
[root@myhost02 myhost02]# rm crfclust.bdb
rm: remove regular file `crfclust.bdb'? yes
[root@myhost02 myhost02]# /oracle/product/11g/grid/bin/crsctl start res ora.crf -init
CRS-2672: Attempting to start 'ora.crf' on 'myhost02'
CRS-2676: Start of 'ora.crf' on 'myhost02' succeeded
[root@myhost02 myhost02]# /oracle/product/11g/grid/bin/crsctl stat res ora.crf -init -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.crf
      1        ONLINE  ONLINE       myhost02                               

posted @ 2021-02-01 18:08  syksky  阅读(1647)  评论(0编辑  收藏  举报