$CRS_HOME/cdata下大量数字命名的文件,占用空间大
问题现象:
<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
随机推荐
- 数据库中存放着HTML并附带样式,如何在界面上对已有的样式进行修改
在工作中遇到这样一个问题,数据库中存放着HTML代码,并且还带有样式,我要在界面上修改他已经写好的样式,例如把这个字段的字体改成微软雅黑,数据库中对应字段内容如下图 在界面面上是直接把上图这段HTML ...
- 比较详细的mysql的几种连接功能分析,只要你看完就能学会的好东西
下面是例子分析表A记录如下: aID aNum 1 a20050111 2 a20050112 3 a20050113 4 ...
- 转载:解决IE下a标签会触发window.onbeforeunload的问题
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <hea ...
- Csharp:操作存儲過程輸出參數,和返回值
/// <summary> ///塗聚文 存儲過程輸出參數,和返回值 /// 20131030 /// Geovin Du /// </summary> /// <par ...
- 牛客提高R5 A.同余方程
题意 题目链接 Sol 设\(solve(x, y)\)表示\(i \in [0, x], j \in [0, y]\)满足题目要求的方案数 首先容斥一下,\(ans = solve(r_1, r_2 ...
- TextView来实现跑马灯的效果
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=&quo ...
- Html5 突破微信限制实现大文件分割上传
先来前端代码 <!DOCTYPE html> <html> <head> <meta name="viewport" content=&q ...
- java面试题之----get和post请求方法的区别
GET和POST两种基本请求方法的区别 GET和POST是HTTP请求的两种基本方法,要说它们的区别,接触过WEB开发的人都能说出一二. 最直观的区别就是GET把参数包含在URL中,POST通过req ...
- awk使用实例一则
$META_DB -N -e "use web_boss_rainbow; select iDsId, sDbname, sHost, sPort, sNameServiceKey,sDri ...
- Git软件的学习
第一部分:我的git地址是https://github.com/ZHU19007/gitLearning 第二部分:我对git的认识 一.Git是一款免费.开源的分布式版本控制工具.而Github是用 ...