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

[root@lodzio ~]# oracleasm createdisk asmgrid /dev/sdc1 
Writing disk header: done
Instantiating disk: done

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.

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

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

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).

Search:


Kontakt

Database Whisperers sp. z o. o. sp. k.
Al. Jerozolimskie 200
Wejście B, III piętro/ pokój 342
02-486 Warszawa
NIP: 5272744987
REGON:362524978
+48 508 943 051
+48 661 966 009
info@ora-600.pl

Newsletter zapisz się żeby być na bieżąco