asm磁盘组的冗余级别+Voting Disk and OCR

1、Specify the redundancy level of the disk group.

For Oracle ASM to mirror files, specify the redundancy level as NORMAL REDUNDANCY (2-way mirroring by default for most file types) or HIGH REDUNDANCY (3-way mirroring for all files).

 Specify EXTERNAL REDUNDANCY if you do not want mirroring by Oracle ASM. For example, you might choose EXTERNAL REDUNDANCY to use storage array protection features.After a disk group is created, you cannot alter the redundancy level of the disk group.To change the redundancy level, you must create another disk group with 

the appropriate redundancy and then move the files to the new disk group. 
Oracle recommends that you create failure groups(故障组) of equal size to maintain space balance and even distribution of mirror data.


关于ASM中故障组,磁盘组,冗余级别的关系:

这几个概念是非常容易混淆的,先简单梳理一下概念:

冗余级别:External Redundancy、Normal RedunDancy、High Redundancy 这三个级别;其中,External级别,对于每个extend(asm的最小数据单元)只存储一份,没有                       做冗余,这种情况一般是在硬件存储级别有做Riad;Normal冗余级别,每个extend只有一份镜像冗余;High冗余级别,每个extend有两份镜像冗余。

磁盘组:两个或两个以上的asm磁盘可以组成一个磁盘组。

故障组:实际上故障组就是ASM DISK的一个逻辑组合,如果不指定哪些ASM DISK属于哪个FAILGROUP,那么可以理解每个ASM DISK都是一个FAILGROUP。

下面综合描述这些关系,讲的非常清晰(http://www.itpub.net/thread-1347371-1-1.html):

故障组主要是对 asm extend mirror 位置的强化。
例如4个asm disk, 作了1个nomal 冗余 的dg
(这时有4个故障组,一个磁盘组), 那么对于任何一个asm extend(asm 以extend 为单位进行冗余)都有可能在其余的3个asm disk 上。如果我们作成了2个failgroup (gp1: disk1 disk2, gp2 disk3 disk4)  (这时有2个故障组,一个磁盘组)那么对于任何一个在disk1,disk2 上的extend 只能mirror 到disk3 或者4 了,反之亦然。

——只有normal以上的级别,设置故障组才有意义,对于外部冗余不需要设置故障组。(如果没有显式指定故障组,默认的每个asm磁盘都是一个故障组)

参考链接:http://www.itpub.net/thread-1347371-1-1.html


The results from the following query show capacity metrics for a normal redundancy 
disk group that consists of six 1 GB (1024 MB) disks, each in its own failure group:
SQL> SELECT name, type, total_mb, free_mb, required_mirror_free_mb, 
 usable_file_mb FROM V$ASM_DISKGROUP;
NAME TYPE TOTAL_MB FREE_MB REQUIRED_MIRROR_FREE_MB USABLE_FILE_MB
------------ ------ ---------- ---------- ----------------------- --------------
DATA NORMAL 6144 3768 1024 1372
The REQUIRED_MIRROR_FREE_MB column shows that 1 GB of extra capacity must be 
available to restore full redundancy after one or more disks fail. The first three numeric 
columns in the query results are raw numbers. That is, they do not take redundancy 
into account. Only the last column is adjusted for normal redundancy. In the query 
output example for the data disk group, the calculation is as follows: 
(FREE_MB - REQUIRED_MIRROR_FREE_MB) / 2 = USABLE_FILE_MB
(3768 - 1024) / 2 = 2744 / 2 = 1372





2、Voting Disk and  OCR

Voting files manage information about node membership. OCR is a system that manages cluster and Oracle Real Application Clusters (Oracle RAC) database 
configuration information. 

A quorum failure group is a special type of failure group and disks in these failure groups do not contain user data. A quorum failure group is 
not considered when determining redundancy requirements in respect to storing user data.
However, a quorum failure group counts when mounting a disk group

关于这个讨论,参考http://www.itpub.net/thread-1443109-1-1.html  这里讲的很详细。





参考资源链接:[CentOS 8 安装Oracle 19c RAC全攻略:环境配置与部署](https://wenku.csdn.net/doc/1mdp8xn896?utm_source=wenku_answer2doc_content) 在进行CentOS 8上Oracle 19c RAC安装的规划时,ASM磁盘的配置是至关重要的步骤,它直接影响到集群的性能和数据的高可用性。推荐使用这篇详尽的资源《CentOS 8 安装Oracle 19c RAC全攻略:环境配置与部署》来深入理解ASM磁盘的配置流程。 首先,需要规划ASM磁盘的布局,包括为OCRVoting Disk分配足够的磁盘空间,以及为数据库数据和归档日志文件预留空间。通常,至少需要三块磁盘,每块磁盘分配为一个磁盘组:一个用于OCRVoting Disk,其他两个用于数据文件和归档日志文件。 接下来是多路径存储的配置。为了保障存储的高可用性,通常采用多路径解决方案。在CentOS 8上,可以使用Device Mapper Multipathing (DM-MP) 来实现。配置多路径需要安装multipath-tools软件包,并且设置/etc/multipath.conf文件。配置完成后,使用multipath -v3命令来验证多路径设备的状态。 ASM磁盘配置具体步骤如下: 1. 使用Oracle提供的ASMLib包或者直接通过Device Mapper来识别ASM磁盘。 2. 使用ASMCA工具或SQL命令创建磁盘组,指定磁盘路径,并设置适当的磁盘属性。 3. 在创建磁盘组时,确保配置为高冗余模式(Normal Redundancy)或外部冗余模式(External Redundancy)以匹配你的存储解决方案。 在配置ASM磁盘和多路径存储时,还需要考虑以下因素: - 确保在Oracle安装前,所有ASM磁盘在系统中是可见的,并且已经正确配置了多路径。 - 对于多路径配置,需要考虑到存储阵列的支持,以及Oracle对特定存储阵列的认证情况。 - ASM磁盘的命名应该遵循Oracle的最佳实践,避免使用含有特殊字符或以数字开头的名称。 - 安装过程中要确保OS环境变量如ORACLE_HOSTNAME、ORACLE_HOME、ORACLE_SID等已经正确设置。 最后,可以使用ASM提供的命令行工具如 asmcmd 或者 Enterprise Manager 来管理和监控ASM磁盘组的状态和性能。 为了更全面地了解和掌握在CentOS 8上安装Oracle 19c RAC的ASM磁盘规划与多路径配置,除了上述资源外,建议进一步深入阅读官方文档和参考相关技术社区的讨论,这将有助于解决实际操作中可能遇到的复杂问题。 参考资源链接:[CentOS 8 安装Oracle 19c RAC全攻略:环境配置与部署](https://wenku.csdn.net/doc/1mdp8xn896?utm_source=wenku_answer2doc_content)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值