cd $GRID_HOME/log/`hostname`/crsd ;
chown root:root *
cd $GRID_HOME/log/`hostname`/ohasd;
chown root:root *
cd $GRID_HOME/log/`hostname`/agent/crsd/orarootagent_root;
chown root:root *
cd $GRID_HOME/log/`hostname`/agent/ohasd/orarootagent_root;
chown root:root *
1). Shutdown CRS on thenode reporting the problem.
# crsctl stop crs
2). Once CRS isdown, proceed to manually delete the 'ocssd.l10' file, or copy thelogfile to another location if you need to keep a backup.
# rm $GRID_HOME/log/<hostname>/cssd/ocssd.l10
3). Startup Clusterwareagain
# crsctl start crs
如果不能停机,则使用如下命令来释放空间:
echo 0> ocssd.l10 -- ocssd.l10为要清理的文件名
In this Document
APPLIES TO:Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.4 [Release 11.2] SYMPTOMSGI logfile "ocssd.log" grows beyond the default file size. The logfile rotation fails with error LFI-00142: Unable to delete an existing file [ocssd][110] not owned by Oracle. This problem can cause file system space issues!
-rw-r--r-- 1 grid oinstall 5517323953 Jun 6 07:57 ocssd.log ----> Here!
In the above example the expected file size should not exceed 150mb. Query CSS as follows to confirm logfile size limit --> % crsctl get css logfilesize CHANGESNone CAUSEIt 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. [cssd(29355)]CRS-1713:CSSD daemon is started in clustered mode --用户组不对导致文件轮循清理失败
SOLUTIONThe 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.
# 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
|
This note givesa brief overview of bug 9595783.
The content was last updated on: 02-DEC-2013
Click here fordetails ofeach of the sections below.
Affects:
Product (Component) |
Oracle Server (Rdbms) |
Range of versions believed to be affected |
Versions >= 11.2.0.1 but BELOW 11.2.0.2 |
Versions confirmed as being affected |
|
Platforms affected |
Generic (all / most platforms affected) |
Fixed:
The fix for 9595783 is first included in |
|
Interim patches may be available for earlierversions - click here tocheck.
Symptoms: |
Related To: |
|
|
Description
Whileapplying a patch to a Grid Infrastructure environment,
ownersand permissions of several files and directories are
temporarilychanged by a script called rootcrs.pl. Those files
anddirectories are changed back to its original owners/permissions
whenpatch application completes, but there are some files and
directoriesthat remained changed.
Thishas caused problems such as:
A:incorrect permission set for oradism after patching
B:incorrect permission for log files or log directories
under $GI_HOME/log/, causing issues such aslog filenot being
outputted at all or not being backed up to.l01, .l02,etc.
Workaround
Manually change the file/directory owners andpermissions to
their original values.
eg:
For issue A above:
chown root:oinstall $GRID_HOME/bin/oradism
chmod 4750 $GRID_HOME/bin/oradism
For issue B above:
To ensure that the log files of processeslike crsd,orarootagent
are owned correctly you can use the chowncommand likebelow:
cd $GRID_HOME/log/`hostname`/crsd ;
chown root:root *
cd $GRID_HOME/log/`hostname`/ohasd ;
chown root:root *
cd$GRID_HOME/log/`hostname`/agent/crsd/orarootagent_root;
chownroot:root *
cd$GRID_HOME/log/`hostname`/agent/ohasd/orarootagent_root ;
chown root:root *
(If the "hostname" commandreturns astring which also includes
the domain suffix then just use thelocalhostname in the above
commands without any domain portion)
Please note: The above is a summary description only. Actual symptoms can vary. Matching to any symptoms here does not confirm that you are encountering this problem. For questions about this bug please consult Oracle Support. |
References
Bug:9595783 (This link willonly work forPUBLISHED bugs)
Note:245840.1 Information onthe sectionsin this article
http://nervinformatica.com.br/Downloads/raccheck_nerv01_RAC01_092513_055913.html
Sharon
2015.05.12
----------------------------------------------------------------------------------------------
转载须注明出处!
http://blog.csdn.net/sharqueen_wu/article/details/45668011
转载须注明出处!
http://blog.csdn.net/sharqueen_wu/article/details/45668011
转载须注明出处!
http://blog.csdn.net/sharqueen_wu/article/details/45668011