ITPub博客

首页 > 数据库 > Oracle > 11.2.0.3 RAC替换ocr 和 votedisk位置

11.2.0.3 RAC替换ocr 和 votedisk位置

原创 Oracle 作者:sxitsxit 时间:2015-03-04 23:28:54 0 删除 编辑

首先先停止rac1和rac2节点的实例

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

[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   3e2c54bd44864fa3bf681a6d2c14e158 (ORCL:OCRVOTE3) [OCRVOTE]
 2. ONLINE   96134cd84b4b4f5ebf1f345d7ebbb09a (ORCL:OCRVOTE1) [OCRVOTE]
 3. ONLINE   a99e219504f94f08bf6f5be0aa0af6bc (ORCL:OCRVOTE2) [OCRVOTE]
Located 3 voting disk(s).
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# su - grid
[grid@rac1 ~]$
[grid@rac1 ~]$ asmcmd
ASMCMD>
ASMCMD>
ASMCMD> lsdg
State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  EXTERN  N         512   4096  1048576     10236     8146                0            8146              0             N  DATA/
MOUNTED  EXTERN  N         512   4096  1048576     10236    10141                0           10141              0             N  NEWOCR/
MOUNTED  NORMAL  N         512   4096  1048576      6141     5215             2047            1584              0             Y  OCRVOTE/
ASMCMD>
ASMCMD>
ASMCMD> lsdsk -k
Total_MB  Free_MB  OS_MB  Name      Failgroup  Failgroup_Type  Library                                               Label     UDID  Product  Redund   Path
   10236     8146  10236  DATA1     DATA1      REGULAR         ASM Library - Generic Linux, version 2.0.4 (KABI_V2)  DATA1                    UNKNOWN  ORCL:DATA1
   10236    10141  10236  NEWOCR    NEWOCR     REGULAR         ASM Library - Generic Linux, version 2.0.4 (KABI_V2)  NEWOCR                   UNKNOWN  ORCL:NEWOCR
    2047     1737   2047  OCRVOTE1  OCRVOTE1   REGULAR         ASM Library - Generic Linux, version 2.0.4 (KABI_V2)  OCRVOTE1                 UNKNOWN  ORCL:OCRVOTE1
    2047     1740   2047  OCRVOTE2  OCRVOTE2   REGULAR         ASM Library - Generic Linux, version 2.0.4 (KABI_V2)  OCRVOTE2                 UNKNOWN  ORCL:OCRVOTE2
    2047     1738   2047  OCRVOTE3  OCRVOTE3   REGULAR         ASM Library - Generic Linux, version 2.0.4 (KABI_V2)  OCRVOTE3                 UNKNOWN  ORCL:OCRVOTE3
ASMCMD>
ASMCMD>
ASMCMD> exit
[grid@rac1 ~]$ exit
logout
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# oocrconfig -showbackup
-bash: oocrconfig: command not found
[root@rac1 ~]#
[root@rac1 ~]# ocrconfig -showbackup
PROT-24: Auto backups for the Oracle Cluster Registry are not available

rac2     2015/02/11 14:23:52     /u01/app/11.2.0/grid/cdata/rac-scan/backup_20150211_142352.ocr
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# ocrconfig -manualbackup

rac1     2015/02/11 15:57:28     /u01/app/11.2.0/grid/cdata/rac-scan/backup_20150211_155728.ocr

rac2     2015/02/11 14:23:52     /u01/app/11.2.0/grid/cdata/rac-scan/backup_20150211_142352.ocr
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# ocrconfig -add +NEWOCR
[root@rac1 ~]#
[root@rac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
  Version                  :          3
  Total space (kbytes)     :     262120
  Used space (kbytes)      :       3072
  Available space (kbytes) :     259048
  ID                       :  513026633
  Device/File Name         :   +OCRVOTE
                                    Device/File integrity check succeeded
  Device/File Name         :    +NEWOCR
                                    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

[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# ocrconfig -delete +OCRVOTE
[root@rac1 ~]#
[root@rac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
  Version                  :          3
  Total space (kbytes)     :     262120
  Used space (kbytes)      :       3072
  Available space (kbytes) :     259048
  ID                       :  513026633
  Device/File Name         :    +NEWOCR
                                    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

[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# crsctl replace votedisk +NEWOCR
Successful addition of voting disk 4922fdf83b144f32bf52fe7d2bf43fb6.
Successful deletion of voting disk 3e2c54bd44864fa3bf681a6d2c14e158.
Successful deletion of voting disk 96134cd84b4b4f5ebf1f345d7ebbb09a.
Successful deletion of voting disk a99e219504f94f08bf6f5be0aa0af6bc.
Successfully replaced voting disk group with +NEWOCR.
CRS-4266: Voting file(s) successfully replaced
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   4922fdf83b144f32bf52fe7d2bf43fb6 (ORCL:NEWOCR) [NEWOCR]
Located 1 voting disk(s).
[root@rac1 ~]#
[root@rac1 ~]#


rac1和 rac2 同时执行

[root@rac1 ~]# su - grid
[grid@rac1 ~]$
[grid@rac1 ~]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.3.0 Production on Wed Feb 11 16:02:22 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Real Application Clusters and Automatic Storage Management options

SQL> show parameter spfile;

NAME         TYPE  VALUE
------------------------------------ ----------- ------------------------------
spfile         string  +OCRVOTE/rac-scan/asmparameter
       file/registry.253.868489489
SQL> create pfile='/home/grid/asminit.ora' from spfile='+OCRVOTE/rac-scan/asmparameterfile/registry.253.868489489';

File created.

SQL>
SQL> ! more /home/asminit.ora
+ASM1.asm_diskgroups='DATA','NEWOCR'#Manual Mount
+ASM2.asm_diskgroups='FRA','DATA','ARCH','NEWOCR'#Manual Mount
*.asm_power_limit=1
*.diagnostic_dest='/u01/app/grid'
*.instance_type='asm'
*.large_pool_size=12M
*.remote_login_passwordfile='EXCLUSIVE'

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Real Application Clusters and Automatic Storage Management options
[grid@rac1 ~]$

修改新的磁盘组位置

[grid@rac1 ~]$ vi /home/grid/asminit.ora
"~/asminit.ora"
"~/asminit.ora" 7L, 251C+ASM1.asm_diskgroups='DATA','NEWOCR'#Manual Mount
+ASM2.asm_diskgroups='FRA','DATA','ARCH','NEWOCR'#Manual Mount
*.asm_power_limit=1
*.diagnostic_dest='/u01/app/grid'
*.instance_type='asm'
*.large_pool_size=12M
*.remote_login_passwordfile='EXCLUSIVE'

[grid@rac1 ~]$
[grid@rac1 ~]$
[grid@rac1 ~]$ cat  /home/grid/asminit.ora
+ASM1.asm_diskgroups='DATA','NEWOCR'#Manual Mount
+ASM2.asm_diskgroups='DATA','NEWOCR'#Manual Mount
*.asm_power_limit=1
*.diagnostic_dest='/u01/app/grid'
*.instance_type='asm'
*.large_pool_size=12M
*.remote_login_passwordfile='EXCLUSIVE'
[grid@rac1 ~]$
[grid@rac1 ~]$
[grid@rac1 ~]$
[grid@rac1 ~]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.3.0 Production on Wed Feb 11 16:08:03 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Real Application Clusters and Automatic Storage Management options

SQL> shutdown immediate;
ORA-15097: cannot SHUTDOWN ASM instance with connected client (process 7453)
SQL>
SQL> shutdown abort;
ASM instance shutdown
SQL>
SQL>
SQL> startup pfile='/home/grid/asminit.ora';
ASM instance started

Total System Global Area  284565504 bytes
Fixed Size      1344456 bytes
Variable Size    258055224 bytes
ASM Cache     25165824 bytes
ASM diskgroups mounted
ASM diskgroups volume enabled
SQL>
SQL>
SQL> select name from v$asm_disk;

NAME
------------------------------

DATA1
NEWOCR
OCRVOTE1
OCRVOTE2
OCRVOTE3

6 rows selected.

SQL> select name from v$asm_diskgroup;

NAME
------------------------------
DATA
NEWOCR
OCRVOTE

SQL>
SQL> create spfile='+NEWOCR' from pfile='/home/griasminit.ora';

File created.

SQL>
SQL> shutdown abort;
ASM instance shutdown
SQL>
SQL> startup
ASM instance started

Total System Global Area  284565504 bytes
Fixed Size      1344456 bytes
Variable Size    258055224 bytes
ASM Cache     25165824 bytes
ASM diskgroups mounted
ASM diskgroups volume enabled
SQL>
SQL>
SQL> show parameter spfile;

NAME         TYPE  VALUE
------------------------------------ ----------- ------------------------------
spfile         string  +NEWOCR/rac-scan/asmparameterf
       ile/registry.253.871402673
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Real Application Clusters and Automatic Storage Management options
[grid@rac1 ~]$
[grid@rac1 ~]$ exit
logout
[root@rac1 ~]#


rac1和 rac2 同时执行

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

启动后的结果如下

[root@rac1 ~]#
[root@rac1 ~]# ps -ef |grep smon
root     12936     1  0 16:26 ?        00:00:01 /u01/app/11.2.0/grid/bin/osysmond.bin
grid     13320     1  0 16:27 ?        00:00:00 asm_smon_+ASM1
root     14353  9549  0 16:35 pts/2    00:00:00 grep smon
[root@rac1 ~]#
[root@rac1 ~]# su - grid
[grid@rac1 ~]$
[grid@rac1 ~]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.3.0 Production on Wed Feb 11 16:35:37 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Real Application Clusters and Automatic Storage Management options


SQL>  select name,state from v$asm_diskgroup;

NAME          STATE
------------------------------ -----------
DATA          MOUNTED
NEWOCR          MOUNTED
OCRVOTE          MOUNTED

SQL> alter diskgroup ocrvote dismount;

Diskgroup altered.

SQL> select name,state from v$asm_diskgroup;

NAME          STATE
------------------------------ -----------
DATA          MOUNTED
NEWOCR          MOUNTED
OCRVOTE          DISMOUNTED

SQL> drop diskgroup ocrvote including contents;
drop diskgroup ocrvote including contents
*
ERROR at line 1:
ORA-15039: diskgroup not dropped
ORA-15001: diskgroup "OCRVOTE" does not exist or is not mounted


在rac1节点执行卸载磁盘报错,然后登陆到rac2节点,查看磁盘组状态如下

SQL> select name,state from v$asm_diskgroup;

NAME          STATE
------------------------------ -----------
DATA          MOUNTED
NEWOCR          MOUNTED
OCRVOTE          MOUNTED


然后在rac2节点执行卸载即可

SQL>  drop diskgroup ocrvote including contents;

Diskgroup dropped.

SQL>  select name,state from v$asm_diskgroup;

NAME          STATE
------------------------------ -----------
DATA          MOUNTED
NEWOCR          MOUNTED


然后在rac1节点会自动发现原来的ocrvote磁盘组已经删除,无需再手动删除

SQL>  select name,state from v$asm_diskgroup;

NAME          STATE
------------------------------ -----------
DATA          MOUNTED
NEWOCR          MOUNTED

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Real Application Clusters and Automatic Storage Management options
[grid@rac1 ~]$
[grid@rac1 ~]$
[grid@rac1 ~]$ exit
logout
[root@rac1 ~]#
[root@rac1 ~]# crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora.DATA.dg    ora....up.type ONLINE    ONLINE    rac1       
ora....ER.lsnr ora....er.type ONLINE    ONLINE    rac1       
ora....N1.lsnr ora....er.type ONLINE    ONLINE    rac1       
ora.NEWOCR.dg  ora....up.type ONLINE    ONLINE    rac1       
ora.asm        ora.asm.type   ONLINE    ONLINE    rac1       
ora.cvu        ora.cvu.type   ONLINE    ONLINE    rac1       
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE              
ora....network ora....rk.type ONLINE    ONLINE    rac1       
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    rac1       
ora.ons        ora.ons.type   ONLINE    ONLINE    rac1       
ora....SM1.asm application    ONLINE    ONLINE    rac1       
ora....C1.lsnr application    ONLINE    ONLINE    rac1       
ora.rac1.gsd   application    OFFLINE   OFFLINE              
ora.rac1.ons   application    ONLINE    ONLINE    rac1       
ora.rac1.vip   ora....t1.type ONLINE    ONLINE    rac1       
ora....SM2.asm application    ONLINE    ONLINE    rac2       
ora....C2.lsnr application    ONLINE    ONLINE    rac2       
ora.rac2.gsd   application    OFFLINE   OFFLINE              
ora.rac2.ons   application    ONLINE    ONLINE    rac2       
ora.rac2.vip   ora....t1.type ONLINE    ONLINE    rac2       
ora.racdb.db   ora....se.type OFFLINE   OFFLINE              
ora....ry.acfs ora....fs.type ONLINE    ONLINE    rac1       
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    rac1       
[root@rac1 ~]#

启动rac1和rac2两个节点的数据库实例

[root@rac1 ~]#
[root@rac1 ~]# srvctl start database -d racdb


[root@rac1 ~]# crs
_stat -t

Name           Type           Target    State     Host       
------------------------------------------------------------
ora.DATA.dg    ora....up.type ONLINE    ONLINE    rac1       
ora....ER.lsnr ora....er.type ONLINE    ONLINE    rac1       
ora....N1.lsnr ora....er.type ONLINE    ONLINE    rac1       
ora.NEWOCR.dg  ora....up.type ONLINE    ONLINE    rac1       
ora.asm        ora.asm.type   ONLINE    ONLINE    rac1       
ora.cvu        ora.cvu.type   ONLINE    ONLINE    rac1       
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE              
ora....network ora....rk.type ONLINE    ONLINE    rac1       
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    rac1       
ora.ons        ora.ons.type   ONLINE    ONLINE    rac1       
ora....SM1.asm application    ONLINE    ONLINE    rac1       
ora....C1.lsnr application    ONLINE    ONLINE    rac1       
ora.rac1.gsd   application    OFFLINE   OFFLINE              
ora.rac1.ons   application    ONLINE    ONLINE    rac1       
ora.rac1.vip   ora....t1.type ONLINE    ONLINE    rac1       
ora....SM2.asm application    ONLINE    ONLINE    rac2       
ora....C2.lsnr application    ONLINE    ONLINE    rac2       
ora.rac2.gsd   application    OFFLINE   OFFLINE              
ora.rac2.ons   application    ONLINE    ONLINE    rac2       
ora.rac2.vip   ora....t1.type ONLINE    ONLINE    rac2       
ora.racdb.db   ora....se.type ONLINE    ONLINE    rac1       
ora....ry.acfs ora....fs.type ONLINE    ONLINE    rac1       
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    rac1       
[root@rac1 ~]#

[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Wed Feb 11 16:44:15 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> select instance_name,status from gv$instance;

INSTANCE_NAME  STATUS
---------------- ------------
racdb1   OPEN
racdb2   OPEN

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$ exit
logout
[root@rac1 ~]#

[root@rac1 ~]# crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   4922fdf83b144f32bf52fe7d2bf43fb6 (ORCL:NEWOCR) [NEWOCR]
Located 1 voting disk(s).
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
  Version                  :          3
  Total space (kbytes)     :     262120
  Used space (kbytes)      :       3052
  Available space (kbytes) :     259068
  ID                       :  513026633
  Device/File Name         :    +NEWOCR
                                    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

[root@rac1 ~]# exit
logout

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

上一篇: 10g rac日常维护
请登录后发表评论 登录
全部评论

注册时间:2011-04-14

  • 博文量
    98
  • 访问量
    298375