- Change VOTE and OCR location
First we have to create new ASMLib binding
[root@lodzio ~]# oracleasm createdisk asmgrid /dev/sdc1
Writing disk header: done
Instantiating disk: done
4 LINESTEXT / UTF-8
Then we have to create new ASM diskgroup and set the appropriate attributes (at least ‘compatible.asm’)
[oracle@lodzio ~]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.3.0 Production on Wed Apr 15 11:16:30 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> create diskgroup gridasm
2 external redundancy disk 'ORCL:ASMGRID';
Diskgroup created.
SQL> ed
Wrote file afiedt.buf
1 alter diskgroup GRIDASM
2* set attribute 'compatible.asm'='11.2.0.0.0'
SQL> /
Diskgroup altered.
SQL> 2
2* set attribute 'compatible.asm'='11.2.0.0.0'
SQL> c /asm/rdbms
2* set attribute 'compatible.rdbms'='11.2.0.0.0'
SQL> /
Diskgroup altered.
33 LINESTEXT / UTF-8
Then we can add a new location for OCR.
[root@lodzio ~]# ocrconfig -add +GRIDASM
[root@lodzio ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2780
Available space (kbytes) : 259340
ID : 606656804
Device/File Name : +GRID
Device/File integrity check succeeded
Device/File Name : +GRIDASM
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
23 LINESTEXT / UTF-8
And remove the old location
[root@lodzio ~]# ocrconfig -delete +GRID
[root@lodzio ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2780
Available space (kbytes) : 259340
ID : 606656804
Device/File Name : +GRIDASM
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
24 LINESTEXT / UTF-8
Now we can replace the voting disk location
[root@lodzio ~]# crsctl replace votedisk +GRIDASM
Successful addition of voting disk 4c509ae74cb14f4ebf10f856b3dd7f7a.
Successful deletion of voting disk 28302806fe694f6bbfc9de3ff3be0b46.
Successfully replaced voting disk group with +GRIDASM.
CRS-4266: Voting file(s) successfully replaced
[root@lodzio ~]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 4c509ae74cb14f4ebf10f856b3dd7f7a (ORCL:ASMGRID) [GRIDASM]
Located 1 voting disk(s).
11 LINESTEXT / UTF-8
FIELD NOTES