IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    ORACLE RAC ERROR: ohasd failed to start at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443.

    Adamhuan发表于 2017-03-22 01:59:10
    love 0

    在ORACLE RAC安装的时候,执行root.sh的时候,你可能遇到如上所示的错误,具体如下:

    [root@oracle-cluster-1 app]# /u01/app/11.2.0/grid/root.sh 
    Running Oracle 11g root.sh script...
    
    The following environment variables are set as:
        ORACLE_OWNER= grid
        ORACLE_HOME=  /u01/app/11.2.0/grid
    
    Enter the full pathname of the local bin directory: [/usr/local/bin]: 
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
    [n]: y
       Copying dbhome to /usr/local/bin ...
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
    [n]: y
       Copying oraenv to /usr/local/bin ...
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
    [n]: y
       Copying coraenv to /usr/local/bin ...
    
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    2017-03-22 09:35:12: Parsing the host name
    2017-03-22 09:35:12: Checking for super user privileges
    2017-03-22 09:35:12: User has super user privileges
    Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
    LOCAL ADD MODE 
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    Adding daemon to inittab
    
    CRS-4124: Oracle High Availability Services startup failed.
    CRS-4000: Command Start failed, or completed with errors.
    ohasd failed to start: Inappropriate ioctl for device
    ohasd failed to start at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443.
    [root@oracle-cluster-1 app]#

    解决方法是:
    运行root.sh后:

    [root@oracle-cluster-1 app]# /u01/app/11.2.0/grid/root.sh 
    Running Oracle 11g root.sh script...
    
    The following environment variables are set as:
        ORACLE_OWNER= grid
        ORACLE_HOME=  /u01/app/11.2.0/grid
    
    Enter the full pathname of the local bin directory: [/usr/local/bin]: 
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
    [n]: y
       Copying dbhome to /usr/local/bin ...
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
    [n]: y
       Copying oraenv to /usr/local/bin ...
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
    [n]: y
       Copying coraenv to /usr/local/bin ...
    
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    2017-03-22 09:43:02: Parsing the host name
    2017-03-22 09:43:02: Checking for super user privileges
    2017-03-22 09:43:02: User has super user privileges
    Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
    
    LOCAL ADD MODE 
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    Adding daemon to inittab

    在【Adding daemon to inittab】出现后,在另一个会话中执行:
    /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
    如下:

    [root@oracle-cluster-1 ~]# /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
    /bin/dd: failed to open ‘/var/tmp/.oracle/npohasd’: No such file or directory
    [root@oracle-cluster-1 ~]# /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
    ^C0+0 records in
    0+0 records out
    0 bytes (0 B) copied, 619.73 s, 0.0 kB/s
    
    [root@oracle-cluster-1 ~]#

    如上,如果【/var/tmp/.oracle/npohasd】找不到就继续执行,因为它一定会生成出来。
    然后,该回话会被挂起,… 一直等待root.sh执行完,再结束【ctrl c】

    另一种方法:
    更改npohasd的权限:【chown root.oinstall /var/tmp/.oracle/npohasd】

    root.sh脚本的正常执行如下所示:

    [root@oracle-cluster-1 app]# /u01/app/11.2.0/grid/root.sh 
    Running Oracle 11g root.sh script...
    
    The following environment variables are set as:
        ORACLE_OWNER= grid
        ORACLE_HOME=  /u01/app/11.2.0/grid
    
    Enter the full pathname of the local bin directory: [/usr/local/bin]: 
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
    [n]: y
       Copying dbhome to /usr/local/bin ...
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
    [n]: y
       Copying oraenv to /usr/local/bin ...
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
    [n]: y
       Copying coraenv to /usr/local/bin ...
    
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    2017-03-22 09:43:02: Parsing the host name
    2017-03-22 09:43:02: Checking for super user privileges
    2017-03-22 09:43:02: User has super user privileges
    Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
    
    
    
    LOCAL ADD MODE 
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    Adding daemon to inittab
    CRS-4123: Oracle High Availability Services has been started.
    ohasd is starting
    ADVM/ACFS is not supported on redhat-release-server-7.1-1.0.2.el7.x86_64
    
    
    
    CRS-2672: Attempting to start 'ora.gipcd' on 'oracle-cluster-1'
    CRS-2672: Attempting to start 'ora.mdnsd' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.mdnsd' on 'oracle-cluster-1' succeeded
    CRS-2676: Start of 'ora.gipcd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.gpnpd' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.gpnpd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.cssdmonitor' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.cssdmonitor' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.cssd' on 'oracle-cluster-1'
    CRS-2672: Attempting to start 'ora.diskmon' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.diskmon' on 'oracle-cluster-1' succeeded
    CRS-2676: Start of 'ora.cssd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.ctssd' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.ctssd' on 'oracle-cluster-1' succeeded
    
    ASM created and started successfully.
    
    DiskGroup CRS created successfully.
    
    clscfg: -install mode specified
    Successfully accumulated necessary OCR keys.
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    CRS-2672: Attempting to start 'ora.crsd' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.crsd' on 'oracle-cluster-1' succeeded
    CRS-4256: Updating the profile
    Successful addition of voting disk 13cce82551ee4f6cbf9d45b20c0399c5.
    Successfully replaced voting disk group with +CRS.
    CRS-4256: Updating the profile
    CRS-4266: Voting file(s) successfully replaced
    ##  STATE    File Universal Id                File Name Disk group
    --  -----    -----------------                --------- ---------
     1. ONLINE   13cce82551ee4f6cbf9d45b20c0399c5 (/dev/raw/raw1) [CRS]
    Located 1 voting disk(s).
    CRS-2673: Attempting to stop 'ora.crsd' on 'oracle-cluster-1'
    CRS-2677: Stop of 'ora.crsd' on 'oracle-cluster-1' succeeded
    CRS-2679: Attempting to clean 'ora.crsd' on 'oracle-cluster-1'
    CRS-2681: Clean of 'ora.crsd' on 'oracle-cluster-1' succeeded
    CRS-2673: Attempting to stop 'ora.asm' on 'oracle-cluster-1'
    CRS-2677: Stop of 'ora.asm' on 'oracle-cluster-1' succeeded
    CRS-2673: Attempting to stop 'ora.ctssd' on 'oracle-cluster-1'
    CRS-2677: Stop of 'ora.ctssd' on 'oracle-cluster-1' succeeded
    CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'oracle-cluster-1'
    CRS-2677: Stop of 'ora.cssdmonitor' on 'oracle-cluster-1' succeeded
    CRS-2673: Attempting to stop 'ora.cssd' on 'oracle-cluster-1'
    CRS-2677: Stop of 'ora.cssd' on 'oracle-cluster-1' succeeded
    CRS-2673: Attempting to stop 'ora.gpnpd' on 'oracle-cluster-1'
    CRS-2677: Stop of 'ora.gpnpd' on 'oracle-cluster-1' succeeded
    CRS-2679: Attempting to clean 'ora.gpnpd' on 'oracle-cluster-1'
    CRS-2681: Clean of 'ora.gpnpd' on 'oracle-cluster-1' succeeded
    CRS-2673: Attempting to stop 'ora.gipcd' on 'oracle-cluster-1'
    CRS-2677: Stop of 'ora.gipcd' on 'oracle-cluster-1' succeeded
    CRS-2673: Attempting to stop 'ora.mdnsd' on 'oracle-cluster-1'
    CRS-2677: Stop of 'ora.mdnsd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.mdnsd' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.mdnsd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.gipcd' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.gipcd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.gpnpd' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.gpnpd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.cssdmonitor' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.cssdmonitor' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.cssd' on 'oracle-cluster-1'
    CRS-2672: Attempting to start 'ora.diskmon' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.diskmon' on 'oracle-cluster-1' succeeded
    CRS-2676: Start of 'ora.cssd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.ctssd' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.ctssd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.asm' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.asm' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.crsd' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.crsd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.evmd' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.evmd' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.asm' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.asm' on 'oracle-cluster-1' succeeded
    CRS-2672: Attempting to start 'ora.CRS.dg' on 'oracle-cluster-1'
    CRS-2676: Start of 'ora.CRS.dg' on 'oracle-cluster-1' succeeded
    
    oracle-cluster-1     2017/03/22 09:49:14     /u01/app/11.2.0/grid/cdata/oracle-cluster-1/backup_20170322_094914.olr
    Preparing packages...
    cvuqdisk-1.0.7-1.x86_64
    Configure Oracle Grid Infrastructure for a Cluster ... succeeded
    Updating inventory properties for clusterware
    Starting Oracle Universal Installer...
    
    Checking swap space: must be greater than 500 MB.   Actual 8063 MB    Passed
    The inventory pointer is located at /etc/oraInst.loc
    The inventory is located at /u01/app/oraInventory
    'UpdateNodeList' was successful.
    [root@oracle-cluster-1 app]#

    ————————————————————————
    Done.



沪ICP备19023445号-2号
友情链接