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

  • 相关阅读:
    floyd的魔改应用——洛谷P2419 [USACO08JAN]牛大赛Cow Contest 题解
    洛谷P2142 高精度减法 题解
    浅谈SPFA——洛谷P1576 最小花费 题解
    洛谷P1301 魔鬼之城 题解
    洛谷P1009 阶乘之和 题解
    20200926模拟
    [NOIP 2013]货车运输
    带权并查集--P2024 [NOI2001]食物链
    归并排序/树状数组求逆序对-lgP1908 逆序对
    LCA模块+求树上两点距离最短
  • 原文地址:https://www.cnblogs.com/jerryxing/p/2727452.html
Copyright © 2011-2022 走看看