RAC CSS diagwait参数的作用和设置方法

diagwait 参数的作用延迟节点重启的时间值,以便RAC后台进程写出必要的诊断信息到各自的日志中。

Delay the node reboot for a short time to write all diagnostic messages to the logs.

Doesn’t increase of probability of data corruption

Setup steps: shutdown CRS

crsctl set css diagwait 13 –force
restart CRS
Set diagwait to 13
Will set the oprocd margin to 10 seconds instead of 500ms
Will prevent unneccesary node evictions under high load
Is a general recommendation for servers under high load, not specific to Oracle VM

Please review Metalink note 559365.1 on how to set this

If diagwait > reboottime then OPROCD_DEFAULT_MARGIN := (diagwait – reboottime) * 1000

设置css diagwait的步骤:

1. crsctl stop crs
#<CRS_HOME>/bin/oprocd stop

<2>. Ensure that Clusterware stack is down on all nodes by executing
#ps -ef |egrep “crsd.bin|ocssd.bin|evmd.bin|oprocd”
This should return no processes. If there are clusterware processes running and you proceed to the next step, you will corrupt your OCR. Do
not continue until the clusterware processes are down on all the nodes of the cluster.

<3>. From one node of the cluster, change the value of the “diagwait” parameter to 13 seconds by issuing the command as root:
#crsctl set css diagwait 13 -force

<4>. Check if diagwait is set successfully by executing. the following command. The command should return 13. If diagwait is not set, the

following message will be returned “Configuration parameter diagwait is not defined”
#crsctl get css diagwait


<5>. Restart the Oracle Clusterware on all the nodes by executing:
#crsctl start crs


<6>. Validate that the node is running by executing:
#crsctl check crs


crsctl unset css diagwait






One response to “RAC CSS diagwait参数的作用和设置方法”

  1. Ask_Maclean_liu_Oracle Avatar

     OSWatcher系统资源监控工具介绍OSWatcher(OS Watcher Black Box)是Oracle标准的Support工具,该工具通过一系列的SHELL脚本来收集多方面的OS信息,包括CPU、内存、网络等。OSWatcher不会给系统带来较重的性能负载,OSWatcher本质上是调用最常见的OS命令如ps、vmstat、netstat。通过大量广泛的OSW使用,已经证明了OSW是一套安全、可靠的资源监控工具。更多OSW的信息可以参考以下Metalink文档:OSW 用户手册:OSWatcher Black Box User Guide.What Is The OSWATCHER Black Box Effect On The Server Performance And What Are The Alternative Commands? [ID 946107.1]中文:OSWatcher Black Box: How to improve performance and monitor your system automatically (Mandarin) [ID 1492202.1]OSWatcher Black Box Analyzer User Guide [ID 461053.1] 设置CSSD TRACE LEVEL为2 设置CSSD TRACE LEVEL为2的目的是为了让RAC cssd进程生成更详细的TRACE日志以便于诊断问题,该TRACE LEVEL是无害的,不会造成性能影响。#/bin/crsctl debug log css CSSD:2 设置VIP TRACE LEVEL为5设置VIP TRACE LEVLE为5的目的是让VIP资源生成更详细的TRACE日志以便于诊断该问题,该TRACE LEVEL是无害的,也不会造成性能影响。设置方法: $CRS_HOME/bin/crsctl debug log res ora.pdcmdb04.vip:5

Leave a Reply

Your email address will not be published. Required fields are marked *