ASM重命名包含OCR vote file的磁盘组

0    276    1

Tags:

👉 本文共约5540个字,系统预计阅读时间或需21分钟。

Rename Diskgroup having OCR , Vote File , ASM SPILE (文档 ID 1335975.1)


In this Document

Goal
Solution

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.

GOAL

Consider a 11.2 Grid Infrastructure with CLUSTER setup having OCR ,Vote File and ASM SPFILE on a diskgroup. Under certain circumstances you may wish to rename that diskgroup.

"renamedg" utility can be used to rename of the diskgroup when the diskgroup is dismounted.

But since the diskgroup contains OCR and Vote File we need to use an intermediate diskgroup for storing OCR and Vote File temporarily while renaming the actual diskgroup.

SOLUTION

Basic Steps to rename the diskgroup :

\1) Create a temporary diskgroup (TEMP) with suitable redundancy for OCR and Vote files.

\2) Move OCR and Vote file from to .

\3) Change ASM SPFILE location from to diskgroup.

\4) Restart CRS in all Nodes to Startup CRS using New SPFILE from diskgroup.

\5) Dismount the OLD diskgroup in all cluster nodes that is not used by CRS.

\6) Rename OLD diskgroup to NEW diskgroup

\7) Mount the renamed diskgroup .

\8) Move OCR and Vote file from TEMP diskgroup to renamed diskgroup.

\9) Change ASM SPFILE location from to renamed diskgroup.

\10) Restart CRS in all nodes to startup CRS using new SPFILE from renamed diskgroup.
NOTE: Modify the asm resource to have the correct password file location else startup CRS will not start the ASM resource

\11) Drop the intermediate diskgroup TEMP.

\12) Need to remove the diskgroup resources TEMP and from Oracle Clusterware .

\13) Ensure ALL cluster resources are started successfully .

Below assumptions are made :

-> Name of Temporary diskgroup is TEMP.
-> OCR,Voting Disks and ASM SPFILE are originally stored in a diskgroup DATA.
-> Diskgroup DATA should be renamed to CRS.
-> $ORACLE_HOME points to GRID Home.
-> Cluster is up and running in all nodes of RAC.

Detailed steps with commands to rename the diskgroup :

\1) Create a temporary diskgroup :

Login as SYSASM using SQLPLUS into ASM instance on one node and run below commands:

create diskgroup TEMP normal redundancy disk , ,
attribute 'compatible.rdbms'='11.2.0.0', 'compatible.asm'='11.2.0.0', 'au_size'=;

本人提供Oracle(OCP、OCM)、MySQL(OCP)、PostgreSQL(PGCA、PGCE、PGCM)等数据库的培训和考证业务,私聊QQ646634621或微信dbaup66,谢谢!
AiDBA后续精彩内容已被站长无情隐藏,请输入验证码解锁本文!
验证码:
获取验证码: 请先关注本站微信公众号,然后回复“验证码”,获取验证码。在微信里搜索“AiDBA”或者“dbaup6”或者微信扫描右侧二维码都可以关注本站微信公众号。

标签:

Avatar photo

小麦苗

学习或考证,均可联系麦老师,请加微信db_bao或QQ646634621

您可能还喜欢...

发表回复