首页 >数据库 >mysql教程 >【翻译自mos文章】在11gR2 rac环境中,文件系统使用率紧张,并且

【翻译自mos文章】在11gR2 rac环境中,文件系统使用率紧张,并且

WBOY
WBOY原创
2016-06-07 15:26:041042浏览

在11gR2 rac环境中,文件系统使用率紧张,并且lsof显示有很多oraagent_oracle.l10 (deleted) 参考原文: High Space Usage and lsof Output Shows Many 'oraagent_oracle.l10 (deleted)' in GI environment (Doc ID 1598252.1) 适用于: Oracle Database - E


在11gR2 rac环境中,文件系统使用率紧张,并且lsof显示有很多oraagent_oracle.l10 (deleted)

参考原文:
High Space Usage and "lsof" Output Shows Many 'oraagent_oracle.l10 (deleted)' in GI environment (Doc ID 1598252.1)

适用于:
Oracle Database - Enterprise Edition - Version 11.2.0.3 to 12.1.0.1 [Release 11.2 to 12.1]
Information in this document applies to any platform.

症状:
使用df命令可以看到,GI home的文件系统使用率相当高,但是du命令却看不到有文件正在使用全部的空间。
在这个例子中,df 显示已经使用95%(约89GB),但是du却显示只有34GB

lsof 命令显示有很多oraagent_oracle.l10 文件被标记为deleted(--->注意:使用lsof | grep deleted  就可以定位被deleted掉的文件),因为handle 一直在持有这些被deleted掉的文件,因此os不能回收这部分空间。

oracle 121508 oracle 5w REG 253,3 10564931 6178664 /u01/app/11.2.0.3/grid/log/dm01db01/agent/crsd/oraagent_oracle/oraagent_oracle.l10 (deleted)
oracle 121510 oracle 5w REG 253,3 10564931 6178664 /u01/app/11.2.0.3/grid/log/dm01db01/agent/crsd/oraagent_oracle/oraagent_oracle.l10 (deleted)


 

原因:
This is due to bug 17305100

While database was started by oraagent, the database processes inherit open file handles from the oraagent, but when the oraagent_oracle.l10 was deleted as expected with the normal GI log file rotation policy, those handles are not closed by the database processes

Duplicates: bug 14062031 bug 17034444

解决方案:
The bug fix is included in 11.2.0.3 GI PSU9, 11.2.0.4 GI PSU1. For 12c, at the time of this writing, the issue is still being worked via bug 17387523

The workaround is to restart database or GI

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn