RAC: change the voting disk and ocr location


15.04.2015
by Kamil Stawiarski

  • Change VOTE and OCR location

First we have to create new ASMLib binding

1[root@lodzio ~]# oracleasm createdisk asmgrid /dev/sdc1
2Writing disk header: done
3Instantiating 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 
3SQL*Plus: Release 11.2.0.3.0 Production on Wed Apr 15 11:16:30 2015
4 
5Copyright (c) 1982, 2011, Oracle.  All rights reserved.
6 
7 
8Connected to:
9Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
10With the Real Application Clusters and Automatic Storage Management options
11 
12SQL> create diskgroup gridasm   
13  2  external redundancy disk 'ORCL:ASMGRID';
14 
15Diskgroup created.
16 
17SQL> ed
18Wrote file afiedt.buf
19 
20  1  alter diskgroup GRIDASM
21  2* set attribute 'compatible.asm'='11.2.0.0.0'
22SQL> /
23 
24Diskgroup altered.
25 
26SQL> 2
27  2* set attribute 'compatible.asm'='11.2.0.0.0'
28SQL> c /asm/rdbms
29  2* set attribute 'compatible.rdbms'='11.2.0.0.0'
30SQL> /
31 
32Diskgroup altered.

Then we can add a new location for OCR.

1[root@lodzio ~]# ocrconfig -add +GRIDASM
2[root@lodzio ~]# ocrcheck
3Status 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
3Status 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
2Successful addition of voting disk 4c509ae74cb14f4ebf10f856b3dd7f7a.
3Successful deletion of voting disk 28302806fe694f6bbfc9de3ff3be0b46.
4Successfully replaced voting disk group with +GRIDASM.
5CRS-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]
10Located 1 voting disk(s).

Contact us

Database Whisperers sp. z o. o. sp. k.
al. Jerozolimskie 200, 3rd floor, room 342
02-486 Warszawa
NIP: 5272744987
REGON:362524978
+48 508 943 051
+48 661 966 009
info@ora-600.pl

Newsletter Sign up to be updated