關於Oracle RAC 叢集日誌無法輪循的問題處理
2015-08-23 04:34:18.962:
[client(18715)]CRS-0009:log file "/oracle/app/11.2.0/grid/log/d4jt6csvpra04/client/olsnodes.log" reopened
2015-08-23 04:34:18.962:
[client(18715)]CRS-0019:file rotation terminated. log file: "/oracle/app/11.2.0/grid/log/d4jt6csvpra04/client/olsnodes.log"
2015-08-23 04:39:19.095:
[client(19507)]CRS-0014:An error occurred while attempting to delete file "/oracle/app/11.2.0/grid/log/d4jt6csvpra04/client/olsnodes.l03" during log file rotation. Additional diagnostics: LFI-00142: Unable to delete an existing file [olsnodes][l03] not owned by Oracle.
從日誌來看,應該是日誌的輪循出現了錯誤,根據提示無法刪除屬於oracle的日誌檔案,檢查日誌發現:部分日誌非常的大:
total 4.5G
-rw-r--r-- 1 grid oinstall 0 Dec 7 2013 orarootagent_rootOUT.log
-rw-r--r-- 1 grid oinstall 11M Dec 10 2013 orarootagent_root.l10
-rw-r--r-- 1 grid oinstall 5 Jan 16 2015 orarootagent_root.pid
-rw-r--r-- 1 grid oinstall 4.5G Sep 29 11:58 orarootagent_root.log
[grid@d4jt6csvpra04 orarootagent_root]$
發現類似於這樣的大日誌情況還是蠻多的,在MOS上看了下,與bug有關,檢查自己的環境是11.2.0.4.0並且沒有打上任何補丁,MOS建議如下:
It is caused by unpublished Bug 18700935 - CLOUD:ACLDX0085 OCSSD LOG IS NOT ROTATED
At some point in time, the Clusterware alert log reports an attempted logfile rotation failure.
As a result, the last logfile 'ocssd.110' is never deleted. This may be due to the logfile being open during logfile delete or a permissions issue on the file itself.
The ocssd.bin thread that performs log file rotation 'clsd_logThread' encounters the delete failure and this causes the logfile never to be deleted/rotated, resulting in ocssd.log continually growing in size.
Extract of the error in $GRID_HOME/log/<hostname>/alert<hostname>.log
2014-06-05 15:37:44.512:
[cssd(29355)]CRS-0009:log file "/u01/app/11.2.0.3/grid/log/ed28db01/cssd/ocssd.log" reopened
2014-06-05 15:37:44.512:
[cssd(29355)]CRS-0019:file rotation terminated. log file: "/u01/app/11.2.0.3/grid/log/ed28db01/cssd/ocssd.log"
[cssd(29355)]CRS-0014:An error occurred while attempting to delete file "/u01/app/11.2.0.3/grid/log/ed28db01/cssd/ocssd.l10" during log file rotation. Additional diagnostics: LFI-00142: Unable to delete an existing file [ocssd][l10] not owned by Oracle.
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
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/28612416/viewspace-1811489/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE RAC 11.2.0.4 FOR RHEL6叢集無法啟動的處理Oracle
- 搭建Kubernetes叢集時DNS無法解析問題的處理過程DNS
- Oracle 11gr2修改RAC叢集的scan ip,並處理ORA-12514問題Oracle
- Oracle Linux 6.7中 Oracle 11.2.0.4 RAC叢集CRS異常處理OracleLinux
- oracle 12C RAC 12.1.0.2 叢集日誌(cluster log)目錄Oracle
- 踩坑日誌--CEPH叢集常見問題解決辦法
- Oracle 例項和RAC叢集下資料庫日誌目錄合集Oracle資料庫
- repmgr 叢集雙主問題處理
- Oracle日常問題處理-資料庫無法啟動Oracle資料庫
- 關於k8s叢集容器日誌收集的總結K8S
- redhat7 搭建oracle 11g RAC 問題與處理RedhatOracle
- 關於Oracle 9i字符集問題的解決辦法FCOracle
- ORACLE 12C 之叢集日誌位置變化Oracle
- Kafka叢集訊息積壓問題及處理策略Kafka
- RAC磁碟頭損壞問題處理
- oracle RAC 診斷叢集狀態命令Oracle
- 『無為則無心』Python日誌 — 67、logging日誌模組處理流程Python
- SQLServer 2008中事務日誌已滿問題處理SQLServer
- mysql因為事務日誌問題無法啟動MySql
- 關於叢集節點timeline不一致的處理方式
- oracle兩節點RAC,由於gipc導致某節點crs無法啟動問題分析Oracle
- Oracle DataGuard歸檔日誌丟失處理方法Oracle
- RAC節點hang住, oracle bug導致了cpu過高,無法啟動叢集隔離Oracle
- 華納雲:如何解決hadoop叢集無法啟動的問題?Hadoop
- Ubuntu無法解析域名DNS指向127.0.0.53問題處理UbuntuDNS
- Kubernetes叢集日誌詳解
- Linux 問題處理集錦Linux
- Oracle歸檔日誌所在目錄時間不對&&Oracle叢集日誌時間顯示錯誤Oracle
- oracle 11.2.0.4 rac叢集等待事件enq: TM - contentionOracle事件ENQ
- Oracle叢集(RAC)時間同步(ntp和CTSS)Oracle
- 關於docker無法訪問倉庫的映象代理問題Docker
- 關於Oracle 12c的叢集監控(CHM)Oracle
- Kubernetes 叢集日誌 和 EFK 架構日誌方案架構
- Oracle 10g RAC故障處理Oracle 10g
- 基於go開發日誌處理包Go
- ORACLE無法OPEN,處理三板斧Oracle
- orbeon form 的日誌處理ORBORM
- 排查 k8s 叢集 master 節點無法正常工作的問題K8SAST
- ORACLE 11G DATAGUARD 日誌中斷處理方案Oracle