[Solved] Issue: crfclust.bdb file is too large

Fui acionado certa vez por um FS quase estourado, e percebi que o arquivo ofensor era o “crfclust.bdb”, com 12GB de tamanho:

[grid@oel6 oel6]$ pwd
/apl/grid/11.2.0/product/crf/db/oel6
[grid@oel6 oel6]$ du -hs *
227M    crfalert.bdb
12G     crfclust.bdb
8.0K    crfconn.bdb
227M    crfcpu.bdb
222M    crfhosts.bdb
280M    crfloclts.bdb
180M    crfts.bdb
12K     __db.001
392K    __db.002
2.6M    __db.003
796K    __db.004
904K    __db.005
12K     __db.006
16M     log.0000001642
12M     log.0000001643
8.0K    repdhosts.bdb
115M    oel6.ldb
[grid@oel6 oel6]$

Encontrei um Oracle Note reportando um problema conhecido e o procedimento de resolução: Oracle Cluster Health Monitor (CHM) using large amount of space (more than default) (Doc ID 1343105.1). Link AQUI.

Baixando o serviço CRF:

[grid@oel6 oel6]$ cd $ORACLE_HOME/bin
[grid@oel6 bin]$ pwd
/apl/grid/11.2.0/product/bin
[grid@oel6 bin]$ sudo /apl/grid/11.2.0/product/bin/crsctl stop res ora.crf -init
CRS-2673: Attempting to stop 'ora.crf' on 'oel6'
CRS-2677: Stop of 'ora.crf' on 'oel6' succeeded
[grid@oel6 bin]$

Removendo todos os arquivos com extensão “.bdb”:

[root@oel6 oel6]# rm *.bdb
rm: remove regular file `crfalert.bdb'? y
rm: remove regular file `crfclust.bdb'? y
rm: remove regular file `crfconn.bdb'? y
rm: remove regular file `crfcpu.bdb'? y
rm: remove regular file `crfhosts.bdb'? y
rm: remove regular file `crfloclts.bdb'? y
rm: remove regular file `crfts.bdb'? y
rm: remove regular file `repdhosts.bdb'? y

Subindo novamente o serviço:

[grid@oel6 oel6]$ cd $ORACLE_HOME/bin
[grid@oel6 bin]$ sudo /apl/grid/11.2.0/product/bin/crsctl start res ora.crf -init
CRS-2672: Attempting to start 'ora.crf' on 'oel6'
CRS-2676: Start of 'ora.crf' on 'oel6' succeeded
[grid@oel6 bin]$

Ambiente normalizado. Os arquivos removidos foram recriados após o start do serviço:

[grid@oel6 bin]$ cd /apl/grid/11.2.0/product/crf/db/oel6
[grid@oel6 oel6]$ ll
total 156216
-rw-r----- 1 root root    114688 Sep 10 10:08 crfalert.bdb
-rw-r----- 1 root root   5439488 Sep 10 10:08 crfclust.bdb
-rw-r----- 1 root root    131072 Sep 10 10:08 crfcpu.bdb
-rw-r----- 1 root root    110592 Sep 10 10:08 crfhosts.bdb
-rw-r----- 1 root root    131072 Sep 10 10:08 crfloclts.bdb
-rw-r----- 1 root root     94208 Sep 10 10:08 crfts.bdb
-rw-r----- 1 root root     24576 Sep 10 10:06 __db.001
-rw-r----- 1 root root    401408 Sep 10 10:08 __db.002
-rw-r----- 1 root root   2629632 Sep 10 10:08 __db.003
-rw-r----- 1 root root   2162688 Sep 10 10:08 __db.004
-rw-r----- 1 root root   1187840 Sep 10 10:08 __db.005
-rw-r----- 1 root root     57344 Sep 10 10:08 __db.006
-rw-r----- 1 root root  16777216 Sep 10 10:06 log.0000001643
-rw-r----- 1 root root  16777216 Sep 10 10:08 log.0000001644
-rw-r----- 1 root root      8192 Sep 10 10:08 repdhosts.bdb
-rw-r--r-- 1 root root 120000000 Aug 26 08:37 oel6.ldb
[grid@oel6 oel6]$ du -hs *
112K    crfalert.bdb
5.2M    crfclust.bdb
128K    crfcpu.bdb
108K    crfhosts.bdb
128K    crfloclts.bdb
96K     crfts.bdb
12K     __db.001
392K    __db.002
2.5M    __db.003
2.1M    __db.004
904K    __db.005
12K     __db.006
16M     log.0000001643
11M     log.0000001644
8.0K    repdhosts.bdb
115M    oel6.ldb
[grid@oel6 oel6]$

Leave a Comment

Your email address will not be published.