Troubleshooting 10g and 11.1 Clusterware Reboots_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 4609 | 回复: 0   主题: Troubleshooting 10g and 11.1 Clusterware Reboots        下一篇 
jinquan
注册用户
等级:少尉
经验:390
发帖:89
精华:0
注册:2012-3-1
状态:离线
发送短消息息给jinquan 加好友    发送短消息息给jinquan 发消息
发表于: IP:您无权察看 2012-3-5 10:02:23 | [全部帖] [楼主帖] 楼主

Troubleshooting 10g and 11.1 Clusterware Reboots
Applies to:
Oracle Server - Enterprise Edition
Information in this document applies to any platform.
Purpose
This document is intended for DBA's and support analysts experiencing 10g or 11.1 Clusterware Reboots.  For 11.2 and above, see Note: 1050693.1


 最新检查时间

December 3, 2008


用户使用说明

解决问题向导提供排除一个详细问题的帮助,当可能的话,诊断工具被包含在文档只能怪帮助解决故障。

解决故障的详细内容

10g or 11.1 RAC: TROUBLESHOOTING CRS REBOOTS
-- For 11.2 and above, see Note: 1050693.1


 如果有一个ocssd.bin 故障,oprocd守护进程会解决日常问题,或者一些其他致命问题,节点就会在RAC集群中重启。这种功能应用在I/O攻击来保证来自有才能的可和的I/O写入能非常清晰避免潜在的网络分离事件中的错误脚本,节点挂起,或者一些其他重要事件。

1.0 - PROCESS ROLES FOR REBOOTS

OCSSD (aka CSS daemon) – 本进程是由init.cssd大量生产,运行在集群环境下旨在通过初始化脚本和节点消除节点,OCSSD的主要工作是节点间健康管理和RDBMS实例结束发现点,它是作为Oracle用户运行的。

附加输出

oracle 686 0.0 0.23207216608 ? S 11:42:42 0:12 /oracle/10g/crs/bin/ocssd.bin
INIT.CSSD - In a normal environment, init spawns init.cssd, which in turn spawns
OCSSD as a child. If ocssd dies or is killed, the node kill functionality of the
init script will kill the node. If the script is killed, its ocssd survives and
continues operating. However init has been instructed to respawn init.cssd via
inittab. When it does so, the second init.cssd will attempt to start its own ocssd.
That ocssd starts up, finds that its endpoint is owned by the first ocssd, fails,
and then the 2nd init.cssd kills the node.
PS Output:
root 635 0.0 0.0 1120 840 ? S 11:41:41 0:00 /bin/sh /etc/init.d/init.cssd fatal
OPROCD - This process is spawned in any non-vendor clusterware environment, except
on Windows where Oracle uses a kernel driver to perform the same actions and Linux
prior to version 10.2.0.4. If oprocd detects problems, it will kill a node via C
code. It is spawned in init.cssd and runs as root. This daemon is used to detect
hardware and driver freezes on the machine. If a machine were frozen for long enough
that the other nodes evicted it from the cluster, it needs to kill itself to prevent
any IO from getting reissued to the disk after the rest of the cluster has remastered
locks."
PS Output:
root 684 0.0 0.0 2240 968 ? S 11:42:42 0:00 /oracle/10g/crs/bin/oprocd start -t 1000 -m 50
OCLSOMON (10.2.0.2 and above) - This process monitors the CSS daemon for hangs or
scheduling issues and can reboot a node if there is a perceived hang.
2.0 - DETERMINING WHICH PROCESS IS RESPONSIBLE FOR A REBOOT
* Messages file locations:
Sun: /var/adm/messages
HP-UX: /var/adm/syslog/syslog.log
Tru64: /var/adm/messages
Linux: /var/log/messages
IBM: /bin/errpt -a > messages.out
** CSS log locations:
11.1 and 10.2: <CRS_HOME>/log/<node name>/cssd
10.1: <CRS_HOME>/css/log
*** Oprocd log locations:
In /etc/oracle/oprocd or /var/opt/oracle/oprocd depending on version/platform.
Note that oprocd only runs when no vendor clusterware is running or on Linux > 10.2.0.4
3.0 - TROUBLESHOOTING OCSSD REBOOTS


如果你已经遭遇OCSSD重启, 检查以下3.1部分的共同原因

如果问题通过检查共同原因没有决定, 重新检查和从3.3部分收集数据.

3.1 - COMMON CAUSES OF OCSSD REBOOTS

- Network failure or latency between nodes. It would take at least 30 consecutive
missed checkins to cause a reboot, where heartbeats are issued once per second.
Example of missed checkins in the CSS log:
WARNING: clssnmPollingThread: node <node> (1) at 50% heartbeat fatal, eviction in 29.100 seconds
WARNING: clssnmPollingThread: node <node> (1) at 75% heartbeat fatal, eviction in 14.960 seconds
WARNING: clssnmPollingThread: node <node> (1) at 75% heartbeat fatal, eviction in 13.950 seconds
The first thing to do is find out if the missed checkins ARE the problem or are a
result of the node going down due to other reasons. Check the messages file to see
what exact time the node went down and compare it to the time of the missed checkins.
- If the messages file reboot time < missed checkin time then the node eviction was
likely not due to these missed checkins.
- If the messages file reboot time > missed checkin time then the node eviction was
likely a result of the missed checkins.
- Problems writing to or reading from the CSS voting disk.
Example of a voting disk problem in the CSS log:
ERROR: clssnmDiskPingMonitorThread: voting device access hanging (160008 miliseconds)
- Lack of CPU resources. There are some situations which will appear to be missed
heartbeat issues, however turn out to be caused by a user running a high
sustained load average. When a machine gets too heavily loaded, the scheduling
reliability can be bad. This could cause CSS to not get scheduled in time and
thus CSS cannot get its work done. If this happens, the node is declared
not-viable for cluster work and is evicted.
- A problem with the executables (for example, removing CRS Home files)
- Misconfiguration of CRS. Possible misconfigurations:
- Wrong network selected as the private network for CRS (confirm with CSS log,
/etc/hosts, and ifconfig output). Make sure it is not the public or VIP
address. Look in the CSS log for strings like...
clsc_listen: (*) Listening on
(ADDRESS=(PROTOCOL=tcp)(HOST=dlsun2046)(PORT=61196))
- Putting the CSS vote file on a Netapp that's shared over some kind of public
network or otherwise excessively loaded/unreliable network. If this is the
case, you are likely to see the following message in the CSS logfile:
ERROR: clssnmDiskPingThread(): Large disk IO timeout * seconds.
If you ever see this error, then it's important to investigate why the disk
subsystem is unresponsive.
See section 3.2 for information on how to correct common misconfiguration
problems.
- Killing the "init.cssd fatal" process or "ocssd" process.
- An unexpected failure of the OCSSD process, this can be caused by any of the
above issues.
- An Oracle bug. Known bugs that can cause CSS reboots:
Note 264699.1 - CSS Fails to Flush Writes After Installing 10.1.0.2 CRS on Linux with OCFS
Workaround: Put OCR and CSS Voting files on raw devices
Fixed in OCFS 1.0.11 and above.
Bug 3942568 - A deadlock can occur between 2 threads of the CSS daemon process.
Fixed in 10.1.0.4 and above.
SOLARIS ONLY: See these bugids that fixed the problem (in Solaris 9; the fixes were
backported to Solaris 8 Update 6):
Bug 4308370 cond_timedwait(), sigtimedwait(), poll() and /proc time out too soon
Bug 4391799 Fix for BugID 4308370 causes timeout failures when system time is reset
3.2 - FILES TO REVIEW AND GATHER FOR OCSSD REBOOTS
If logging a service request, please provide ALL of the following files to Oracle
Support if possible:
- All the files in the following directories from all nodes.
For 10.2 and above, all files under:
<CRS_HOME>/log
Recommended method for gathering these for each node would be to run the
diagcollection.pl script.
For 10.1:
<CRS_HOME>/crs/log
<CRS_HOME>/crs/init
<CRS_HOME>/css/log
<CRS_HOME>/css/init
<CRS_HOME>/evm/log
<CRS_HOME>/evm/init
<CRS_HOME>/srvm/log
Recommended method for gathering these for each node:
cd <CRS_HOME>
tar cf crs.tar crs/init crs/log css/init css/log evm/init evm/log srvm/log
- Messages or Syslog from all nodes from the time of the problem:
Sun: /var/adm/messages
HP-UX: /var/adm/syslog/syslog.log
Tru64: /var/adm/messages
Linux: /var/log/messages
IBM: /bin/errpt -a > messages.out
- If a core files was written it would be useful to obtain a stack trace of the
core file using Note 1812.1 "TECH Getting a Stack Trace from a CORE file".
Core files are usually writtin in one of the following directories:
<CRS_HOME>/crs/init
<CRS_HOME>/css/init
<CRS_HOME>/evm/init
You should also check all threads of the core file and get a stack trace for each.
Note 118252.1 has information on gathering multiple threads.
- OCR dump file - To get this cd to <CRS_HOME>/bin as the root user and issue
"ocrdump <unique filename>". This will generate two files (ocrdump.log and the
a dump file with the name given for it).
- 'opatch lsinventory -detail' output for the CRS home
- Back up the scls_scr directory, inittab, and hosts file for analysis with:
Sun, HP-UX, HP Tru64:
cd /
tar cf /var/backup/oraclecrs.tar var/opt/oracle/scls_scr etc/hosts etc/inittab
Linux, IBM-AIX:
cd /
tar cf /var/backup/oraclecrs.tar etc/oracle/scls_scr etc/hosts etc/inittab
- Ifconfig output from each node (ifconfig -a on unix platforms).
@ These can be useful in determining whether the user has set up the private
@ interconnect names to resolve to the same IP on all nodes. They can be useful
@ in determining whether someone is using their public IP as their private
@ interconnect address. In some cases it may also be useful to get the output
@ of nslookup for each private interconnect name. If some layer is attempting to
@ connect across the private interconnect and there is a possibility of getting
@ different results from /etc/hosts and from the nameserver, it could cause quite
@ a bit of confusion.
@ If it looks like there are network issues, asking for a detailed map of
@ their network wiring is pretty appropriate, and can be handy.
- It would also be useful to get the following from each node leading up to the time
of the reboot:
- netstat -is (or equivelant)
- iostat -x (or equivelant)
- vmstat (or equivelant)
- ping -s (or equivelant) output of the private network


有一个叫系统监视器的工具帮助收集信息, 这个工具将会丢掉网络数据结构, 虚拟数据结构, 操作系统数据结构, 在一个间隔时间内其他输出and 存储一个数字x 几个小时归档数据.

. For more information about this tool see Note 301137.1.
4.0 - TROUBLESHOOTING OPROCD REBOOTS


如果你已经遭遇OPROCD重启, 检查以下4.1部分的共同原因

如果问题通过检查共同原因没有决定, 重新检查和从4.2部分收集数据

4.1 - COMMON CAUSES OF OPROCD REBOOTS

- A problem detected by the OPROCD process. This can be caused by 4 things:
1) An OS scheduler problem.
2) The OS is getting locked up in a driver or hardware.
3) Excessive amounts of load on the machine, thus preventing the scheduler from
behaving reasonably.
4) An Oracle bug.
OPROCD Bugs Known to Cause Reboots:
Bug 5015469 - OPROCD may reboot the node whenever the system date is moved
backwards.
Fixed in 10.2.0.3+
Bug 4206159 - Oprocd is prone to time regression due to current API used (AIX only)
Fixed in 10.1.0.3 + One off patch for Bug 4206159.
Diagnostic Fixes (VERY NECESSARY IN MOST CASES):
Bug 5137401 - Oprocd logfile is cleared after a reboot
Fixed in 10.2.0.4+
Bug 5037858 - Increase the warning levels if a reboot is approaching
Fixed in 10.2.0.3+
4.2 - FILES TO REVIEW AND GATHER FOR OPROCD REBOOTS
If logging a service request, please provide ALL of the following files to Oracle
Support if possible:
- Oprocd logs in /etc/oracle/oprocd or /var/opt/oracle/oprocd depending on version/platform.
- All the files in the following directories from all nodes.
For 10.2 and above, all files under:
<CRS_HOME>/log
Recommended method for gathering these for each node would be to run the
diagcollection.pl script.
For 10.1:
<CRS_HOME>/crs/log
<CRS_HOME>/crs/init
<CRS_HOME>/css/log
<CRS_HOME>/css/init
<CRS_HOME>/evm/log
<CRS_HOME>/evm/init
<CRS_HOME>/srvm/log
Recommended method for gathering these for each node:
cd <CRS_HOME>
tar cf crs.tar crs/init crs/log css/init css/log evm/init evm/log srvm/log
- Messages or Syslog from all nodes from the time of the problem:
Sun: /var/adm/messages
HP-UX: /var/adm/syslog/syslog.log
Tru64: /var/adm/messages
Linux: /var/log/messages
IBM: /bin/errpt -a > messages.out
- 'opatch lsinventory -detail' output for the CRS home
- It would also be useful to get the following from each node leading up to the time
of the reboot:
- netstat -is (or equivelant)
- iostat -x (or equivelant)
- vmstat (or equivelant)


有一个叫系统监视器的工具帮助收集信息, 这个工具将会丢掉网络数据结构, 虚拟数据结构, 操作系统数据结构, 在一个间隔时间内其他输出and 存储一个数字x 几个小时归档数据.

For more information about this tool see Note 301137.1.
5.0 - TROUBLESHOOTING OCLSOMON REBOOTS


如果你已经遭遇OCLSOMON重启, 检查以下5.1部分的共同原因

如果问题通过检查共同原因没有决定, 重新检查和从5.2部分收集数据。

5.1 - COMMON CAUSES OF OCLSOMON REBOOTS

- CLSOMON进程的问题被解决,. 这可以由四件事情引起:

1) A thread(s) within the CSS daemon hung.

2) An OS scheduler problem.

3) Excessive amounts of load on the machine, thus preventing the scheduler from

behaving reasonably.
4) An Oracle bug.
5.2 - FILES TO REVIEW AND GATHER FOR OCLSOMON REBOOTS


如果记录一个服务的请求,如果可以的话,请提供所有以下文件到Oracle支持

- All the files in the following directories from all nodes. For a description of
these directories, see Note 259301.1 :
For 10.2, all files under:
<CRS_HOME>/log
Recommended method for gathering these for each node would be to run the
diagcollection.pl script.
- Messages or Syslog from all nodes from the time of the problem:
Sun: /var/adm/messages
HP-UX: /var/adm/syslog/syslog.log
Tru64: /var/adm/messages
Linux: /var/log/messages
IBM: /bin/errpt -a > messages.out
- 'opatch lsinventory -detail' output for the CRS home


- 从启动时间之前的每一个节点获取的以下信息非常有用

- netstat -is (or equivelant)
- iostat -x (or equivelant)
- vmstat (or equivelant)


有一个叫系统监视器的工具帮助收集信息, 这个工具将会丢掉网络数据结构, 虚拟数据结构, 操作系统数据结构, 在一个间隔时间内其他输出and 存储一个数字x 几个小时归档数据




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论