OCR create keys failed for root with OCR error 27

[root@testdb2 ~]# /opt/grid/product/11.2.0.3/perl/bin/perl -I/opt/grid/product/11.2.0.3/perl/lib -I/opt/grid/product/11.2.0.3/crs/install /opt/grid/product/11.2.0.3/crs/install/roothas.pl
Using configuration parameter file: /opt/grid/product/11.2.0.3/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
OCR create keys failed, OCR error 27.
Creating local-only OCR (/opt/grid/product/11.2.0.3/bin/clscfg -local -g asmadmin) ... failed

 

Cause:

asmadmin group is missing in grid user

[root@testdb2 ~]# id grid

uid=1100(grid) gid=1000(oinstall) groups=1000(oinstall)

 

Solution:

[root@testdb2 ~]# groupadd -g 1032 asmdba

[root@testdb2 ~]# groupadd -g 1033 asmadmin

[root@testdb2 ~]# usermod -G asmadmin,asmdba grid

[root@testdb2 ~]# id grid

uid=1100(grid) gid=1000(oinstall) groups=1032(asmdba),1033(asmadmin),1000(oinstall)

[root@testdb2 ~]# /opt/grid/product/11.2.0.3/perl/bin/perl -I/opt/grid/product/11.2.0.3/perl/lib -I/opt/grid/product/11.2.0.3/crs/install /opt/grid/product/11.2.0.3/crs/install/roothas.pl

Using configuration parameter file: /opt/grid/product/11.2.0.3/crs/install/crsconfig_params

LOCAL ADD MODE

Creating OCR keys for user 'grid', privgrp 'oinstall'..

Operation successful.

LOCAL ONLY MODE

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

CRS-4664: Node testdb2 successfully pinned.

Adding Clusterware entries to inittab

testdb2     2017/04/15 14:29:46     /opt/grid/product/11.2.0.3/cdata/testdb2/backup_20170415_142946.olr

Successfully configured Oracle Grid Infrastructure for a Standalone Server

Comments