ASM重新命名包含OCR/vote file的磁碟組
Rename Diskgroup having OCR , Vote File , ASM SPILE [ID 1335975.1] 適用於11R2; 11R2提供renamedg,可在磁碟組dismount時將其重新命名;如果該磁碟組包含OCR/vote file,則dismount前需將其遷移至中間磁碟; 大致思路如下: 建立一個臨時磁碟組temp,將OCR/vote file遷移至此; 將spfile也遷移到temp,重啟CRS; 解除安裝並重新命名原磁碟組,並重新載入; 將ocr/vote file/spfile遷回,重啟CRS; 建立臨時磁碟組 create diskgroup TEMP normal redundancy disk 'ORCL:DISK4' ,'ORCL:DISK5' ,'ORCL:DATA4' ,'ORCL:DATA6' attribute 'compatible.rdbms'='11.2.0.0', 'compatible.asm'='11.2.0.0', 'au_size'='4M'; 遷移ocr/vote file $ORACLE_HOME/bin/bin/ocrconfig -add +TEMP $ORACLE_HOME/bin/bin/ocrconfig -delete +DATA $ORACLE_HOME/bin/crsctl replace votedisk +TEMP 完成後呼叫ocrcheck檢查完整性 遷移spfile 重啟CRS crsctl stop crs crsctl start crs 重新命名磁碟組 alter diskgroup data dismount; renamedg phase=both dgname=DATA newdgname=CRS verbose=true 輸出如下 Parsing parameters.. Parameters in effect: Old DG name : DATA New DG name : CRS Phases : Phase 1 Phase 2 Discovery str : (null) Clean : TRUE Raw only : TRUE renamedg operation: phase=both dgname=DATA newdgname=CRS verbose=true Executing phase 1 Discovering the group Performing 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 group Performing 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 CSS Checking disk number:0 Checking disk number:1 Checking disk number:2 Checking disk number:5 Generating configuration file.. Completed phase 1 Executing phase 2 Looking for ORCL:DISK1 Modifying the header Looking for ORCL:DISK2 Modifying the header Looking for ORCL:DISK3 Modifying the header Looking for ORCL:DISK6 Modifying the header Completed phase 2 Terminating kgfd context 0xb7ee8050 重新載入磁碟組並遷回OCR alter diskgroup CRS mount $ORACLE_HOME/bin/ocrconfig -add +CRS $ORACLE_HOME/bin/ocrconfig -delete +TEMP $ORACLE_HOME/bin/crsctl replace votedisk +CRS 遷回spfile並重啟CRS 刪除temp磁碟組並將其資訊從叢集中移除 alter diskgroup TEMP dismount; drop diskgroup temp including contents; srvctl remove diskgroup -g data srvctl remove diskgroup -g TEMP
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31520497/viewspace-2156854/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 遷移OCR和VotingDisk並刪除原ASM磁碟組ASM
- ASM磁碟組限制ASM
- 遷移ASM磁碟組ASM
- ASM磁碟組更換磁碟的操作方法ASM
- ASM 磁碟組的建立及擴容ASM
- 【ASM】Oracle asm磁碟被格式化,如何掛載該磁碟組ASMOracle
- 【ASM】Oracle asm刪除磁碟組注意事項ASMOracle
- 一次ASM新增新的磁碟組ASM
- 更換ocr和votingdisk磁碟組
- ORACLE ASM磁碟組空間溢位OracleASM
- 使用udev擴充套件ASM磁碟組dev套件ASM
- ASM磁碟組擴容操作文件ASM
- Oracle ASM磁碟組擴容(AIX7.1)OracleASMAI
- ASM磁碟組ORA-15042 ORA-15096ASM
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM
- 基於裸裝置的ASM磁碟組擴容方案ASM
- Oracle RAC環境下ASM磁碟組擴容OracleASM
- RAC之grid叢集安裝及ASM磁碟組配置ASM
- Oracle ASM Cluster File Systems (ACOracleASM
- 【ASM】ASM磁碟頭被重寫,如何修復ASM
- 從定位資料塊所在ASM磁碟到ASM strippingASM
- (grid重灌後圖形介面報錯)ASM磁碟組字元介面配置ASM字元
- ASM叢集檔案系統ACFS(ASM Cluster File System)ASM
- ORACLE ASM的SSD磁碟空間回收分析OracleASM
- asm磁碟組依賴導致資料庫自啟動報錯ASM資料庫
- 【ARCH】Oracle 判斷asm磁碟組大小,超過閾值清理指令碼OracleASM指令碼
- 在ASM磁碟組中刪除歸檔日誌報ORA-15028ASM
- 關於Oracle 10g ASM磁碟大小的限制Oracle 10gASM
- Oracle 11.2.0.4 rac for aix acfs異常環境的克隆環境ASM磁碟組掛載緩慢OracleAIASM
- ASM磁碟簡單維護,新增,刪除ASM
- Oracle RAC日常運維-ASM磁碟擴容Oracle運維ASM
- Oracle asm磁碟損壞異常恢復OracleASM
- 【BUILD_ORACLE】使用ASMLib包搭建ASM磁碟UIOracleASM
- ORA-15020:discoverd duplicate ASM disk "XXX_CJCDB_OCR_0002"ASM
- Oracle 12C Database File Mapping for Oracle ASM FilesOracleDatabaseAPPASM
- Oracle資料庫 ASM磁碟線上擴容Oracle資料庫ASM
- 如何檢視Oracle RAC的asm磁碟的udev對應關係OracleASMdev
- 【資料庫資料恢復】ASM磁碟組掉線的Oracle資料庫資料恢復案例資料庫資料恢復ASMOracle