Adicionando Ocr-Voting Disk no RAC 11gr2

This article will describe how to add/delete OCR disks/Voting disks in 11g R2 database. Please see below command output where we’ve ocr and ocr mirror in ASM DG and raw device respectively.
[oracle@RAC2 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 1039908
Used space (kbytes) : 4012
Available space (kbytes) : 1035896
ID : 2141770140
Device/File Name : +DATADG
Device/File integrity check succeeded
Device/File Name : /dev/raw/raw1
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 bypassed due to non-privileged user
Now we’ll delete ocr mirror device using below command and please note that while deleting OCR was online in my case.
[root@RAC2 bin]# ./ocrconfig -delete /dev/raw/raw1 (CRS was online)
Verify OCR locations again and now ocr mirror is removed from the output.
[root@RAC2 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 1039908
Used space (kbytes) : 4012
Available space (kbytes) : 1035896
ID : 2141770140
Device/File Name : +DATADG
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
Also note that ocr.loc is updated accordingly.
[root@RAC2 bin]# cat /etc/oracle/ocr.loc
#Device/file /dev/raw/raw1 being deleted
ocrconfig_loc=+DATADG
Adding RAW OCR device again (CRS was online) : Now we’ll add ocr mirror device again using raw device using below command.
=============================
local_only=false[root@RAC2 bin]# ./ocrconfig -add /dev/raw/raw1
Please note that ocr.loc is again updated mentioning about mirrorconfig location.
[root@RAC2 bin]# cat /etc/oracle/ocr.loc
#Device/file getting replaced by device /dev/raw/raw1
ocrconfig_loc=+DATADG
ocrmirrorconfig_loc=/dev/raw/raw1
local_only=false[cd /u01/app/11.2.0/grid/
[root@RAC2 grid]# cd bin
[root@RAC2 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 1039908
Used space (kbytes) : 4012
Available space (kbytes) : 1035896
ID : 2141770140
Device/File Name : +DATADG
Device/File integrity check succeeded
Device/File Name : /dev/raw/raw1
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
The same is not the case with Voting device. Once you move voting devices from raw devices to ASM Diskgroup, it’s not possible to add or delete voting files from ASM diskgroup as shown below.
[root@RAC2 bin]# ./crsctl add css votedisk /dev/raw/raw2
CRS-4258: Addition and deletion of voting files are not allowed because the voting files are on ASM
[root@RAC2 bin]#1

Sobre Alexandre Pires

ORACLE OCS Goldengate Specialist, OCE RAC 10g R2, OCP 12C, 11g, 10g , 9i e 8i - Mais de 25 anos de experiência na área de TI. Participei de projetos na G&P alocado na TOK STOK, EDINFOR alocado na TV CIDADE "NET", 3CON Alocado no PÃO DE AÇUCAR, DISCOVER alocado na VIVO, BANCO IBI e TIVIT, SPC BRASIL, UOLDIVEO alocado no CARREFOUR e atualmente na ORACLE ACS atendendo os seguintes projetos: VIVO, CLARO, TIM, CIELO, CAIXA SEGUROS, MAPFRE, PORTO SEGURO, SULAMERICA, BRADESCO SEGUROS, BANCO BRADESCO, BASA, SANTANDER, CNJ, TSE, ELETROPAULO, EDP, SKY, NATURA, ODEBRESHT, NISSEI, SICREDI, CELEPAR, TAM, TIVIT, IBM, SMILES, CELEPAR, SERPRO,OKI,BANCO PAN, etc
Esse post foi publicado em RAC. Bookmark o link permanente.

3 respostas para Adicionando Ocr-Voting Disk no RAC 11gr2

  1. Sandro disse:

    Ola Alexandre, boa tarde.

    Tenho uma duvida no seguinte, instalei hoje um Oracle Grid Infrastructure 11gR2 e na criacao eu havia criado varios volumes: 3 discos para dados, 3 para archive, 2 para redolog , 2 para ocr e votting disk e 2 para fast recovery area.

    Na instalacao o grid por default veio com o diskgroup name igual DATA e eu selecionei os discos de dados.

    Minha duvida e se esses discos tambem ficam como OCR e votting, sendo que tem outros discos para isso, ou seja os discos que seriam apenas dados tem tambem os registros e configuracao de cluster?

Deixe uma resposta

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s