Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

ASM renames the disk group that contains OCR/vote file

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Rename Diskgroup having OCR, Vote File, ASM SPILE [ID 1335975.1] are suitable for 11R2dex11R2 to provide renamedg, which can be renamed when the disk group dismount; if the disk group contains OCR/vote file, you need to migrate it to an intermediate disk before dismount; the general idea is as follows: create a temporary disk group temp, migrate OCR/vote file here; migrate spfile to temp, restart CRS; unload and rename the original disk group, and reload Move ocr/vote file/spfile back and restart CRS Create a temporary disk group create diskgroup TEMP normal redundancydisk 'ORCL:DISK4',' ORCL:DISK5', 'ORCL:DATA4',' ORCL:DATA6'attribute 'compatible.rdbms'='11.2.0.0',' compatible.asm'='11.2.0.0', 'au_size'='4M' After the migration of ocr/vote file$ORACLE_HOME/bin/bin/ocrconfig-add + TEMP$ORACLE_HOME/bin/bin/ocrconfig-delete + DATA$ORACLE_HOME/bin/crsctl replace votedisk + TEMP is completed, call ocrcheck to check the integrity of migration spfile restart CRScrsctl stop crscrsctl start crs rename disk group alter diskgroup data dismount The renamedg phase=both dgname=DATA newdgname=CRS verbose=true output is as follows: Parsing parameters..Parameters in effect:Old DG name: DATANew DG name: CRSPhases: Phase 1Phase 2Discovery str: (null) Clean: TRUERaw only: TRUErenamedg operation: phase=both dgname=DATA newdgname=CRS verbose=trueExecuting phase 1Discovering the groupPerforming discovery with string:Identified disk ASM:/opt/oracle/extapi/32/asm/orcl/1/libasm.so:ORCL:DISK1 with disk number:0 and timestamp (32955539-2120261632) Identified disk ASM:/opt/oracle/extapi/32/asm/orcl/1/libasm.so:ORCL:DISK2 With disk number:1 and timestamp (32955539-2120261632) Identified disk ASM:/opt/oracle/extapi/32/asm/orcl/1/libasm.so:ORCL:DISK3 with disk number:2 and timestamp (32955539-2120261632) Identified disk ASM:/opt/oracle/extapi/32/asm/orcl/1/libasm.so:ORCL:DISK6 with disk number:5 and timestamp (32955539-2120261632) Checking for hearbeat...Re-discovering the groupPerforming discovery with string:Identified disk ASM:/opt/oracle/extapi/32/asm/orcl/ 1/libasm.so:ORCL:DISK1 with disk number:0 and timestamp (32955539-2120261632) Identified disk ASM:/opt/oracle/extapi/32/asm/orcl/1/libasm.so:ORCL:DISK2 with disk number:1 and timestamp (32955539-2120261632) Identified disk ASM:/opt/oracle/extapi/32/asm/orcl/1/libasm.so:ORCL:DISK3 with disk number:2 and timestamp (32955539-2120261632) Identified disk ASM:/opt/oracle/extapi/32/asm/orcl/1/libasm.so: ORCL:DISK6 with disk number:5 and timestamp (32955539-2120261632) Checking if the diskgroup is mounted or used by CSSChecking disk number:0Checking disk number:1Checking disk number:2Checking disk number:5Generating configuration file..Completed phase 1Executing phase 2Looking for ORCL:DISK1Modifying the headerLooking for ORCL:DISK2Modifying the headerLooking for ORCL:DISK3Modifying the headerLooking for ORCL:DISK6Modifying the headerCompleted phase 2Terminating kgfd context 0xb7ee8050 reloads the disk group and moves back to OCRalter diskgroup CRS mount$ORACLE_HOME/bin/ocrconfig-add + CRS$ORACLE_HOME/bin/ocrconfig-delete + TEMP$ORACLE_HOME/bin/crsctl replace votedisk + CRS Move back to spfile and restart CRS Delete temp disk groups and remove alter diskgroup TEMP dismount from the cluster Drop diskgroup temp including contents;srvctl remove diskgroup-g datasrvctl remove diskgroup-g TEMP

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report