问题现象:
    <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. 数据类型之Nullable

    Nullable 此结构在 .NET Framework 2.0 版中是新增的.

  2. 1.浅析Hadoop之HDFS

    HDFS ,Hadoop Distribute File System,hadoop分布式文件系统. 主从架构,分主节点NameNode,从节点DataNode.当然还有个SecondaryName, ...

  3. 转载:解决IE下a标签会触发window.onbeforeunload的问题

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <hea ...

  4. 什么时候修改class

    点击按钮class发生改变 <html> <head> <meta http-equiv="Content-Type" content="t ...

  5. 软件项目技术点(2)——Canvas之坐标系转换

    AxeSlide软件项目梳理   canvas绘图系列知识点整理 默认坐标系与当前坐标系 canvas中的坐标是从左上角开始的,x轴沿着水平方向(按像素)向右延伸,y轴沿垂直方向向下延伸.左上角坐标为 ...

  6. 【Linux】Linux入门及常见基本操作命令详解

    本文基于 Red Hat Enterprise Linux 6 一.Linux 入门体验 1.1 root用户登陆 1.2 图形化与纯字符模式切换 init 5 - 图形模式 init 3 - 纯字符 ...

  7. SQL Server 2012安装配置(Part2 )

    2 服务器安装 运行安装程序后,首先进入 SQL Server 安装中心.选择左侧导航树中的"安装"菜单项. 图2-1 SQL Server 安装中心 在右侧菜单中点击" ...

  8. 在Eclipse中安装JSHint插件

    离线安装 1.下载插件包 http://download.eclipsesource.com/~rsternberg/jshint-eclipse-0.9.8.20130728-0004-b94b44 ...

  9. 【Spring实战】—— 16 基于JDBC持久化的事务管理

    前面讲解了基于JDBC驱动的Spring的持久化管理,本篇开始则着重介绍下与事务相关的操作. 通过本文你可以了解到: 1 Spring 事务管理的机制 2 基于JDBC持久化的事务管理 Spring的 ...

  10. day2-基础 变量,判断,循环

    1.第一个程序 print ("Hello World!") 输出: 1 Hello World 2.第一个变量 a = ( print (a) 输出: Hello World 3 ...