ORACLE 10.2.0.5 RAC升级到11.2.0.3 (二)将OCR和VOTEING DISK迁移到ASM

ORACLE 10.2.0.5 RAC升级到11.2.0.3 (一) 集群软件升级

ORACLE 10.2.0.5 RAC升级到11.2.0.3 (三)DATABASE升级

在Oracle 10g RAC的环境下,我们的OCR和VOTEING DISK都是放在裸设备里面的,升级到Oracle 11g RAC后,ORACLE默认采用了以前的方式,把OCR和VOTEING DISK放在裸盘上.不过我们新安装的ORACLE 11g RAC环境都是采用ASM来存放的.本章节主要是介绍把OCR和VOTEING DISK从裸设备迁移到ASM中.在迁移之前,我们先用ASMCA做一个新的OCR卷组出来.

image

image

image

划完卷组之后,我们就可以开始我们的迁移工作了.

1.迁移OCR到ASM

[root@rac1 bin]# ./ocrconfig -add +ocr
[root@rac1 bin]# ./ocrconfig -delete /dev/raw/raw1
[oracle@rac1 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     517828
         Used space (kbytes)      :       6236
         Available space (kbytes) :     511592
         ID                       : 1423844012
         Device/File Name         :       +ocr
                                    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

2.迁移VOTEING DISK到ASM

[oracle@rac1 ~]$ crsctl replace votedisk +ocr
CRS-4256: Updating the profile
Successful addition of voting disk 4d0798b6cd214fb1bf8b201b69497a20.
Successful deletion of voting disk 24837164cd2aef11ff7dfe4c65ee3ba9.
Successfully replaced voting disk group with +ocr.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced

[oracle@rac1 ~]$ crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
1. ONLINE   4d0798b6cd214fb1bf8b201b69497a20 (/dev/raw/raw6) [OCR]
Located 1 voting disk(s).

至此,我们已经把裸设备上的OCR和VOTEING DISK迁移到了ASM中,接下来就是最后升级DataBase.

分享到: 更多

Post a Comment

Your email is never published nor shared. Required fields are marked *