Oracle database 11g rac損壞ocr和votedisk恢復實驗
檢視一下表決磁碟和ocr的資訊:
[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin
[root@rac1 bin]# ./crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 5122b184495d4fe9bf1fad29647807ba (ORCL:VOL1) [OCRVOTI]
Located 1 voting disk(s).
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2700
Available space (kbytes) : 259420
ID : 268167937
Device/File Name : +OCRVOTI
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
rac2 2014/03/25 12:04:28 /u01/app/11.2.0/grid/cdata/rac-cluster/backup00.ocr
rac2 2014/03/21 16:16:32 /u01/app/11.2.0/grid/cdata/rac-cluster/backup01.ocr
rac2 2014/03/21 12:16:31 /u01/app/11.2.0/grid/cdata/rac-cluster/backup02.ocr
rac2 2014/03/25 12:04:28 /u01/app/11.2.0/grid/cdata/rac-cluster/day.ocr
rac2 2014/03/19 14:26:16 /u01/app/11.2.0/grid/cdata/rac-cluster/week.ocr
[root@rac1 bin]# ./ocrconfig -local -manualbackup
rac1 2014/03/25 14:33:39 /u01/app/11.2.0/grid/cdata/rac1/backup_20140325_143339.olr
rac1 2014/03/25 10:34:33 /u01/app/11.2.0/grid/cdata/rac1/backup_20140325_103433.olr
rac1 2014/03/25 09:53:32 /u01/app/11.2.0/grid/cdata/rac1/backup_20140325_095332.olr
rac1 2014/03/25 09:53:18 /u01/app/11.2.0/grid/cdata/rac1/backup_20140325_095318.olr
rac1 2014/03/18 10:57:51 /u01/app/11.2.0/grid/cdata/rac1/backup_20140318_105751.olr
[grid@rac1 ~]$ asmcmd -p
ASMCMD [+] > md_backup /home/grid/ocrvote2.bak -G OCRVOTI
Disk group metadata to be backed up: OCRVOTI
Current alias directory path: rac-cluster
Current alias directory path: rac-cluster/ASMPARAMETERFILE
Current alias directory path: rac-cluster/OCRFILE
[root@rac1 bin]# ./ocrconfig -export /home/grid/ocr2.bak
[root@rac1 bin]# dd if=/dev/zero of=/dev/sdg bs=1024k count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.002366 seconds, 443 MB/s
[root@rac1 bin]# ./crsctl stop has
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.oc4j' on 'rac1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'rac1'
CRS-2673: Attempting to stop 'ora.OCRVOTI.dg' on 'rac1'
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'rac1'
CRS-2673: Attempting to stop 'ora.test.db' on 'rac1'
CRS-2673: Attempting to stop 'ora.gsd' on 'rac1'
CRS-2677: Stop of 'ora.gsd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac1' su 忽略。。。。。
我們在啟動clusterware 發現無法啟動了
[root@rac1 bin]# ./crsctl start has
CRS-4123: Oracle High Availability Services has been started.
[root@rac1 bin]# ./crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4530: Communications failure contacting Cluster Synchronization Services daemon
CRS-4534: Cannot communicate with Event Manager
ocr和vote disk損壞恢復步驟大致如下:
1)停止所有節點clusterware
# crsctl stop crs
# crsctl stop crs -f
2)以root使用者在其中一個節點獨佔模式啟動clusterware
# crsctl start crs -excl -nocrs
備註:如果發現crsd在執行,那麼通過如下命令將之停止。
# crsctl stop resource ora.crsd -init
3)建立新的存放ocr和vote disk的磁碟組,磁碟組名和原有的一致(如果想改變位置,需修改/etc/oracle/ocr.loc檔案)
備註:如發現無法建立等情況,可以採用如下刪除磁碟組等排錯思路
SQL> drop diskgroup disk_group_name force including contents;
4)還原ocr,並檢查
# ocrconfig -restore file_name
# ocrcheck
5)恢復表決磁碟,並檢查
# crsctl replace votedisk +asm_disk_group
# crsctl query css votedisk
6)停止獨佔模式執行的clusterware
# crsctl stop crs -f
7)所有節點正常啟動clusterware
# crsctl start crs
8)CVU驗證所有RAC節點OCR的完整性
$ cluvfy comp ocr -n all -verbose
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28883355/viewspace-1129207/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Database 12c RAC損壞ocr和votedisk恢復實驗OracleDatabase
- RAC 11G ASM磁碟損壞恢復ASM
- [zt]Oracle rac 11g線上新增ocr,votediskOracle
- Oracle OCR和VOTEDISK故障修復Oracle
- Oracle 12c rac ocr和votedisk管理Oracle
- oracle10g rac 表決盤損壞、ocr損壞處理Oracle
- 聯機日誌損壞恢復實驗
- oracle 11g CSS 和OCR 的恢復OracleCSS
- 針對11.2 RAC丟失OCR和Votedisk所在ASM Diskgroup的恢復手段ASM
- 存貯在asm中的ocr/votedisk/asm磁碟組損害的恢復ASM
- ASM之OCR所在磁碟組損壞後的恢復ASM
- 11g RAC OCR,VOTING DISK儲存全部損壞,利用自動備份,恢復OCR,VOTING DISK到新儲存。
- Oracle 11g RAC ASM VOTEDISK所在磁碟全部丟失重大故障恢復OracleASM
- index損壞恢復Index
- Oracle RAC OCR 和 VotingDisk 的備份與恢復Oracle
- Oracle asm磁碟損壞異常恢復OracleASM
- Oracle10g 10.2.0.5 RAC一次恢復ORC、votedisk實戰Oracle
- Oracle塊損壞恢復(有rman備份)Oracle
- Oracle 11g 資料庫恢復-場景7:部分檔案損壞Oracle資料庫
- oracle 11g rac 共享儲存壞掉後資料庫恢復Oracle資料庫
- Oracle 10G RAC的ocr備份恢復Oracle 10g
- Oracle資料庫UNDO損壞後的恢復Oracle資料庫
- Oracle 10g RAC OCR 和 VotingDisk 的備份與恢復Oracle 10g
- Oracle 11g 資料庫恢復-場景5:部分檔案損壞恢復,開庫狀態,低可用恢復方式Oracle資料庫
- Oracle 11g 資料庫恢復-場景4:部分檔案損壞恢復,開庫狀態, 高可用恢復方式Oracle資料庫
- oracle database 例項恢復和介質恢復OracleDatabase
- oracle 12c裡如何恢復votediskOracle
- 轉載:Oracle資料塊損壞恢復總結Oracle
- Oracle不同檔案丟失/損壞的恢復方法Oracle
- 損壞聯機日誌 恢復
- Oracle RAC CRS、OCR、Voting破壞重建Oracle
- Oracle 11g Database Replay 實驗OracleDatabase
- Oracle資料檔案損壞恢復例項二則Oracle
- 損壞控制檔案的恢復方法
- SQL Server ldf 檔案損壞恢復SQLServer
- u盤檔案損壞怎麼恢復資料 u盤恢復損壞資料的有效方法
- Oracle恢復實驗(一)Oracle
- Oracle恢復實驗(二)Oracle