你好,游客 登录 注册 搜索
背景:
阅读新闻

RAC的Diskgroup重建

[日期:2012-08-17] 来源:Linux社区  作者:mrluoe [字体:大 中 小]

3.2、迁移OCR文件

先检查一下当前OCR文件,可知当前OCR文件存放于DATA磁盘组上

[root@srcbdb1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2936
         Available space (kbytes) :     259184
         ID                       :  894939142
         Device/File Name         :     +DATA
                                    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


新增一个OCR文件到SFRA磁盘组:

[root@srcbdb1 ~]# ocrconfig -add '+SFRA'     

[root@srcbdb1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2936
         Available space (kbytes) :     259184
         ID                       :  894939142
         Device/File Name         :      +SFRA
                                    Device/File integrity check succeeded
         Device/File Name         :      +DATA
                                    Device/File integrity check succeeded
                                    Device/File not configured
                                    Device/File not configured
                                    Device/File not configured
         Cluster registry integrity check succeeded
         Logical corruption check succeeded

然后从DATA磁盘组中删除OCR文件

[root@srcbdb1 ~]# ocrconfig -delete '+DATA'

[root@srcbdb1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2936
         Available space (kbytes) :     259184
         ID                       :  894939142
         Device/File Name         :      +SFRA
                                    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


3.3、迁移VOTE文件

查看当前votedisk的位置

[root@srcbdb2 ~]# crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   0524c6e01d244f52bf755b2d6565f576 (/dev/iscsi/11gdisk21) [DATA]
 Located 3 voting disk(s).

停止节点1(其中一个即可)上的crs:

[root@srcbdb1 ~]# crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.crsd' on 'srcbdb1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.SFRA.dg' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'srcbdb1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.srcbdb1.vip' on 'srcbdb1'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'srcbdb1'
CRS-2677: Stop of 'ora.scan1.vip' on 'srcbdb1' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'srcbdb2'
CRS-2677: Stop of 'ora.srcbdb1.vip' on 'srcbdb1' succeeded
CRS-2672: Attempting to start 'ora.srcbdb1.vip' on 'srcbdb2'
CRS-2677: Stop of 'ora.registry.acfs' on 'srcbdb1' succeeded
CRS-2676: Start of 'ora.scan1.vip' on 'srcbdb2' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'srcbdb2'
CRS-2676: Start of 'ora.srcbdb1.vip' on 'srcbdb2' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'srcbdb2' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.SFRA.dg' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'srcbdb1'
CRS-2677: Stop of 'ora.asm' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'srcbdb1'
CRS-2677: Stop of 'ora.ons' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'srcbdb1'
CRS-2677: Stop of 'ora.net1.network' on 'srcbdb1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'srcbdb1' has completed
CRS-2677: Stop of 'ora.crsd' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.evmd' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.asm' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'srcbdb1'
CRS-2677: Stop of 'ora.asm' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'srcbdb1'
CRS-2677: Stop of 'ora.evmd' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'srcbdb1'
CRS-2677: Stop of 'ora.cssd' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'srcbdb1'
CRS-2673: Attempting to stop 'ora.crf' on 'srcbdb1'
CRS-2677: Stop of 'ora.crf' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'srcbdb1'
CRS-2677: Stop of 'ora.gipcd' on 'srcbdb1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'srcbdb1'
CRS-2677: Stop of 'ora.gpnpd' on 'srcbdb1' succeeded
CRS-2677: Stop of 'ora.diskmon' on 'srcbdb1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'srcbdb1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@srcbdb1 ~]# 

linux
相关资讯       Diskgroup 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款