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