ocssd.log filesize >50M

myhuaer發表於2016-06-03
在做資料庫維護時,突然發現 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 logfilesize 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/,如需轉載,請註明出處,否則將追究法律責任。