Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Steps To Set RAC Debug Levels For Troubleshooting Issues

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Author:

Date: Oct 21st-2014


Title: Steps to set RAC debug levels for troubleshooting issues.

Document Change Control.


Revisio
Date
Author
n

Description of change

1.0

Document Creation.

2014-10-21

Note: Changing default log levels should only be done when requested by oracle
support or when you need to troubleshoot an issue and should be set to the default
level once the trouble shooting cycle is completed.

Step 1
Here are RAC resources that can be debugged with log levels .

{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl get log -h


Usage:
crsctl get {log|trace} {mdns|gpnp|css|crf|crs|ctss|evm|gipc} "<name1>,..."
where
mdns
multicast Domain Name Server
gpnp
Grid Plug-n-Play Service
css
Cluster Synchronization Services
crf
Cluster Health Monitor
crs
Cluster Ready Services
ctss
Cluster Time Synchronization Service
evm
EventManager
gipc
Grid Interprocess Communications
<name1>, ... Module names ("all" for all names)
crsctl get log res <resname>
where
<resname> Resource name
{NODE1:+ASM1} $
Here is how to find resource modules that can be debugged.

{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl lsmodules css


List CSSD Debug Module: BCCM
List CSSD Debug Module: CLSF
List CSSD Debug Module: CLSFA
List CSSD Debug Module: CLSINET
List CSSD Debug Module: CSSD
List CSSD Debug Module: GIPCBCCM
List CSSD Debug Module: GIPCCM
List CSSD Debug Module: GIPCGM
List CSSD Debug Module: GIPCNM
List CSSD Debug Module: GPNP
List CSSD Debug Module: OLR
List CSSD Debug Module: SKGFD
{NODE1:+ASM1} $
{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl lsmodules crs
List CRSD Debug Module: AGENT
List CRSD Debug Module: AGFW
List CRSD Debug Module: CLSCEVT
List CRSD Debug Module: CLSFRAME
List CRSD Debug Module: CLSINET
List CRSD Debug Module: CLSO
List CRSD Debug Module: CLSVER
List CRSD Debug Module: CLUCLS
List CRSD Debug Module: COMMCRS
List CRSD Debug Module: COMMNS
List CRSD Debug Module: CRSAPP
List CRSD Debug Module: CRSCCL
List CRSD Debug Module: CRSCEVT
List CRSD Debug Module: CRSCOMM
List CRSD Debug Module: CRSD
List CRSD Debug Module: CRSEVT
List CRSD Debug Module: CRSMAIN
List CRSD Debug Module: CRSOCR
List CRSD Debug Module: CRSPE
List CRSD Debug Module: CRSPLACE
List CRSD Debug Module: CRSRES
List CRSD Debug Module: CRSRPT
List CRSD Debug Module: CRSRTI
List CRSD Debug Module: CRSSE
List CRSD Debug Module: CRSSEC
List CRSD Debug Module: CRSTIMER
List CRSD Debug Module: CRSUI
List CRSD Debug Module: CSSCLNT
List CRSD Debug Module: OCRAPI
List CRSD Debug Module: OCRASM
List CRSD Debug Module: OCRCAC
List CRSD Debug Module: OCRCLI
List CRSD Debug Module: OCRMAS
List CRSD Debug Module: OCRMSG
List CRSD Debug Module: OCROSD
List CRSD Debug Module: OCRRAW
List CRSD Debug Module: OCRSRV
List CRSD Debug Module: OCRUTL
List CRSD Debug Module: SuiteTes
List CRSD Debug Module: UiServer

Step 2
Here is how to find current log levels

{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl get log css all


Get CSSD Module: BCCM Log Level: 2
Get CSSD Module: CLSF Log Level: 0
Get CSSD Module: CLSFA Log Level: 3
Get CSSD Module: CLSINET Log Level: 0
Get CSSD Module: CSSD Log Level: 2
Get CSSD Module: GIPCBCCM Log Level: 2
Get CSSD Module: GIPCCM Log Level: 2
Get CSSD Module: GIPCGM Log Level: 2
Get CSSD Module: GIPCNM Log Level: 2
Get CSSD Module: GPNP Log Level: 1
Get CSSD Module: OLR Log Level: 0
Get CSSD Module: SKGFD Log Level: 0
{NODE1:+ASM1} $
{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl get log crs all
Get CRSD Module: AGENT Log Level: 1
Get CRSD Module: AGFW Log Level: 0
Get CRSD Module: CLSCEVT Log Level: 0
Get CRSD Module: CLSFRAME Log Level: 0
Get CRSD Module: CLSINET Log Level: 0
Get CRSD Module: CLSO Log Level: 0
Get CRSD Module: CLSVER Log Level: 0
Get CRSD Module: CLUCLS Log Level: 0
Get CRSD Module: COMMCRS Log Level: 0
Get CRSD Module: COMMNS Log Level: 0
Get CRSD Module: CRSAPP Log Level: 0
Get CRSD Module: CRSCCL Log Level: 3
Get CRSD Module: CRSCEVT Log Level: 0
Get CRSD Module: CRSCOMM Log Level: 0
Get CRSD Module: CRSD Log Level: 0
Get CRSD Module: CRSEVT Log Level: 0
Get CRSD Module: CRSMAIN Log Level: 0
Get CRSD Module: CRSOCR Log Level: 0
Get CRSD Module: CRSPE Log Level: 0
Get CRSD Module: CRSPLACE Log Level: 0
Get CRSD Module: CRSRES Log Level: 5
Get CRSD Module: CRSRPT Log Level: 0
Get CRSD Module: CRSRTI Log Level: 0
Get CRSD Module: CRSSE Log Level: 0
Get CRSD Module: CRSSEC Log Level: 0
Get CRSD Module: CRSTIMER Log Level: 0
Get CRSD Module: CRSUI Log Level: 0
Get CRSD Module: CSSCLNT Log Level: 0
Get CRSD Module: OCRAPI Log Level: 1
Get CRSD Module: OCRASM Log Level: 1
Get CRSD Module: OCRCAC Log Level: 1
Get CRSD Module: OCRCLI Log Level: 1
Get CRSD Module: OCRMAS Log Level: 1
Get CRSD Module: OCRMSG Log Level: 1
Get CRSD Module: OCROSD Log Level: 1
Get CRSD Module: OCRRAW Log Level: 1
Get CRSD Module: OCRSRV Log Level: 1
Get CRSD Module: OCRUTL Log Level: 1
Get CRSD Module: SuiteTes Log Level: 1
Get CRSD Module: UiServer Log Level: 0
{NODE1:+ASM1} $

Step 3
Here is how to set a log level or change the logging level.
Note must be done on all cluster nodes

{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl set log -h


Usage:
crsctl set {log|trace} {mdns|gpnp|css|crf|crs|ctss|evm|gipc} "<name1>=<lvl1>,..."
where
mdns
multicast Domain Name Server
gpnp
Grid Plug-n-Play Service
css
Cluster Synchronization Services
crf
Cluster Health Monitor
crs
Cluster Ready Services
ctss
Cluster Time Synchronization Service
evm
EventManager
gipc
Grid Interprocess Communications
<name1>, ... Module names ("all" for all names)
<lvl1>, ... Module log/trace levels
crsctl set log res <resname>=<lvl>
where
<resname> Resource name
<lvl>
Agent log levels
Syntax:
$ crsctl set log {module} "component_name=debug_level"
$ crsctl set log res "resourcename=debug_level"
Example:
$ crsctl set log crs crsmain=3
$ crsctl set log crs crsmain=3,crsevt=4
--- let you set different log levels to multiple modules
$ crsctl set log crs all=5
$ crsctl set log res ora.rondb.db:5

{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl set log crs CRSCCL=2


Set CRSD Module: CRSCCL Log Level: 2
To verify:
{NODE1:+ASM1} $ crsctl stat res ora.crsd -init -f |grep LEVEL
DAEMON_LOGGING_LEVELS=AGENT=1,AGFW=0,CLSCEVT=0,CLSFRAME=0,CLSINET=0,CLSO=0,CLS
VER=0,CLUCLS=0,COMMCRS=0,COMMNS=0,CRSAPP=0,CRSCCL=2,CRSCEVT=0,CRSCOMM=0,CRSD=0
,CRSEVT=0,CRSMAIN=0,CRSOCR=0,CRSPE=0,CRSPLACE=0,CRSRES=5,CRSRPT=0,CRSRTI=0,CRSSE=0,
CRSSEC=0,CRSTIMER=0,CRSUI=0,CSSCLNT=0,OCRAPI=1,OCRASM=1,OCRCAC=1,OCRCLI=1,OCRMAS
=1,OCRMSG=1,OCROSD=1,OCRRAW=1,OCRSRV=1,OCRUTL=1,SuiteTes=1,UiServer=0
DAEMON_TRACING_LEVELS=AGENT=0,AGFW=0,CLSFRAME=0,CLSVER=0,CLUCLS=0,COMMCRS=0,
COMMNS=0,CRSAPP=0,CRSCCL=0,CRSCEVT=0,CRSCOMM=0,CRSD=0,CRSEVT=0,CRSMAIN=0,CRSOC
R=0,CRSPE=0,CRSPLACE=0,CRSRES=0,CRSRPT=0,CRSRTI=0,CRSSE=0,CRSSEC=0,CRSTIMER=0,CRSUI=
0,CSSCLNT=0,SuiteTes=0,UiServer=0,OCRAPI=1,OCRCLI=1,OCRSRV=1,OCRMAS=1,OCRMSG=1,OCRCAC
=1,OCRRAW=1,OCRUTL=1,OCROSD=1,OCRASM=1,CLSINET=0,CLSCEVT=0,CLSO=0
LOGGING_LEVEL=1
{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl set log crs CRSCCL=2

{NODE2:+ASM2} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl set log crs CRSCCL=2


Set CRSD Module: CRSCCL Log Level: 2
{NODE2:+ASM2} $ crsctl stat res ora.crsd -init -f |grep LEVEL

Step 4
To disable tracing on all cluster nodes.
{NODE2:+ASM2} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl set log crs CRSCCL=0
Set CRSD Module: CRSCCL Log Level: 0

{NODE2:+ASM2} $ crsctl stat res ora.crsd -init -f |grep LEVEL


DAEMON_LOGGING_LEVELS=AGENT=1,AGFW=0,CLSCEVT=0,CLSFRAME=0,CLSINET=0,CLSO=0,CLS
VER=0,CLUCLS=0,COMMCRS=0,COMMNS=0,CRSAPP=0,CRSCCL=0,CRSCEVT=0,CRSCOMM=0,CRSD=0
,CRSEVT=0,CRSMAIN=0,CRSOCR=0,CRSPE=0,CRSPLACE=0,CRSRES=5,CRSRPT=0,CRSRTI=0,CRSSE=0,
CRSSEC=0,CRSTIMER=0,CRSUI=0,CSSCLNT=0,OCRAPI=1,OCRASM=1,OCRCAC=1,OCRCLI=1,OCRMAS
=1,OCRMSG=1,OCROSD=1,OCRRAW=1,OCRSRV=1,OCRUTL=1,SuiteTes=1,UiServer=0
DAEMON_TRACING_LEVELS=AGENT=0,AGFW=0,CLSFRAME=0,CLSVER=0,CLUCLS=0,COMMCRS=0,
COMMNS=0,CRSAPP=0,CRSCCL=0,CRSCEVT=0,CRSCOMM=0,CRSD=0,CRSEVT=0,CRSMAIN=0,CRSOC
R=0,CRSPE=0,CRSPLACE=0,CRSRES=0,CRSRPT=0,CRSRTI=0,CRSSE=0,CRSSEC=0,CRSTIMER=0,CRSUI=
0,CSSCLNT=0,SuiteTes=0,UiServer=0,OCRAPI=1,OCRCLI=1,OCRSRV=1,OCRMAS=1,OCRMSG=1,OCRCAC
=1,OCRRAW=1,OCRUTL=1,OCROSD=1,OCRASM=1,CLSINET=0,CLSCEVT=0,CLSO=0
LOGGING_LEVEL=1
{NODE2:+ASM2} $

{NODE1:+ASM1} $ sudo /oracle/grid/12.1.0.1/grid/bin/crsctl set log crs CRSCCL=0


Set CRSD Module: CRSCCL Log Level: 0

{NODE1:+ASM1} $ crsctl stat res ora.crsd -init -f |grep LEVEL


DAEMON_LOGGING_LEVELS=AGENT=1,AGFW=0,CLSCEVT=0,CLSFRAME=0,CLSINET=0,CLSO=0,CLS
VER=0,CLUCLS=0,COMMCRS=0,COMMNS=0,CRSAPP=0,CRSCCL=0,CRSCEVT=0,CRSCOMM=0,CRSD=0
,CRSEVT=0,CRSMAIN=0,CRSOCR=0,CRSPE=0,CRSPLACE=0,CRSRES=5,CRSRPT=0,CRSRTI=0,CRSSE=0,
CRSSEC=0,CRSTIMER=0,CRSUI=0,CSSCLNT=0,OCRAPI=1,OCRASM=1,OCRCAC=1,OCRCLI=1,OCRMAS
=1,OCRMSG=1,OCROSD=1,OCRRAW=1,OCRSRV=1,OCRUTL=1,SuiteTes=1,UiServer=0
DAEMON_TRACING_LEVELS=AGENT=0,AGFW=0,CLSFRAME=0,CLSVER=0,CLUCLS=0,COMMCRS=0,
COMMNS=0,CRSAPP=0,CRSCCL=0,CRSCEVT=0,CRSCOMM=0,CRSD=0,CRSEVT=0,CRSMAIN=0,CRSOC
R=0,CRSPE=0,CRSPLACE=0,CRSRES=0,CRSRPT=0,CRSRTI=0,CRSSE=0,CRSSEC=0,CRSTIMER=0,CRSUI=
0,CSSCLNT=0,SuiteTes=0,UiServer=0,OCRAPI=1,OCRCLI=1,OCRSRV=1,OCRMAS=1,OCRMSG=1,OCRCAC
=1,OCRRAW=1,OCRUTL=1,OCROSD=1,OCRASM=1,CLSINET=0,CLSCEVT=0,CLSO=0
LOGGING_LEVEL=1
{NODE1:+ASM1} $

You might also like