• 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

  • 相关阅读:
    赋值运算符函数
    系统设计面试题分析
    内核线程和用户线程的区别
    线程和进程区别
    TCP程序设计
    UDP程序设计
    死锁,死锁必要条件及处理策略
    Linux进程同步机制
    Windows与Linux下进程间通信技术比较
    Windows下进程通信方式
  • 原文地址:https://www.cnblogs.com/jerryxing/p/2727452.html
Copyright © 2020-2023  润新知