OCR,VOTEDISK各种测试之一OCR,VOTEDISK的迁移

1、迁移votedisk
[20:18:19 root(grid)@rac1 ~]# crsctl replace votedisk +OCRVOTE
Successful addition of voting disk 72f4fb9959454f8abf1e8ce6d91ec5ee.
Successful deletion of voting disk 4192831431e94f8fbf65fcfff264c124.
Successfully replaced voting disk group with +OCRVOTE.
CRS-4266: Voting file(s) successfully replaced

[20:24:53 oracle(grid)@rac1 ~]$ crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   72f4fb9959454f8abf1e8ce6d91ec5ee (ORCL:OCRVOTE) [OCRVOTE]

 [20:29:38 oracle(grid)@rac2 ~]$ ocrcheck -config
Oracle Cluster Registry configuration is :
         Device/File Name         :      +DATA
2、迁移OCR
[20:35:05 root(grid)@rac2 ~]#  ocrconfig -add +OCRVOTE
[20:35:12 root(grid)@rac2 ~]#  ocrcheck -config
Oracle Cluster Registry configuration is :
         Device/File Name         :      +DATA
         Device/File Name         :   +OCRVOTE
[20:35:18 root(grid)@rac2 ~]# more /etc/oracle/ocr.loc
#Device/file  getting replaced by device +OCRVOTE 
ocrconfig_loc=+DATA
ocrmirrorconfig_loc=+OCRVOTE
local_only=false
[20:35:40 root(grid)@rac2 ~]# ocrconfig -delete +DATA
[20:36:03 root(grid)@rac2 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       3088
         Available space (kbytes) :     259032
         ID                       : 1190837800
         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

20:39:10 idle> show parameter spfile

NAME                                 TYPE                              VALUE
------------------------------------ --------------------------------- ------------------------------
spfile                               string                            +DATA/rac-cluster/asmparameter
                                                                       file/registry.253.861

20:40:02 idle> create spfile ='+OCRVOTE' from memory;

File created.

Elapsed: 00:00:00.98
20:40:13 idle> show parameter spfile;

NAME                                 TYPE                              VALUE
------------------------------------ --------------------------------- ------------------------------
spfile                               string                            +DATA/rac-cluster/asmparameter
                                                                       file/registry.253.861415757  
20:42:25 idle> startup force mount;
ORA-32004: obsolete or deprecated parameter(s) specified for ASM instance
ASM instance started

Total System Global Area    1135747072 bytes
Fixed Size                     2260728 bytes
Variable Size               1108320520 bytes
ASM Cache                     25165824 bytes
ASM diskgroups mounted
ASM diskgroups volume enabled
20:42:37 idle> show parameter spfile

NAME                                 TYPE                              VALUE
------------------------------------ --------------------------------- ------------------------------
spfile                               string                            +OCRVOTE/rac-cluster/asmparame
                                                                       terfile/registry.253.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值