• PROT1 root.sh Failed to Initialize ocrconfig [ID 983792.1]


    PROT-1: root.sh Failed to Initialize ocrconfig [ID 983792.1]


     

    Modified 03-MAR-2010     Type PROBLEM     Status MODERATED

     

    In this Document
      Symptoms
      Cause
      Solution
      References


    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

    Applies to:

    Oracle Server - Enterprise Edition - Version: 11.2.0.1 to 11.2.0.1 - Release: 11.2 to 11.2
    Generic UNIX
    Generic Linux

    Symptoms

    After successful 11gR2 Grid Infrastructure clusterware (CRS) installation, root.sh failed to initialize OCR with following error:

    ..
    CRS-2676: Start of 'ora.cssd' on 'racnode1' succeeded
    CRS-2672: Attempting to start 'ora.ctssd' on 'racnode1'
    CRS-2676: Start of 'ora.ctssd' on 'racnode1' succeeded
    PROT-1: Failed to initialize ocrconfig
    Command return code of 255 (65280) from command: /ocw/grid/bin/ocrconfig -upgrade oracle oinstall
    Failed to create Oracle Cluster Registry configuration, rc 255
    ..

     

    ocrconfig trace in $GRID_HOME/log/$HOSTNAME/client/ocrconfig_pid.log shows following:

      Case 1:

    ..
    2009-12-07 12:51:41.328: [ OCRCONF][4265610768]ocrconfig starts...
    2009-12-07 12:51:41.328: [ OCRCONF][4265610768]Upgrading OCR data
    2009-12-07 12:51:41.330: [  OCROSD][4265610768]NFS file system /OCR mounted with incorrect options
    2009-12-07 12:51:41.330: [  OCROSD][4265610768]WARNING:Expected NFS mount options: wsize>=32768,rsize>=32768,hard,(noac | actimeo=0 | acregmin=0,acregmax=0,acdirmin=0,acdirmax=0)
    2009-12-07 12:51:41.330: [  OCROSD][4265610768]utopen:6m'': OCR location [/share/storage/ocr] configured is not a valid storage type. Rturn code [37].
    2009-12-07 12:51:41.330: [  OCROSD][4265610768]utopen:7:failed to open any OCR file/disk, errno=2, os err string=No such file or directory
    2009-12-07 12:51:41.330: [  OCRRAW][4265610768]proprinit: Could not open raw device
    2009-12-07 12:51:41.331: [ default][4265610768]a_init:7!: Backend init unsuccessful : [26]
    2009-12-07 12:51:41.331: [ OCRCONF][4265610768]Exporting OCR data to [OCRUPGRADEFILE]
    2009-12-07 12:51:41.331: [  OCRAPI][4265610768]a_init:7!: Backend init unsuccessful : [33]
    2009-12-07 12:51:41.332: [ OCRCONF][4265610768]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]
    ..


      Case 2:

    2010-01-04 21:07:10.041: [ OCRCONF][3046483648]ocrconfig starts...
    2010-01-04 21:07:10.044: [ OCRCONF][3046483648]Upgrading OCR data
    ..
    2010-01-04 21:07:10.073: [  OCROSD][3046483648]utopen:6m'': OCR location [/share/storage/ocr] configured is not a valid storage type. Rturn code [37].
    2010-01-04 21:07:10.073: [  OCROSD][3046483648]utopen:7:failed to open any OCR file/disk, errno=2, os err string=No such file or directory
    2010-01-04 21:07:10.073: [  OCRRAW][3046483648]proprinit: Could not open raw device
    2010-01-04 21:07:10.073: [ default][3046483648]a_init:7!: Backend init unsuccessful : [26]

    2010-01-04 21:07:10.081: [  OCROSD][3046483648]utopen:6m'': OCR location [/share/storage/ocr] configured is not a valid storage type. Rturn code [37].
    2010-01-04 21:07:10.081: [  OCROSD][3046483648]utopen:7:failed to open any OCR file/disk, errno=9, os err string=Bad file descriptor
    2010-01-04 21:07:10.081: [  OCRRAW][3046483648]proprinit: Could not open raw device
    2010-01-04 21:07:10.082: [  OCRAPI][3046483648]a_init:6b!: Backend init unsuccessful : [26]
    2010-01-04 21:07:10.082: [ OCRCONF][3046483648]Failed to initialized OCR context. error:[PROC-26: Error while accessing the physical storage Operating System error [Bad file descriptor] [9]]
    2010-01-04 21:07:10.082: [ OCRCONF][3046483648]Exiting [status=failed]...

     


      Case 3:

    2010-03-02 14:48:05.037: [  OCROSD][4203302416]utstoragetypecommon: Oracle Cluster Registry does not support the storage type configured. OCR can be configured on: ASM, OCFS, OCFS2, NFS, Block Device, Character Device, VxFS
    2010-03-02 14:48:05.037: [  OCROSD][4203302416]utopen:6m'': OCR location [/share/storage/ocr] configured is not a valid storage type. Rturn code [37].
    2010-03-02 14:48:05.037: [  OCROSD][4203302416]utopen:7:failed to open any OCR file/disk, errno=2, os err string=No such file or directory
    2010-03-02 14:48:05.037: [  OCRRAW][4203302416]proprinit: Could not open raw device
    2010-03-02 14:48:05.037: [ default][4203302416]a_init:7!: Backend init unsuccessful : [26]
    2010-03-02 14:48:05.038: [  OCROSD][4203302416]utstoragetypecommon: Oracle Cluster Registry does not support the storage type configured. OCR can be configured on: ASM, OCFS, OCFS2, NFS, Block Device, Character Device, VxFS
    2010-03-02 14:48:05.038: [  OCROSD][4203302416]utopen:6m'': OCR location [/share/storage/ocr] configured is not a valid storage type. Rturn code [37].
    2010-03-02 14:48:05.038: [  OCROSD][4203302416]utopen:7:failed to open any OCR file/disk, errno=9, os err string=Bad file descriptor
    2010-03-02 14:48:05.038: [  OCRRAW][4203302416]proprinit: Could not open raw device
    2010-03-02 14:48:05.038: [  OCRAPI][4203302416]a_init:6b!: Backend init unsuccessful : [26]
    2010-03-02 14:48:05.038: [ OCRCONF][4203302416]Failed to initialized OCR context. error:[PROC-26: Error while accessing the physical storage Operating System error [Bad file descriptor] [9]]

     

     

    Cause


    For case 1, cause is incorrect NFS mount option specified for OCR and Voting disk

    For case 2, cause is instead of a flat file, specified OCR location is a directory:

      ls -ld /share/storage/ocr
      drwxr-xr-x 2 oracle oinstall 4096 Jan 04 13:15 /share/storage/ocr


    For case 3, cause is unsupported storage type specified for OCR

      ls -l /share/storage/ocr
      -rw-r----- 1 root oinstall 0 Fan 04 15:15 /share/storage/ocr

      mount | grep share
      /u01/share on /share type none (rw,bind)

      # from above you can see /share file system is not supported type for OCR

     

    Solution


    For case 1, remount NFS for OCR and Voting Disk with proper mount options in note 359515.1

    For case 2, remove the directory and create a empty file with same name instead:

      rm -rf /share/storage/ocr
      touch /share/storage/ocr
      chown oracle:oinstall /share/storage/ocr


    For case 3, make sure supported storage type is used for OCR.

    Once above is done, you can clean up and re-run root.sh with
    note 942166.1

    References

    NOTE:942166.1 - How to Proceed from Failed 11gR2 Grid Infrastructure (CRS) Installation
    NOTE:955550.1 - Root.sh Fails to Format Voting disks when Placing OCR/Voting Disks on ASM

     

     

     

     

    ------------------------------------------------------------------------------

    Blog http://blog.csdn.net/tianlesoftware

    网上资源: http://tianlesoftware.download.csdn.net

    相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx

    DBA1 群:62697716(); DBA2 群:62697977()

    DBA3 群:62697850   DBA 超级群:63306533;    

    聊天 群:40132017

    --加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

    道森Oracle,国内最早、最大的网络语音培训机构,我们提供专业、优质的Oracle技术培训和服务! 我们的官方网站:http://www.daosenoracle.com 官方淘宝店:http://daosenpx.taobao.com/
  • 相关阅读:
    MVC3.0 如何点击点击一张图片连接到另一地址
    什么是SMTP?
    ASP.NET MVC中 Jquery AJAX 获取数据利用MVC模型绑定实现输出
    MVC HTML控件扩展例子
    连接局域网内的mysql服务
    python loger 模板
    培养正确的编程态度和方法转
    Chrome不支持showModalDialog模态对话框和无法返回returnValue的问题
    SQL中时间与秒互转
    VS开发好用的扩展
  • 原文地址:https://www.cnblogs.com/tianlesoftware/p/3609895.html
Copyright © 2020-2023  润新知