www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  2912 随笔 :: 9 文章 :: 51 评论 :: 185万 阅读

I see a lot of questions on shared file systems that can be used when people move from single instance to Oracle RAC database and Grid Infrastructure. The most common question is the following: “Should I place archive logs in OCFS2 or ASM or ACFS of 11g?” I’ll try to clarify this topic below.

First we need to understand a separation between Oracle database files and non-database files.

Database files belong to an Oracle database and include control files, data files, archived logs, online redo logs, etc. Oracle ASM is the preferred storage manager for all database files. It has been specifically designed and optimized to provide the best performance for database file types. The file list supported by Oracle ASM becomes longer with every new version and it includes nowadays also spfile, RMAN backupsets and some other file types. You can however use other shared cluster file systems, including OCFS2 to store Oracle RAC database files.

Non-database files are everything that does not belong to database files including Oracle binaries (ORACLE_HOME, etc.). Oracle ACFS is the preferred file manager for non-database files. It is optimized for general purpose files and can be shared across the RAC cluster. You can use both ACFS or local file system, like Ext3 to store Oracle database binaries (ORACLE_HOME).

ACFS is a part of Oracle Grid Infrastructure. It cannot be used for a root file system, boot file system, or a file system containing the executables for Grid Infrastructure. It is also not supported to store in ACFS any files that can be natively stored in ASM; i.e., it is not supported to store Oracle database files (controlfiles, datafiles, archived logs, online redo logs, etc.). Also, the Grid Infrastructure Home cannot be installed in ACFS, it must be installed in a separate file system; e.g.; ext3. You can use ACFS though for Oracle binaries (ORACLE_HOME), but I would not recommend this.

However, and this is new, since Oracle database version 11.2.0.3 archive logs are supported in ACFS. See details: http://t.co/vOT8bMrE. I reflected everything in below support matrix.

Why not OCFS2

You can use OCFS2 to store both database file and Oracle database binaries (ORACLE_HOME) However Oracle does not recommend using OCFS2 anymore for RAC systems, for the following reasons:

-  OCFS2 and Grid infrastructure (Oracle Cluster-ware) are two separate cluster-wares. Therefore you would be running with 2 cluster-wares instead of one.
- OCFS2 will not gain any new functionality in regard of databases. OCFS2 will be used for Oracle VM and all new functionalities are more targeted in this direction than for databases.

As a summary, the recommendation of Oracle is clearly to use ASM for database files, and for everything which cannot be placed directly in ASM to use ACFS. However OCFS2 will be continued to be supported (at least at the moment).

Below is a support matrix for Oracle RAC / Grid Infrastructure installation

Supported Storage Option Voting/OCR GRID Software Database files Database Software
Automatic Storage Manager (ASM) Yes No Yes No
ASM Cluster File System (ACFS) No No Partially (11.2.0.3+) Yes
Oracle Cluster File System (OCFS2) Yes (1.4.1+) Yes (1.4.1+) Yes (1.4.1+) Yes (1.4.1+)
Red Hat Global File System (GFS) No (11g+) No (11g+) No (11g+) No (11g+)
NFS (certified only) Yes Yes Yes Yes
Local Storage No Yes No Yes

.
Check out RAC Technologies Matrix for Linux Platforms

http://www.dadbm.com/oracle-11g-rac-database-on-asm-acfs-or-ocfs2/

http://www.serkey.com/oracle-11g-r2-rac-on-vmware-ocfs2-problem-bfqbk7.html

posted on   秦瑞It行程实录  阅读(630)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
www.cnblogs.com/ruiyqinrui
点击右上角即可分享
微信分享提示