Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1300739
  • 博文数量: 127
  • 博客积分: 2286
  • 博客等级: 大尉
  • 技术积分: 1943
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-10 10:37
文章分类

全部博文(127)

文章存档

2018年(1)

2015年(2)

2014年(1)

2013年(30)

2012年(88)

2011年(5)

分类: Oracle

2013-08-30 11:32:54

以前rac的ocr和votedisk使用了统一个dg,没有冗余,计划都添加一个冗余


问题是:votedisk如果使用dg,有且只能有一个dg,我们只能建立一个3个冗余磁盘的dg,来替换原来的dg
11gR2, 这些操作都可以online做,很方便

yamsdb2#[/home/grid]crsctl check cluster -all
**************************************************************
yamsdb1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
yamsdb2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************

yamsdb2#[/home/grid]ocrconfig -showbackup

yamsdb2     2013/08/29 09:09:53     /grid/11.2.0/grid/cdata/yamsdb-rac/backup00.ocr

yamsdb2     2013/08/29 05:09:36     /grid/11.2.0/grid/cdata/yamsdb-rac/backup01.ocr

yamsdb2     2013/08/29 01:09:35     /grid/11.2.0/grid/cdata/yamsdb-rac/backup02.ocr

yamsdb2     2013/08/27 17:09:26     /grid/11.2.0/grid/cdata/yamsdb-rac/day.ocr

yamsdb2     2013/08/19 13:08:23     /grid/11.2.0/grid/cdata/yamsdb-rac/week.ocr

 


# ./ocrconfig -manualbackup

yamsdb2     2013/08/29 11:16:03     /grid/11.2.0/grid/cdata/yamsdb-rac/backup_20130829_111603.ocr
# ./ocrconfig -showbackup

yamsdb2     2013/08/29 09:09:53     /grid/11.2.0/grid/cdata/yamsdb-rac/backup00.ocr

yamsdb2     2013/08/29 05:09:36     /grid/11.2.0/grid/cdata/yamsdb-rac/backup01.ocr

yamsdb2     2013/08/29 01:09:35     /grid/11.2.0/grid/cdata/yamsdb-rac/backup02.ocr

yamsdb2     2013/08/27 17:09:26     /grid/11.2.0/grid/cdata/yamsdb-rac/day.ocr

yamsdb2     2013/08/19 13:08:23     /grid/11.2.0/grid/cdata/yamsdb-rac/week.ocr

yamsdb2     2013/08/29 11:16:03     /grid/11.2.0/grid/cdata/yamsdb-rac/backup_20130829_111603.ocr


# ./ocrconfig -add +OCR2
# ./orccheck
sh: ./orccheck:  not found.
# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       3360
         Available space (kbytes) :     258760
         ID                       :  943571883
         Device/File Name         :   +OCRVOTE
                                    Device/File integrity check succeeded
         Device/File Name         :      +OCR2
                                    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

 

yamsdb2#[/home/grid]crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   8beedfff23614f42bfe70018d7abf99d (/dev/rdisk/disk1263) [OCRVOTE]
Located 1 voting disk(s).

 

yamsdb2#[/home/grid]crsctl replace  votedisk +VOTE
Successful addition of voting disk 493661da9b614f36bfd78dfbec45b0d4.
Successful addition of voting disk 3f6d16d3f1754fbfbfdc7ed37aba98f9.
Successful addition of voting disk 3a146e9c587a4f26bf9c975957ae81e9.
Successful deletion of voting disk 8beedfff23614f42bfe70018d7abf99d.
Successfully replaced voting disk group with +VOTE.
CRS-4266: Voting file(s) successfully replaced

 

yamsdb2#[/home/grid]crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   493661da9b614f36bfd78dfbec45b0d4 (/dev/rdisk/disk1604) [VOTE]
 2. ONLINE   3f6d16d3f1754fbfbfdc7ed37aba98f9 (/dev/rdisk/disk1605) [VOTE]
 3. ONLINE   3a146e9c587a4f26bf9c975957ae81e9 (/dev/rdisk/disk1606) [VOTE]
Located 3 voting disk(s).

 

 

yamsdb2#[/home/grid]crsctl status res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ARC.dg
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.LISTENER.lsnr
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.MDWDATA.dg
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.MDWINDEX.dg
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.OCR2.dg
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.OCRVOTE.dg
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.REDOCTL1.dg
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.REDOCTL2.dg
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.VOTE.dg
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.YMSDATA.dg
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.YMSINDEX.dg
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.asm
               ONLINE  ONLINE       yamsdb1                   Started
               ONLINE  ONLINE       yamsdb2                   Started
ora.gsd
               OFFLINE OFFLINE      yamsdb1
               OFFLINE OFFLINE      yamsdb2
ora.net1.network
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
ora.ons
               ONLINE  ONLINE       yamsdb1
               ONLINE  ONLINE       yamsdb2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       yamsdb2
ora.cvu
      1        ONLINE  ONLINE       yamsdb2
ora.yamsdb.db
      1        ONLINE  ONLINE       yamsdb1                   Open
      2        ONLINE  ONLINE       yamsdb2                   Open
ora.yamsdb.mdw.svc
      1        ONLINE  ONLINE       yamsdb2
ora.yamsdb.yms.svc
      1        ONLINE  ONLINE       yamsdb1
ora.yamsdb1.vip
      1        ONLINE  ONLINE       yamsdb1
ora.yamsdb2.vip
      1        ONLINE  ONLINE       yamsdb2
ora.oc4j
      1        OFFLINE OFFLINE
ora.scan1.vip
      1        ONLINE  ONLINE       yamsdb2
yamsdb2#[/home/grid]
yamsdb2#[/home/grid]
yamsdb2#[/home/grid]
yamsdb2#[/home/grid]crsctl check cluster -all
**************************************************************
yamsdb1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
yamsdb2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************

 

阅读(4498) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~