Cannot configure two CRS instances on the same cluster

来源:互联网 发布:二维码生成器源码 编辑:程序博客网 时间:2024/05/17 01:26

  今天是2014-03-30,在安装oracle stand-alone server的时候出现如下错误:

[root@dg-two etc]# /u01/app/11.2.0/grid/root.shPerforming root user operation for Oracle 11g The following environment variables are set as:    ORACLE_OWNER= grid    ORACLE_HOME=  /u01/app/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]: The contents of "dbhome" have not changed. No need to overwrite.The contents of "oraenv" have not changed. No need to overwrite.The contents of "coraenv" have not changed. No need to overwrite.Creating /etc/oratab file...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root script.Now product-specific root actions will be performed.To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.plTo configure Grid Infrastructure for a Cluster execute the following command:/u01/app/11.2.0/grid/crs/config/config.shThis command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.[root@dg-two etc]# /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.plUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUser ignored Prerequisites during installation/u01/app/grid/product/11.2.0/grid/bin/crsctl query crs activeversion ... failed rc=-1 with message: Failure in execution (rc=-1, 0, No such file or directory) for command /u01/app/grid/product/11.2.0/grid/bin/crsctl query crs activeversion CRS is already configured on this node for crshome=/u01/app/grid/product/11.2.0/gridCannot configure two CRS instances on the same cluster.Please deconfigure before proceeding with the configuration of new home.


由于之前在该服务器安装过RAc,出现了该问题?

解决方案:

[root@dg-two etc]# /u01/app/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -forceUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUsage: srvctl <command> <object> [<options>]    commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config|upgrade    objects: database|service|asm|diskgroup|listener|home|onsFor detailed help on each command and object and its options use:  srvctl <command> -h or  srvctl <command> <object> -hPRKO-2012 : nodeapps object is not supported in Oracle RestartFailure in execution (rc=-1, 0, No such file or directory) for command /u01/app/11.2.0/grid/bin/crsctl stop res ora.registry.acfs -n dg-two -fsh: /u01/app/11.2.0/grid/bin/crsctl: No such file or directoryFailure in execution (rc=-1, 32512, No such file or directory) for command /u01/app/11.2.0/grid/bin/crsctl delete res ora.drivers.acfs -init -fFailure in execution (rc=-1, 32512, No such file or directory) for command /u01/app/11.2.0/grid/bin/crsctl stop crs -f################################################################# You must kill processes or reboot the system to properly ## cleanup the processes started by Oracle clusterware          #################################################################Successfully deconfigured Oracle clusterware stack on this node


最终解决:

[root@dg-two etc]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory.Adding read,write permissions for group.Removing read,write,execute permissions for world.Changing groupname of /u01/app/oraInventory to oinstall.The execution of the script is complete.[root@dg-two etc]# /u01/app/11.2.0/grid/root.sh Performing root user operation for Oracle 11g The following environment variables are set as:    ORACLE_OWNER= grid    ORACLE_HOME=  /u01/app/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]: The contents of "dbhome" have not changed. No need to overwrite.The contents of "oraenv" have not changed. No need to overwrite.The contents of "coraenv" have not changed. No need to overwrite.Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root script.Now product-specific root actions will be performed.To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.plTo configure Grid Infrastructure for a Cluster execute the following command:/u01/app/11.2.0/grid/crs/config/config.shThis command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.[root@dg-two etc]# /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.plUsing configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUser ignored Prerequisites during installationLOCAL 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 dg-two successfully pinned.Adding Clusterware entries to upstartdg-two     2014/03/30 14:58:29     /u01/app/11.2.0/grid/cdata/dg-two/backup_20140330_145829.olrSuccessfully configured Oracle Grid Infrastructure for a Standalone Server


查看资源信息:

[root@dg-two bin]# ./crsctl check cssCRS-4530: Communications failure contacting Cluster Synchronization Services daemon[root@dg-two bin]# ./crsctl check evmCRS-4533: Event Manager is online[root@dg-two bin]# cat /etc/oracle/ocr.lococrconfig_loc=/u01/app/11.2.0/grid/cdata/localhost/local.ocrlocal_only=TRUE[root@dg-two bin]# ./ocrcheckStatus of Oracle Cluster Registry is as follows :         Version                  :          3         Total space (kbytes)     :     262120         Used space (kbytes)      :        152         Available space (kbytes) :     261968         ID                       : 1330382406         Device/File Name         : /u01/app/11.2.0/grid/cdata/localhost/local.ocr                                    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[root@dg-two bin]# 


 

0 0
原创粉丝点击