Oracle Rac CRS 无法启动的解决办法 CRS-4563 CRS-4000

客户Rac环境由第三方公司安装,安装完了后一直也没注意,今天才发现,节点1压根就没在集群内

[grid@db2 ~]$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.DATA.dg    ora....up.type ONLINE    ONLINE    db2         
ora....ER.lsnr ora....er.type ONLINE    ONLINE    db2         
ora....N1.lsnr ora....er.type ONLINE    OFFLINE               
ora...._CRS.dg ora....up.type ONLINE    ONLINE    db2         
ora.asm        ora.asm.type   ONLINE    ONLINE    db2         
ora.crjdb.db   ora....se.type ONLINE    ONLINE    db2         
ora.cvu        ora.cvu.type   ONLINE    ONLINE    db2         
ora.db.db      ora....se.type ONLINE    ONLINE    db2         
ora.db1.vip    ora....t1.type ONLINE    OFFLINE               
ora....SM2.asm application    ONLINE    ONLINE    db2         
ora....B2.lsnr application    ONLINE    ONLINE    db2         
ora.db2.gsd    application    OFFLINE   OFFLINE               
ora.db2.ons    application    ONLINE    ONLINE    db2         
ora.db2.vip    ora....t1.type ONLINE    ONLINE    db2         
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type ONLINE    ONLINE    db2         
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    db2         
ora.ons        ora.ons.type   ONLINE    ONLINE    db2         
ora.scan1.vip  ora....ip.type ONLINE    OFFLINE    

由此看来db1根本就没在集群内
因此去db1查看状态,发现crs确实未启动

[grid@db2 ~]$ crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.

启动crs,发现启动失败

[grid@db2 ~]$  crsctl start crs
CRS-4563: Insufficient user privileges.

CRS-4000: Command Start failed, or completed with errors.
[grid@db2 ~]$ crsctl check css
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Check failed, or completed with errors.

后来查看日志发现对log下面db2没有权限,此时才发现了问题,节点1的hostname竟然和节点二一样

[grid@db2 ~]$ hostname
db2

更改hostname后,crs一样启动不来

后来网上查询尝试重新配置crs,使用root权限

[root@db1 ~]# cd /home/u01/grid/11.2.0/crs/install/
[root@db1 install]#  ./roothas.pl -deconfig -force -verbose
Using configuration parameter file: ./crsconfig_params
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle Restart stack

执行root.sh

[root@db1 ~]# cd /home/u01/grid/11.2.0/
[root@db1 11.2.0]# ./root.sh 
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /home/u01/grid/11.2.0

Enter 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 by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /home/u01/grid/11.2.0/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node db2, number 2, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
PRKO-2190 : VIP exists for node db1, VIP name db1-vip
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

此时查看crs状态

[root@db1 11.2.0]# su -  grid 
[grid@db1 ~]$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.DATA.dg    ora....up.type ONLINE    ONLINE    db1         
ora....ER.lsnr ora....er.type ONLINE    ONLINE    db1         
ora....N1.lsnr ora....er.type ONLINE    ONLINE    db1         
ora...._CRS.dg ora....up.type ONLINE    ONLINE    db1         
ora.asm        ora.asm.type   ONLINE    ONLINE    db1         
ora.crjdb.db   ora....se.type ONLINE    ONLINE    db1         
ora.cvu        ora.cvu.type   ONLINE    ONLINE    db2         
ora.db.db      ora....se.type ONLINE    ONLINE    db1         
ora....SM1.asm application    ONLINE    ONLINE    db1         
ora....B1.lsnr application    ONLINE    ONLINE    db1         
ora.db1.gsd    application    OFFLINE   OFFLINE               
ora.db1.ons    application    ONLINE    ONLINE    db1         
ora.db1.vip    ora....t1.type ONLINE    ONLINE    db1         
ora....SM2.asm application    ONLINE    ONLINE    db2         
ora....B2.lsnr application    ONLINE    ONLINE    db2         
ora.db2.gsd    application    OFFLINE   OFFLINE               
ora.db2.ons    application    ONLINE    ONLINE    db2         
ora.db2.vip    ora....t1.type ONLINE    ONLINE    db2         
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type ONLINE    ONLINE    db1         
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    db2         
ora.ons        ora.ons.type   ONLINE    ONLINE    db1         
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    db1    

搞定

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 背景: 阅读新闻 12C CDB模式下RMAN备份与恢复 [日期:2016-11-29] 来源:Linux社区 作...
    阳屯okyepd阅读 8,996评论 0 7
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,404评论 19 139
  • 背景: 阅读新闻 11G ASM磁盘组不能自动MOUNT处理 [日期:2016-01-12] 来源:Linux社区...
    yanglei3849阅读 9,318评论 0 2
  • 摘要:Oracle RAC 添加节点操作,跟安装类似,配置所需OS参数、IP规划等,需要在rac层和db层分别添加...
    肆虐的悲傷阅读 4,736评论 0 2
  • 早晨环西湖跑了个圈——是一个“奔跑吧,设计师”的活动。 6点多感觉温度凉爽,7点温度上升了,8点起跑,还没动就已经...
    尾田粉丝汤阅读 2,688评论 0 2