# Migrate OCR ASM Diskgroup To New ASM Diskgroup
# OCR
Perform ocr backup.
~]# /u01/app/11.2.0/grid/bin/ocrconfig -manualbackup
rac2 2022/05/06 09:21:54 /u01/app/11.2.0/grid/cdata/rac-cluster/backup_20220506_092154.ocr~]# /u01/app/11.2.0/grid/bin/ocrconfig -showbackup
PROT-24: Auto backups for the Oracle Cluster Registry are not availablerac2 2022/05/06 09:21:54 /u01/app/11.2.0/grid/cdata/rac-cluster/backup_20220506_092154.ocrPerform ocrcheck.
~]# /u01/app/11.2.0/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3012
Available space (kbytes) : 259108
ID : 354983601
Device/File Name : +OCR_VOTEDevice/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
Create a new NEW_OCRVOTE diskgroup.
CREATE DISKGROUP NEW_OCRVOTE NORMAL REDUNDANCYFAILGROUP F1 DISK'ORCL:NEW_OCRVOTE1','ORCL:NEW_OCRVOTE2'
FAILGROUP F2 DISK'ORCL:NEW_OCRVOTE3','ORCL:NEW_OCRVOTE4'
ATTRIBUTE 'COMPATIBLE.ASM' = '11.2';
Add new ocrmirror.
~]# /u01/app/11.2.0/grid/bin/ocrconfig -add +NEW_OCRVOTE
~]# /u01/app/11.2.0/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3012
Available space (kbytes) : 259108
ID : 354983601
Device/File Name : +OCR_VOTEDevice/File integrity check succeeded
Device/File Name : +NEW_OCRVOTEDevice/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
Delete old ocr device.
~]# /u01/app/11.2.0/grid/bin/ocrconfig -delete +OCR_VOTE
~]# /u01/app/11.2.0/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3012
Available space (kbytes) : 259108
ID : 354983601
Device/File Name : +NEW_OCRVOTEDevice/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
# Voting Disks
Query css votedisk.
~]$ crsctl query css votedisk## STATE File Universal Id File Name Disk group-- ----- ----------------- --------- ---------
1. ONLINE adbb58e65c384ff0bf5fc171cba469a4 (ORCL:OCR_VOTE1) [OCR_VOTE]
Located 1 voting disk(s).
Replace votedisk.
~]$ crsctl replace votedisk +NEW_OCRVOTE~]$ crsctl query css votedisk## STATE File Universal Id File Name Disk group-- ----- ----------------- --------- ---------
1. ONLINE adbb58e65c384ff0bf5fc171cba469a4 (ORCL:NEW_OCRVOTE1) [NEW_OCRVOTE]
2. ONLINE 07d2464674ac4fabbf27f3132d8448b0 (ORCL:NEW_OCRVOTE2) [NEW_OCRVOTE]
3. ONLINE 9761ccf221524f66bff0766ad5721239 (ORCL:NEW_OCRVOTE3) [NEW_OCRVOTE]
Located 3 voting disk(s).
# ASM spfile
Replace asm spfile to new diskgroup.
~]$ sqlplus / as sysasm
SQL> show parameter spfile;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------spfile string +OCR_VOTE/rac-cluster/asmparame
terfile/registry.253.946671547
SQL> create pfile='/u01/app/grid/asmpfile.ora' from spfile;
File created.
SQL> create spfile='+NEW_OCRVOTE' from pfile='/u01/app/grid/asmpfile.ora';
File created.
Restart cluster.
~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster -all
~]# /u01/app/11.2.0/grid/bin/crsctl start cluster -all