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.
OCR,VOTEDISK各种测试之一OCR,VOTEDISK的迁移
最新推荐文章于 2023-07-14 11:56:30 发布