Installation Oracle11gR2 RAC---常见报错处理

第六章、报错处理

6.1 root.sh脚本执行失败处理

安装grid时,执行rootsh脚本报错如下:

Adding Clusterware entries to inittab

USM driver install actions failed

/u01/app/11.2.0/grid/perl/bin/perl-I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install/u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed

查看mos发现为一个bug,ROOT.SH OR ACFSROOT INSTALL,FAILS: ACFS-9109: SLES11 SP3。分别在节点1与节点2上打补丁。

unzip p17475946_112040_Linux-x86-64.zip

[email protected]:/u01/app/11.2.0/grid/OPatch>./opatch napply -oh /u01/app/11.2.0/grid -local /mnt/17475946

Oracle Interim Patch Installer version11.2.0.3.4

Copyright (c) 2012, Oracle Corporation.  All rights reserved.

Oracle Home       : /u01/app/11.2.0/grid

Central Inventory : /u01/app/oraInventory

from           :/u01/app/11.2.0/grid/oraInst.loc

OPatch version    : 11.2.0.3.4

OUI version       : 11.2.0.4.0

Log file location :/u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2015-05-15_09-04-45AM_1.log

Verifying environment and performingprerequisite checks...

OPatch continues with these patches:   17475946

Do you want to proceed? [y|n]

y

User Responded with: Y

All checks passed.

Please shutdown Oracle instances runningout of this ORACLE_HOME on the local system.

(Oracle Home = ‘/u01/app/11.2.0/grid‘)

Is the local system ready for patching?[y|n]

y

User Responded with: Y

Backing up files...

Applying interim patch ‘17475946‘ to OH‘/u01/app/11.2.0/grid‘

Patching component oracle.usm,11.2.0.4.0...

Verifying the update...

Patch 17475946 successfully applied.

Log file location:/u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2015-05-15_09-04-45AM_1.log

OPatch succeeded.

[email protected]:/u01/app/11.2.0/grid/OPatch>

6.2 Crsctl执行关闭时报错

Crsctl执行关闭时报错。

jason1:/u01/app/11.2.0/grid/bin# ./crsctl stop crs

CRS-2791: Starting shutdownof Oracle High AvailabilityServices-managed resources on ‘jason1‘

CRS-2673: Attempting to stop‘ora.crsd‘ on ‘jason1‘

CRS-2790: Starting shutdownof Cluster Ready Services-managedresources on ‘jason1‘

CRS-2673: Attempting to stop‘ora.OCR.dg‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.registry.acfs‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.oracle.db‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.LISTENER_SCAN1.lsnr‘ on‘jason1‘

CRS-2673: Attempting to stop‘ora.cvu‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.LISTENER.lsnr‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.oc4j‘ on ‘jason1‘

CRS-2677: Stop of ‘ora.LISTENER.lsnr‘on ‘jason1‘ succeeded

CRS-2673: Attempting to stop‘ora.jason1.vip‘ on ‘jason1‘

CRS-2677: Stop of ‘ora.cvu‘on ‘jason1‘ succeeded

CRS-2672: Attempting to start‘ora.cvu‘ on ‘jason2‘

CRS-2677: Stop of‘ora.LISTENER_SCAN1.lsnr‘ on ‘jason1‘succeeded

CRS-2673: Attempting to stop‘ora.scan1.vip‘ on ‘jason1‘

CRS-2677: Stop of‘ora.jason1.vip‘ on ‘jason1‘ succeeded

CRS-2672: Attempting to start‘ora.jason1.vip‘ on ‘jason2‘

CRS-2676: Start of ‘ora.cvu‘on ‘jason2‘ succeeded

CRS-2677: Stop of ‘ora.scan1.vip‘on ‘jason1‘ succeeded

CRS-2672: Attempting to start‘ora.scan1.vip‘ on ‘jason2‘

CRS-2677: Stop of‘ora.oracle.db‘ on ‘jason1‘ succeeded

CRS-2673: Attempting to stop‘ora.DATA.dg‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.FRA.dg‘ on ‘jason1‘

CRS-2677: Stop of‘ora.registry.acfs‘ on ‘jason1‘ succeeded

CRS-2676: Start of‘ora.jason1.vip‘ on ‘jason2‘ succeeded

CRS-2676: Start of‘ora.scan1.vip‘ on ‘jason2‘ succeeded

CRS-2672: Attempting to start‘ora.LISTENER_SCAN1.lsnr‘ on‘jason2‘

CRS-2677: Stop of‘ora.OCR.dg‘ on ‘jason1‘ succeeded

CRS-2677: Stop of‘ora.FRA.dg‘ on ‘jason1‘ succeeded

CRS-2677: Stop of‘ora.DATA.dg‘ on ‘jason1‘ succeeded

CRS-2673: Attempting to stop‘ora.asm‘ on ‘jason1‘

CRS-2676: Start of‘ora.LISTENER_SCAN1.lsnr‘ on ‘jason2‘succeeded

CRS-2677: Stop of ‘ora.asm‘on ‘jason1‘ succeeded

CRS-2677: Stop of ‘ora.oc4j‘on ‘jason1‘ succeeded

CRS-2672: Attempting to start‘ora.oc4j‘ on ‘jason2‘

CRS-2676: Start of ‘ora.oc4j‘on ‘jason2‘ succeeded

CRS-2673: Attempting to stop‘ora.ons‘ on ‘jason1‘

CRS-2677: Stop of ‘ora.ons‘on ‘jason1‘ succeeded

CRS-2673: Attempting to stop‘ora.net1.network‘ on ‘jason1‘

CRS-2677: Stop of‘ora.net1.network‘ on ‘jason1‘ succeeded

CRS-2792: Shutdown of ClusterReady Services-managed resourceson ‘jason1‘ has completed

CRS-2677: Stop of ‘ora.crsd‘on ‘jason1‘ succeeded

CRS-2673: Attempting to stop‘ora.crf‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.ctssd‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.evmd‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.asm‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.mdnsd‘ on ‘jason1‘

CRS-2673: Attempting to stop‘ora.drivers.acfs‘ on ‘jason1‘

CRS-2677: Stop of ‘ora.crf‘on ‘jason1‘ succeeded

CRS-2677: Stop of ‘ora.evmd‘on ‘jason1‘ succeeded

CRS-2677: Stop of ‘ora.mdnsd‘on ‘jason1‘ succeeded

CRS-2677: Stop of ‘ora.ctssd‘on ‘jason1‘ succeeded

CRS-5022: Stop of resource"ora.drivers.acfs" failed:current state is "UNKNOWN"

CRS-2675: Stop of‘ora.drivers.acfs‘ on ‘jason1‘ failed

CRS-2677: Stop of ‘ora.asm‘on ‘jason1‘ succeeded

CRS-2673: Attempting to stop‘ora.cluster_interconnect.haip‘ on‘jason1‘

CRS-2677: Stop of‘ora.cluster_interconnect.haip‘ on ‘jason1‘succeeded

CRS-2673: Attempting to stop‘ora.cssd‘ on ‘jason1‘

CRS-2677: Stop of ‘ora.cssd‘on ‘jason1‘ succeeded

CRS-2673: Attempting to stop‘ora.gipcd‘ on ‘jason1‘

CRS-2677: Stop of ‘ora.gipcd‘on ‘jason1‘ succeeded

CRS-2673: Attempting to stop‘ora.gpnpd‘ on ‘jason1‘

CRS-2677: Stop of ‘ora.gpnpd‘on ‘jason1‘ succeeded

CRS-2799: Failed toshut down resource ‘ora.drivers.acfs‘ on ‘jason1‘

CRS-2795: Shutdownof Oracle High Availability Services-managedresources on ‘jason1‘ has failed

CRS-4687: Shutdowncommand has completed with errors.

CRS-4000: CommandStop failed, or completed with errors.

jason1:/u01/app/11.2.0/grid/bin#

查看crs日志发现每次关闭时否有如下日志存在

CRS-10001:07-Jan-16 23:23ACFS-9118: oracleacfs.ko driver in use - cannot unload

证明每次在关闭资源ora.drivers.acfs时,还有程序在使用该模块导致关闭失败。查看MOS内容如下:


SLES: 11.2.0.3  "crsctl stop crs" Fails to Stop ora.drivers.acfs With CRS-2675 (文档  ID 1417294.1)




In this Document

APPLIES TO:
 Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
 SUSE \ UnitedLinux x86-64

SYMPTOMS

11.2.0.3 Grid Infrastructure  on Suse Linux, "crsctl stop crs" or "crsctl stop crs -f"  fails:

·          "crsctl stop crs" or "crsctl stop crs -f"  output

CRS-2675: Stop of  ‘ora.drivers.acfs‘ on ‘racnode1‘ failed
 ..
 CRS-2799: Failed  to shut down resource ‘ora.drivers.acfs‘ on ‘racnode1‘
 CRS-2795: Shutdown of Oracle High Availability Services-managed resources on  ‘racnode1‘ has failed
 CRS-4687: Shutdown command has completed with errors.
 CRS-4000: Command Stop failed, or completed with errors.

·          $GRID_HOME/log/<node>/alert<node>.log

[client(4936)]CRS-10001:01-Feb-12  12:35 ACFS-9290: Waiting for ASM to shutdown.
 [client(5098)]CRS-10001:01-Feb-12 12:35 ACFS-9118: oracleacfs.ko driver in  use - cannot unload.
 [client(5117)]CRS-10001:01-Feb-12 12:35 ACFS-9118: oracleacfs.ko driver in  use - cannot unload.
 
 /log/racnode1/agent/ohasd/orarootagent_root/orarootagent_root.log"

·          "$GRID_HOME/bin/acfsload stop" output

..
 ACFS-9119: oracleacfs driver failed to unload.

·          $GRID_HOME/log/<node>/agent/ohasd/orarootagent_root/orarootagent_root.log

2012-02-15 09:44:43.219:  [    AGFW][2097063696] {0:0:36062} Agent received the message:  RESOURCE_STOP[ora.drivers.acfs 1 1] ID 4099:217493
 2012-02-15 09:44:43.219: [    AGFW][2097063696]  {0:0:36062} Preparing STOP command for: ora.drivers.acfs 1 1
 2012-02-15 09:44:43.219: [    AGFW][2097063696] {0:0:36062}  ora.drivers.acfs 1 1 state changed from: ONLINE to: STOPPING
 2012-02-15 09:44:43.220: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  (:CLSN00108:) clsn_agent::stop {
 2012-02-15 09:44:43.220: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  Arg Value = stop
 2012-02-15 09:44:43.220: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  getOracleHomeAttrib: oracle_home = /ocw/grid
 2012-02-15 09:44:43.220: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  Utils::getCrsHome crsHome /ocw/grid
 ..
 2012-02-15 09:44:43.220: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  Adding Environment Variables _ORA_AGENT_ACTION=TRUE
 2012-02-15 09:44:43.220: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  Adding Environment Variables __IS_HASD_AGENT=
 2012-02-15 09:44:43.220: [ora.drivers.acfs][2094962448] {0:0:36062} [stop] Utils:execCmd  action = 2 flags = 6 ohome = (null) cmdname = acfsload.
 2012-02-15 09:44:43.220: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  getOracleHomeAttrib: oracle_home = /ocw/grid
 2012-02-15 09:44:43.321: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  (:CLSN00010:)ACFS-9290: Waiting for ASM to shutdown.
 2012-02-15 09:44:43.321: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  (:CLSN00010:)
 ..
 2012-02-15 09:44:53.433: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  (:CLSN00010:)ACFS-9118:  oracleacfs.ko driver in use - cannot unload.
 2012-02-15 09:44:53.433: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  (:CLSN00010:)
 2012-02-15 09:44:53.433: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  execCmd ret = 0
 2012-02-15 09:44:53.434: [ora.drivers.acfs][2094962448] {0:0:36062} [stop]  (:CLSN00108:) clsn_agent::stop }
 2012-02-15 09:44:53.434: [    AGFW][2094962448] {0:0:36062}  Command: stop  for resource: ora.drivers.acfs 1 1 completed with status: SUCCESS

CAUSE

The issue was investigated  in bug 13726093 and it‘s closed as OS  issue

SOLUTION

Engage OS vendor to disable software that scans ACFS devices.

The temporary workaround is  to disable the resource if ACFS is not needed. To disable:

# $GRID_HOME/bin/acfsroot disable

Once it‘s disabled and node rebooted, it‘s status will be

ora.registry.acfs
            ONLINE   OFFLINE      racnode1

Note: 

It‘s known that multipath daemon may open /dev/ofsctl:

lsof /dev/ofsctl
 COMMAND PID USER  FD TYPE DEVICE SIZE/OFF NODE NAME
 multipath 5356  root 58r BLK 251,0 0t0 41683748 /dev/ofsctl

Adding ofsctl to multipath blacklist solves the issue.

for findability: rootcrs.pl -unlock ; roothas.pl -unlock

REFERENCES

BUG:13606669 - CRSCTL STOP  CLUSTERWARE FAILS TO STOP, ACFS-9118
 BUG:13613644 - CRSCTL STOP CRS IS  NOT STOPPING THE ORA.DRIVERS.ACFS RESOURCE 11.2.0.3
 BUG:13726093 - CRSCTL STOP CRS  FAILS TO STOP ACFS
 BUG:13736590 - CRS-2799: FAILED TO  SHUT DOWN RESOURCE ‘ORA.DRIVERS.ACFS‘
 BUG:13810374 - FAILS TO STOP ACFS  RESOURCE IN 11.2.0.3

因本实例中使用multipath绑定硬盘作为ASM磁盘,故multipath服务打开/dev/ofsctl设备,所以导致ora.drivers.acfs失败,最终整个关闭命令完成带有错误。根据提示在multipath配置文件中设置

blacklist{

devnode "^sda"

devnode "ofsctl"

}

设置后,再次重试关闭命令问题解决。

时间: 2024-08-01 10:40:51

Installation Oracle11gR2 RAC---常见报错处理的相关文章

cocos2d-js运行游戏常见报错

作为新手,参考官网案例自己再打一遍代码运行游戏时常会出现许多相同报错,有的是由于自己单词拼写错误,或者文件未加载等,在写代码的时候一定要细心细心再细心,下面是我这两天运行出现的一些报错及我的解决方法,多是自己搜索外带摸索总结的,有什么不对的敬请指正,当然,运行过程中也许会有各种问题,我这边也可能只是极少数,后续碰到的会继续更新,希望大家看到并可以解决的也可以共享下. 运行游戏常见报错: 1.loader for [null] not exists! 尝试方法:极有可能是加载什么类型的资源没有后缀

android开发_git操作中常见报错及解决办法

Focus on technology, enjoy life!-- QQ:804212028 浏览链接:http://blog.csdn.net/y18334702058/article/details/44624305 主题:git操作中常见报错 - 如果输入$ git remote add origin [email protected]:xxx(github帐号名)/yyy(项目名).git 提示出错信息:fatal: remote origin already exists. 解决办法

web报表工具FineReport使用中遇到的常见报错及解决办法(一)

FineReport使用中遇到的常见报错及解决办法(一) 这里写点抛砖引玉,希望大家能把自己整理的问题及解决方法晾出来,Mark一下,利人利己. 出现问题先搜一下文档上有没有,再看看度娘有没有,再看看论坛有没有.有报错要看日志.下面简单罗列下常见的问题,大多文档上都有提到的. 1.address pool is full: 含义:地址池满,连接数超过并发数上限. 解决办法: 若在FineReport的连接池属性的设置中,已将最大连接数设置得过大,还出现如上的报错,此时通常就是数据库进程(proc

java报表工具FineReport使用中遇到的常见报错及解决办法(一)

FineReport使用中遇到的常见报错及解决办法(一) 这里写点抛砖引玉,希望大家能把自己整理的问题及解决方法晾出来,Mark一下,利人利己. 出现问题先搜一下文档上有没有,再看看度娘有没有,再看看论坛有没有.有报错要看日志.下面简单罗列下常见的问题,大多文档上都有提到的. 1.address pool is full: 含义:地址池满,连接数超过并发数上限. 解决办法: 若在FineReport的连接池属性的设置中,已将最大连接数设置得过大,还出现如上的报错,此时通常就是数据库进程(proc

使用iis7.5搭建ASP网站常见报错问题处理

iis7.5 解析 ASP 出错主要有三类: 1. 权限问题 2. 程序问题 3. 应用池问题 1. 权限问题: 如果访问网站后有典型的无权查看报错提醒, 那么重新配置相关用户的权限即可, 最简单的办法是直接添加一 Everyone 用户, 给 Everyone 加读取权限即可, 此处操作简单, 不多赘述, 需要注意的是, 500报错也可能是权限问题, 请留意排错, 如图所见,                  2. 程序问题: asp程序不能正常解析, 此处主要问题来源有: a. asp未启用

rabbitmq编译部署以及常见报错

(一)源码安装Erlang(1)下载erlang源码包wget http://www.erlang.org/download/otp_src_R13B04.tar.gz(2)解压缩erlang源码包tar -zxvf otp_src_R13B04.tar.gz(3)安装./configure??--prefix=/usr/local/erlang./make./make install如果抛出如下错误No curses library functions found请先安装?curses lib

Zabbix 常见报错

Zabbix 常见报错 一.zabbix web上出现Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer 1. Debug 过程: 1.1 在zabbix server 上使用get 命令时出现:1.2 查看zabbix_agent 日志出现failed to accept an incoming connection: connection from "28.44.20.129&q

ssh远程主机 常见报错处理

##ssh远程主机 常见报错处理 ###Q1:###Warning: Permanently added '192.168.3.201' (ECDSA) to the list of known hosts. ###Permission denied (publickey,gssapi-keyex,gssapi-with-mic). ####在远程主机上远行 sed -i 's/^PasswordAuthentication.*/PasswordAuthentication yes/g' /et

Android Studio常见报错及处理办法

在Android Studio上点了update,系统自动升级,自动重启Android Studio后,以前的项目Gradle正常编译: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user

Xcode常见报错及解决办法

报错一: 在iOS7的真机运行时,弹出错误:App installation failed. There was an internal API error. 如图 解决办法: 在Xcode -> Target -> Build Setting 下的Packaging部分,将Product Name 改为英文名.重新运行project,即可正常运行. 报错二:真机运行时,弹出报错信息:Could not find Developer Disk Image 原因:手机的版本高于Xcode中SDK