Rename Diskgroup having OCR , Vote File , ASM SPILE [ID 1335975.1] 適用于11R2; 11R2提供renamedg,可在磁盤組dismount時將其重命名;如果該磁盤組包含OCR/vote file,則dismount前需將其遷移至中間磁盤; 大致思路如下: 創(chuàng)建一個臨時磁盤組temp,將OCR/vote file遷移至此; 將spfile也遷移到temp,重啟CRS; 卸載并重命名原磁盤組,并重新加載; 將ocr/vote file/spfile遷回,重啟CRS; 創(chuàng)建臨時磁盤組 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 完成后調(diào)用ocrcheck檢查完整性 遷移spfile 重啟CRS crsctl stop crs crsctl start crs 重命名磁盤組 alter diskgroup data dismount; renamedgphase=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
當(dāng)前文章:ASM重命名包含OCR/votefile的磁盤組
當(dāng)前地址:http://muchs.cn/article32/igeesc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營銷型網(wǎng)站建設(shè)、定制網(wǎng)站、網(wǎng)站建設(shè)、移動網(wǎng)站建設(shè)、云服務(wù)器、企業(yè)建站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)