问题现象:
    <CRS_HOME>/cdata目录下存在大量数字命名的文件,导致文件系统爆满

$ls -alrth /opt/oracle/product/CRS/cdata/crs
-rw-r--r-- root root 3.9M Oct :
-rw-r--r-- root root 3.9M Oct :
-rw-r--r-- root root 3.9M Oct :
-rw-r--r-- root root 3.9M Oct :
-rw-r--r-- root root 3.9M Oct :
$ls /opt/oracle/product/CRS/cdata/crs |egrep '^[0-9]+' |wc -l

Automatic OCR Backup Filling Up <CRS_HOME>/cdata/<clustername> Directory (Doc ID 1191067.1)

ls -l $GRID_HOME/cdata/$CLUSTERNAME
-rwxr-xr-x grid oinstall Jul : week.ocr
-rwxr-xr-x grid oinstall Jul : day.ocr
-rwxr-xr-x grid oinstall Jul : backup02.ocr
-rwxr-xr-x grid oinstall Jul : backup01.ocr
-rwxr-xr-x grid oinstall Jul : day_.ocr
-rw------- root root Jul : backup00.ocr
-rw------- root root Jul : .ocr
-rw------- root root Jul : .ocr..
-rw------- root root Aug : .ocr
-rw------- root root Aug : .ocr

Due to bug 9446443, automatic OCR backups are incorrectly owned which is preventing CRSD from overwriting them.
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Information in this document applies to any platform.Symptoms
Automatic OCR backup rotation is not working with 11gR2 Grid Infrastructure, instead of overwriting existing backup file, CRSD keeps creating new backup files which taking more and more space:

ls -l $GRID_HOME/cdata/$CLUSTERNAME
-rwxr-xr-x grid oinstall Jul : week.ocr
-rwxr-xr-x grid oinstall Jul : day.ocr
-rwxr-xr-x grid oinstall Jul : backup02.ocr
-rwxr-xr-x grid oinstall Jul : backup01.ocr
-rwxr-xr-x grid oinstall Jul : day_.ocr
-rw------- root root Jul : backup00.ocr
-rw------- root root Jul : .ocr
-rw------- root root Jul : .ocr
..
-rw------- root root Aug : .ocr
-rw------- root root Aug : .ocrCause

Due to bug 9446443, automatic OCR backups are incorrectly owned which is preventing CRSD from overwriting them.
Expected ownership and permission on Linux - all 7 of them:

-rw-------  root root  Aug  : backup00.ocr
-rw------- root root Aug : backup01.ocr
-rw------- root root Aug : backup02.ocr
-rw------- root root Aug : day_.ocr
-rw------- root root Aug : day.ocr
-rw------- root root Aug : week_.ocr
-rw------- root root Aug : week.ocrSolution

bug 9446443 is fixed in 11.2.0.2, 12.1.

It's recommended to apply patch to fix the issue, but if patch is unavailable, workaround is to change ownership and permission of all 7 automatic backup files manually. OCR should be owned by root, but depend on platform, group may or may not be root - you can check any randomly named backup file to identify what ownership and permission it should have; in example below:

-rw------- 1 root root 7143424 Aug 30 09:40 38455890.ocr

With this, please change all 7 automatic backup files to be owned by root:root with permission "-rw-------"References
NOTE:1083982.1 - Incorrect Ownership and Permission after Relinking or Patching 11gR2 Grid Infrastructure
BUG:9446443 - ROOTCRS.PL RESETS THE PERMISSIONS ON /CDATA/
BUG:7313884 - NEWLY GENERATED OCR BACKUP IN CDATA DIRECTORY CAN'T BE RENAMED
BUG:5893629 - CRSD CRASHES AFTER BEING UNABLE TO DELETE BACKUP OCR FILE

随机推荐

  1. [转]scp命令学习

    原博客地址http://www.cnblogs.com/peida/archive/2013/03/15/2960802.html scp是secure copy的简写,用于在Linux下进行远程拷贝 ...

  2. Baseball Game

    You're now a baseball game point recorder. Given a list of strings, each string can be one of the 4 ...

  3. hdu 1520 树形DP基础

    http://acm.hdu.edu.cn/showproblem.php?pid=1520 父节点和子节点不能同时选. http://blog.csdn.net/woshi250hua/articl ...

  4. stateless函数里面的参数问题

    UI组件文件: function Selector({ status1, status2, status3 }){ return (<div><span>demo</sp ...

  5. 安全隐患,你对X-XSS-Protection头部字段理解可能有误

    0×00. 引言 我曾做过一个调查,看看网友们对关于X-XSS-Protection 字段的设置中,哪一个设置是最差的,调查结果令我非常吃惊,故有此文. 网友们认为 最差的配置是X-XSS-Prote ...

  6. May 24th 2017 Week 21th Wednesday

    Always remember that you are absolutely unique. 永远记住,你是独一无二的. I am unique, in the way that all I do ...

  7. March 19 2017 Week 12 Sunday

    If you want it, work for it. It's that simple. 很简单,想要什么,就为之努力吧. Yes, it is very simple. Many of us j ...

  8. 转一个csdn看到的帖子:而立之年的程序猿失业了 [问题点数:0分,结帖人jinxingfeng_cn]

    http://bbs.csdn.net/topics/390612263?page=1#post-395768948

  9. Hello World, S/4HANA for Customer Management 1.0

    SAP CRM的前世今生 在我之前的微信公众号文章 SAP的这三款CRM解决方案,您能区分清楚么我曾经提到过我作为成都SAP研究院CRM产品开发团队的一员工作过一段时间. 我向在SAP德国总部工作的德 ...

  10. mongodb文档替换

    对下面的文档做一个比较大的调整,将 friends.enemies两个字段移到 relationships子文档中. > db.people.insert({ "name" ...