ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 11gR2 OCR&VOTEDISK 从ASM向裸设备迁移(EXPIMP方式)

11gR2 OCR&VOTEDISK 从ASM向裸设备迁移(EXPIMP方式)

原创 Linux操作系统 作者:westzq1984 时间:2012-09-18 00:22:51 0 删除 编辑
ASM上的OCR是200多M的,而客户划的OCR是128M,直接replace会报告设备太小,于是只好测试下最后一种办法,EXP/IMP。发现完全可以,步骤如下

[root@database1 ~]# ocrconfig -export /tmp/ocr.dmp
[root@database1 ~]# crsctl stop crs -f
[root@database2 ~]# crsctl stop crs -f
[root@database1 ~]# crsctl start crs -excl -nocrs
[root@database1 ~]# ocrconfig -repair -replace +CRSDG -replacement /dev/raw/raw1
[root@database1 ~]# ocrconfig -import /tmp/ocr.dmp
[root@database1 ~]# ocrcheck
[root@database1 ~]# crsctl stat res -t -init
[root@database1 ~]# crsctl stop crs -f
[root@database1 ~]# crsctl start crs
[root@database1 ~]# ocrconfig -add /dev/raw/raw2
[root@database1 ~]# ocrconfig -add /dev/raw/raw3
[root@database1 ~]# ocrcheck
[root@database1 ~]# crsctl replace votedisk /dev/raw/raw4
[root@database1 ~]# crsctl add css votedisk /dev/raw/raw5 /dev/raw/raw6
[root@database2 ~]# vi /etc/oracle/ocr.loc
ocrconfig_loc=/dev/raw/raw1
ocrmirrorconfig_loc=/dev/raw/raw2
ocrconfig_loc3=/dev/raw/raw3
[root@database2 ~]# crsctl start crs


记录下遇到的问题

1:Storage too small
root@abmdb01#[/]/oracle/app/11.2/grid/bin/ocrconfig -add /dev/vx/rdsk/ocrvote/lv_ocr_128m_02
PROT-22: Storage too small
PROC-31: Storage device for the cluster registry is too small Operating System error [No such device or address] [6]

添加的设备文件比原文件小,一般建议OCR,VOTEDISK都不要小于280M可用空间
解决办法用使用EXP/IMP迁移。ADD/DELETE/REPLACE均不行

2.PROT-36
root@abmdb01#[/]/oracle/app/11.2/grid/bin/ocrconfig -add  /test/ocr2
PROT-36: Duplicate or previously used Oracle Cluster Registry location /test/ocr2 cannot be added

文件系统上,不允许OCR的副本在同一个目录
新建一个目录放就OK


3.CRS-4602 & Failure 27
替换OCR前,替换VOTEDISK报该错误
[root@database1 ~]# crsctl replace votedisk /dev/raw/raw1 /dev/raw/raw2 /dev/raw/raw3 /dev/raw/raw4 /dev/raw/raw5
Now formatting voting disk: /dev/raw/raw1.
Now formatting voting disk: /dev/raw/raw2.
Now formatting voting disk: /dev/raw/raw3.
Now formatting voting disk: /dev/raw/raw4.
Now formatting voting disk: /dev/raw/raw5.
CRS-4256: Updating the profile
CRS-4602: Failed 27 to add voting file 35b0f54884a04fa9bfeb947155332be8.
CRS-4602: Failed 27 to add voting file 93528e9a62494f35bf0988963c2dc9fa.
CRS-4602: Failed 27 to add voting file 0f549b6e79fc4f77bf958497084871a0.
CRS-4602: Failed 27 to add voting file 72914438e0e84f71bf09ccae80ac2ec8.
CRS-4602: Failed 27 to add voting file 6e4188ecade84f93bf62213af80adebb.
Failure 27 with Cluster Synchronization Services while deleting voting disk.
Failure 27 with Cluster Synchronization Services while deleting voting disk.
Failure 27 with Cluster Synchronization Services while deleting voting disk.
Failure 27 with Cluster Synchronization Services while deleting voting disk.
Failure 27 with Cluster Synchronization Services while deleting voting disk.
CRS-4000: Command Replace failed, or completed with errors.

迁移完OCR后,在迁移VOTEDISK就没有该问题

4.repair
OCR的位置在/etc/oracle/ocr.loc中指定
repair的作用是强制修改该配置文件。该命令需要在-excl -nocrs的环境中使用
修改后可以在考虑restore/imp等动作

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8242091/viewspace-743849/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-04-06

  • 博文量
    251
  • 访问量
    1042165