Friday, November 2, 2012

Component Level Debugging


Component Level Debugging
You can use crsctl set log and crsctl set trace commands as the root user to enable dynamic debugging for the various Oracle Clusterware modules.
  • Enabling Debugging for Oracle Clusterware Modules
  • Creating an Initialization File to Contain the Debugging Level
Enabling Debugging for Oracle Clusterware Modules
You can enable debugging for Oracle Clusterware modules and their components, and for resources, by setting environment variables or by running crsctl set log commands, using the following syntax:
crsctl set {log | trace} module_name "component:debugging_level
[,component:debugging_level][,...]"
Run the crsctl set command as the root user, and supply the following information:
  • module_name: The name of one of the following modules:

mdns: Multicast domain name server
gpnp: Grid Plug and Play service
css: Cluster Synchronization Services
crf: Cluster Health Monitor
crs: Cluster Ready Services
ctss: Cluster Time Synchronization Service
evm: Event Manager
gipc: Grid Interprocess Communication
  • component: The name of a component for one of the modules. See Table E-41 for a list of all of the components.
  • debugging_level: A number from 1 to 5 to indicate the level of detail you want the debug command to return, where 1 is the least amount of debugging output and 5 provides the most detailed debugging output. The default debugging level is 2.
You can dynamically change the debugging level in the crsctl command
The following commands show examples of how to enable debugging for the various modules:
  • To enable debugging for Oracle Clusterware:
·         crsctl set log crs "CRSRTI:1,CRSCOMM:2"
  • To enable debugging for OCR:
·         crsctl set log crs "CRSRTI:1,CRSCOMM:2,OCRSRV:4"
  • To enable debugging for EVM:
·         crsctl set log evm "EVMCOMM:1"
  • To enable debugging for resources
·         crsctl set log res "resname:1"
To obtain a list of components that can be used for debugging, run the crsctl lsmodules command, as follows:
crsctl lsmodules {mdns | gpnp | css | crf | crs | ctss | evm | gipc}
Note
You do not have to be the root user to run the crsctl lsmodulues command.


No comments:

Post a Comment