ORACLE 11.2.0.4 OCR VOTING DISK 模拟恢复场景
2014-02-28 16:35
489 查看
① 备份
ocrconfig -export 文件名
或者
ocrconfig -manualbackup
或者
找到备份
ocrconfig -local -showbackup manual
② 故意弄坏文件
例如我的ocr的存放位置在
DISKGROUP OCR 上
可以使用ocrcheck,检查到 ocr存放位置
清除OCR所在裸设备的磁盘信息
dd if=/dev/zero of=/dev/raw/raw1 bs=1024k count=400
dd if=/dev/zero of=/dev/raw/raw2 bs=1024k count=400
③ 查看状态
crsctl status resource -t ,有可能已经不能查了
④ 更改OCR的位置,指定到一个裸设备上
/etc/oracle/ocr.loc,例如
ocrconfig_loc=/dev/raw/raw1
local_only=false
每个节点,都必须改成一样的
⑤ 重新导入,或者恢复备份
ocrconfig -restore backup_20140228_153207.ocr
或者ocrconfig -import ocr201402281534
恢复后,可以使用
ocrcheck 检查
⑥ 独占模式启动crs
crsctl stop crs -f
crsctl start crs -excl -nocrs
⑦ 恢复votedisk
crsctl replace votedisk /dev/raw/raw2
可以使用,查看状态
crsctl query css votedisk
⑧ 重新启动crs
强制关闭crs
crsctl stop crs -f
启动
crsctl start crs
请耐心等待crs,有时候要几分钟,甚至十几分钟的
如果有问题,可以使用
crsctl start cluster -all
⑨ grid 用户下,
asmca,对磁盘组进行处理,尤其是对之前的ocr存放的所在的磁盘组,进行处理
例如增加磁盘、删除磁盘等等,某些特别的情况下,也许原来的所在的磁盘组已经不存在
但是在crs的resource还能看见。则需要使用crsctl delete resource ora.OCR.dg
10、重置OCR的位置
ocrconfig -add +OCR
ocrconfig -delete /dev/raw/raw1
11. 重置Votedisk
crsctl replace vodetedisk +OCR
ocrconfig -export 文件名
或者
ocrconfig -manualbackup
或者
找到备份
ocrconfig -local -showbackup manual
② 故意弄坏文件
例如我的ocr的存放位置在
DISKGROUP OCR 上
可以使用ocrcheck,检查到 ocr存放位置
清除OCR所在裸设备的磁盘信息
dd if=/dev/zero of=/dev/raw/raw1 bs=1024k count=400
dd if=/dev/zero of=/dev/raw/raw2 bs=1024k count=400
③ 查看状态
crsctl status resource -t ,有可能已经不能查了
④ 更改OCR的位置,指定到一个裸设备上
/etc/oracle/ocr.loc,例如
ocrconfig_loc=/dev/raw/raw1
local_only=false
每个节点,都必须改成一样的
⑤ 重新导入,或者恢复备份
ocrconfig -restore backup_20140228_153207.ocr
或者ocrconfig -import ocr201402281534
恢复后,可以使用
ocrcheck 检查
⑥ 独占模式启动crs
crsctl stop crs -f
crsctl start crs -excl -nocrs
⑦ 恢复votedisk
crsctl replace votedisk /dev/raw/raw2
可以使用,查看状态
crsctl query css votedisk
⑧ 重新启动crs
强制关闭crs
crsctl stop crs -f
启动
crsctl start crs
请耐心等待crs,有时候要几分钟,甚至十几分钟的
如果有问题,可以使用
crsctl start cluster -all
⑨ grid 用户下,
asmca,对磁盘组进行处理,尤其是对之前的ocr存放的所在的磁盘组,进行处理
例如增加磁盘、删除磁盘等等,某些特别的情况下,也许原来的所在的磁盘组已经不存在
但是在crs的resource还能看见。则需要使用crsctl delete resource ora.OCR.dg
10、重置OCR的位置
ocrconfig -add +OCR
ocrconfig -delete /dev/raw/raw1
11. 重置Votedisk
crsctl replace vodetedisk +OCR
相关文章推荐
- 11g r2 模拟OCR和voting disk不可用,完整恢复过程,以及一些注意事项
- 11g r2 模拟OCR和voting disk不可用,完整恢复过程,以及一些注意事项
- 11g r2 模拟OCR和voting disk不可用,完整恢复过程,以及一些注意事项
- 11g r2 模拟OCR和voting disk不可用,完整恢复过程,以及一些注意事项
- oracle vote disk和ocr disk备份与恢复
- OCR File and Voting Disk Administration by Example - (Oracle 10g)
- Oracle GI 12.2新特性: OCR和Voting Disk必须存放在ASM中
- OCR File and Voting Disk Administration by Example - (Oracle 10g)
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]
- 11g RAC OCR,VOTING DISK存储全部损坏,利用自动备份,恢复OCR,VOTING DISK到新存储。
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]
- 11g RAC OCR,VOTING DISK存储全部损坏,利用自动备份,恢复OCR,VOTING DISK到新存储。
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]
- 在11.2RAC上如何恢复全部丢失的OCR和VotingDisk(存储在集群文件系统)
- Oracle技术之RAC Voting disk和OCR的管理
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]
- Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 [ID 293819.1]