oracle 11g r2 模拟OCR和voting disk不可用,完整恢复过程,以及一些注意事项
环境:RHEL5.8 RAC 11.2.0.3.0
1:查看ORC和voting disk信息:
In 11g Release 2 your voting disk data is automatically backed up in the OCR whenever there is a configuration change.
所以恢复时恢复备份OCR即可,这里和10g是不同的,不需要备份voting disk,备份OCR即可
2:使用cluvfy 工具检查OCR完整性
[grid@rac1 ~]$ cluvfy comp ocr -n all
Verifying OCR integrity
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations
ASM Running check passed. ASM is running on all specified nodes
Checking OCR config file "/etc/oracle/ocr.loc"...
OCR config file "/etc/oracle/ocr.loc" check successful
Disk group for ocr location "+CRSDATA" available on all the nodes
NOTE:
This check does not verify the integrity of the OCR contents. Execute 'ocrcheck' as a privileged user to verify the contents of OCR.
OCR integrity check passed
Verification of OCR integrity was successful.
3:使用ocrcheck检测OCR内容的完整性
[grid@rac1 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3016
Available space (kbytes) : 259104
ID : 1236405787
Device/File Name : +CRSDATA
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 bypassed due to non-privileged user --如果使用root用户执行ocrcheck时,会显示Logical corruption check succeeded
4:检测voting disk的信息
[grid@rac1 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 2b1bd0c122584f5abf72033b2b2d26bd (/dev/asm-b_crs) [CRSDATA]
2. ONLINE 2bc03776cdd94f5cbfb9165c473fdb0e (/dev/asm-c_crs) [CRSDATA]
3. ONLINE 3b43c39513a64f2dbf7083a9510ada89 (/dev/asm-d_crs) [CRSDATA]
Located 3 voting disk(s).
从上面看出,OCR和voting disk都位于+CRSDATA磁盘组 ,注意+CRSDATA磁盘组还有ASM的启动参数文件,ASM启动是根据磁盘头的kfdhdb.spfile指向ASM上的此磁盘的UA NUMBER从而读取spfile文件
5:手动备份一份OCR信息:
[root@rac1 grid]# ocrconfig -export /tmp/ocr_20130717.dmp
[root@rac1 grid]# ll /tmp/ocr_20130717.dmp -h
-rw------- 1 root root 102K Jul 17 14:45 /tmp/ocr_20130717.dmp
6:查看OCR自动备份信息
[grid@rac1 ~]$ ocrconfig -showbackup
rac1 2013/07/16 15:45:24 /u01/app/11.2.0.3/grid/cdata/ad-cluster/backup00.ocr
rac2 2013/07/16 08:13:38
Oracle10g OCR及Voting Disk的备份及恢复_IT/计算机_专业资料。Oracle10g OCR及Voting Disk的备份及恢复在Oracle10g RAC 环境中,OCR 及 Voting Disk 对于集群来说...
/dev/sda1 crsctl delete css votedisk path eg: crsctl delete css votedisk /dev/sda1 2.备份和恢复voting disk 在11.2版本,voting disk是自动备份在OCR中...
ocrconfig -replace 来操作: ocrconfig -replace /dev/raw/raw1 注意:增加、删除 Voting Disk 及恢复 Voting Disk 和 OCR 时,RAC 中的所有资源都必须停 止。 ...
[root@hcn1 ~]# ls -lrt /dev/sd* brw-r--- 1 root disk 8, 0 Jan...[root@hcn1 rules.d]# 60-raw.rules为老的ocr和voting的配置规则 下面开始...
Oracle10g RAC环境OCR的VOTING DISK备份管理_IT/...如果不出意外,恢复过程将会很简单,通过 ocrconfig -... 执业医师实践技能考试模拟试题文档贡献者 cmbreeze ...
第6名 OCR 和Voting disk 的备份与恢复参考: Oracle 10g RAC OCR 和 ... 2014年国家司法考试案例分析模拟题 2014年证劵市场基础知识冲刺试题 2014年统计...
通过虚拟机VMware server console 1.0.4模拟rac...并将OCR和voting disk存放 在这里,点击下一步会...即OCFS 指定数据库文件存储位置 将快速恢复区也指定...
需要重新安装则需要初始化 voting disk 盘,可用 DD 或重建卷 dd if=/dev/...28 /opt/oracle/product/10.2.0/crs/cdata/crs 恢复 OCR:ocrconfig -restore...
2双机创建全过程...voting disk、asm 磁盘 注明:Ocr、voting disk 是... 执业医师实践技能考试模拟试题 1028988份文档 教学...
所有对 OCR 的操作必须确保 OCR 内容完整性, 所以...2.2.1.2 Voting Disk Voting Disk 这个文件主要... 执业医师实践技能考试模拟试题 1028988份文档 教学...
热门文档