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

  • 相关阅读:
    VUE前端项目配置代理解决跨域问题
    面试题:无序数组排序后的最大相邻差
    Vue项目中更改Vux组件中的样式
    iOS13适配 UITableView 种Cell出现带方框的小箭头
    JavaScript 中的require,import,export
    前端框架 Less 学习与实践
    Vue textarea 高度自适应
    Vue项目中添加手势实现左滑右滑操作
    day24 多态--后续
    day24 继承、封装和多态
  • 原文地址:https://www.cnblogs.com/jerryxing/p/2727452.html
Copyright © 2011-2022 走看看