ocssd.log filesize >50M

在做数据库维护时,突然发现 ocssd.lo1 归档log 大小超过5G,这绝对不正常。
[root@*****]# ls -lrt
total 7224540
-rw-r--r-- 1 oraprod oinstall   52844096 Jul 13  2015 ocssd.l10
-rw-r--r-- 1 oraprod oinstall   52814888 Jul 18  2015 ocssd.l09
-rw-r--r-- 1 oraprod oinstall   52823660 Jul 24  2015 ocssd.l08
-rw-r--r-- 1 oraprod oinstall   52847386 Jul 31  2015 ocssd.l07
-rw-r--r-- 1 oraprod oinstall   52806644 Aug  4  2015 ocssd.l06
-rw-r--r-- 1 oraprod oinstall   52873953 Aug 13  2015 ocssd.l05
-rw-r--r-- 1 oraprod oinstall   52875116 Aug 22  2015 ocssd.l04
-rw-r--r-- 1 oraprod oinstall   52840542 Aug 29  2015 ocssd.l03
-rw-r--r-- 1 oraprod oinstall   52502638 Sep  3  2015 ocssd.l02
-rw-r--r-- 1 oraprod oinstall 5477256392 Apr 20 19:03 ocssd.l01
-rw-r--r-- 1 oraprod oinstall 1438132149 Jun  3 00:17 ocssd.log

使用 crsctl get css logfilesize 命令来看设定的css log size 是多少。 

[oraprod@**** ~]$  crsctl get css logfilesize
CRS-4676: Successful get logfilesiz e 52428800 for Cluster Synchronization Services.

发现是默认值50m 没有做任何修改。

在support.oracle.com 中查询原因,发现 “ It is caused by unpublished Bug 18700935 - CLOUD:ACLDX0085 OCSSD LOG IS NOT ROTATED"

解决方案也很清楚:

SOLUTION

The CSSD thread that encountered the LFI-00142 error needs to be restarted to ensure log rotation works again.

Manually deleting the logfile will not resolve the log rotation problem.


1).  Shutdown CRS on the node reporting the problem.

# crsctl stop crs

2).  Once CRS is down,  proceed to manually delete the 'ocssd.l10' file, or copy the logfile to another location if you need to keep a backup.

# rm  $GRID_HOME/log/<hostname>/cssd/ocssd.l10

3).  Startup Clusterware again

# crsctl start crs

 

If you are NOT able to schedule downtime and file size growth in the GRID Home is causing a space issue then copy the logs to another location and do the following
% echo 0 > ocssd.l10
   
Please note this does not resolve the log rotation problem but only allows you to free up some space.


4). Bug 18700935 has been fixed in 11.2.0.4.5 PSU for Unix/Linux platform and 11.2.0.4.12 Bundle for Windows platform. Please apply the patch if required.

  





来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/34596/viewspace-2113200/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/34596/viewspace-2113200/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值