zoukankan      html  css  js  c++  java
  • ORACLE RAC OCR cann't Access

    rac1-> crs_stat -t

    CRS-0184: Cannot communicate with the CRS daemon.

    rac1-> ps -ef |grep crs
    root      4334     1  0 00:41 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
    oracle    6284  5936  0 00:54 pts/1    00:00:00 grep crs

    [root@rac1 ~]# /etc/init.d/init.crs start  
    Startup will be queued to init within 90 seconds.

    以上处理后问题还是存在

    [root@rac1 dev]#  /etc/init.d/init.crs stop
    Shutting down Oracle Cluster Ready Services (CRS):
    OCR initialization failed accessing OCR device: PROC-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]

    Shutdown has begun. The daemons should exit soon.

    查看/tmp/ 下有错误日志文件

    [root@rac1 ~]# cat /etc/fstab
    # This file is edited by fstab-sync - see 'man fstab-sync' for details
    LABEL=/                 /                       ext3    defaults        1 1
    none                    /dev/pts                devpts  gid=5,mode=620  0 0
    none                    /dev/shm                tmpfs   defaults        0 0
    LABEL=/home             /home                   ext3    defaults        1 2
    none                    /proc                   proc    defaults        0 0
    none                    /sys                    sysfs   defaults        0 0
    LABEL=SWAP-sda2         swap                    swap    defaults        0 0
    /dev/hdc                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
    /dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0

    原来是/OCFS 的目录没有挂载

    [root@rac1 devdb]# mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs

    要在引导时挂载文件系统,在两个节点的 /etc/fstab 中添加以下行。

    /etc/fstab

    /dev/sdb1 /ocfs ocfs2 _netdev,datavolume,nointr 0 0
    
    重新[root@rac1 ~]# /etc/init.d/init.crs start  
    
    

    重新su - oracle

    rac2-> crs_stat -t
    Name           Type           Target    State     Host        
    ------------------------------------------------------------
    ora.devdb.db   application    OFFLINE   OFFLINE               
    ora....b1.inst application    OFFLINE   OFFLINE               
    ora....b2.inst application    OFFLINE   OFFLINE               
    ora....SM1.asm application    ONLINE    ONLINE    rac1        
    ora....C1.lsnr application    ONLINE    ONLINE    rac1        
    ora.rac1.gsd   application    ONLINE    ONLINE    rac1        
    ora.rac1.ons   application    ONLINE    ONLINE    rac1        
    ora.rac1.vip   application    ONLINE    ONLINE    rac1        
    ora....SM2.asm application    ONLINE    ONLINE    rac2        
    ora....C2.lsnr application    ONLINE    ONLINE    rac2        
    ora.rac2.gsd   application    ONLINE    ONLINE    rac2        
    ora.rac2.ons   application    ONLINE    ONLINE    rac2        
    ora.rac2.vip   application    ONLINE    ONLINE    rac2

  • 相关阅读:
    Ubuntu 18.04 设置静态IP
    面试问题总结
    hadoop集群搭建流程
    胡适:天下没有白费的努力
    学习的技术内容
    Windows MySql安装
    MySql 基础知识
    windows maven 安装与配置
    Logstash抽取数据到Elasticsearch(1)
    后台运行导入数据库
  • 原文地址:https://www.cnblogs.com/jerryxing/p/2727452.html
Copyright © 2011-2022 走看看