about News

Resto OCR et Voting : Annexe 1

 

Tentative de monter l'OCRVOT

SQL> alter diskgroup OCRVOT mount force;
alter diskgroup OCRVOT mount force
*
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15040: diskgroup is incomplete
ORA-15066: offlining disk "2" in group "OCRVOT" may result in a data loss
ORA-15042: ASM disk "2" is missing from group number "4"
ORA-15042: ASM disk "1" is missing from group number "4"

--> normal 1 disque sur 3, impossible de monter

 

Tentative de créer l'OCRVOT

SQL>create Diskgroup OCRVOT normal redundancy disk '/dev/oracleasm/disks/OCRVOT1', '/dev/oracleasm/disks/OCRVOT2', '/dev/oracleasm/disks/OCRVOT3';

--> échec: normal existe déja

 

Tentative de forcer l'ajout des disques nouvellement instanciés

SQL> alter diskgroup OCRVOT add disk '/dev/oracleasm/disks/OCRVOT2' force;
alter diskgroup OCRVOT add disk '/dev/oracleasm/disks/OCRVOT2' force
*
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15001: diskgroup "OCRVOT" does not exist or is not mounted

--> Ben oui pas monté c’est bien le problème

 

Tentative de droper OCRVOT

SQL> drop diskgroup OCRVOT;
drop diskgroup OCRVOT
*
ERROR at line 1:
ORA-15039: diskgroup not dropped
ORA-15276: ASM diskgroup OCRVOT has cluster voting files

--> Ben oui il y a le voting qui est dessus et en plus il est up

 

Alors on va déplacer le voting sur un autre disk group :

[root@racdb1 ~]# /oracle/11.2.0.3/grid/bin/crsctl replace votedisk +DATA1
Oracle Cluster Registry initialization failed accessing Oracle Cluster Registry device: PROC-26: Error while accessing the physical storage
CRS-4000: Command Replace failed, or completed with errors.

-->  On se mord la queue, on ne peut pas car l’OCR n’est pas up!!! YellYelletYell

 

D'où la suppression du voting pour sortir de ce cycle infernalLaughing