Wednesday, May 5, 2010

How to debug racgvip ( or a resource in a rac )

I have problem with  VIP start   (santaro,pandora  are two 

santaro@cbdst:/cbdsthome/crshome/log/santaro/racg$ crs_stat -t

Name Type Target State Host
------------------------------------------------------------
ora....ora.gsd application ONLINE ONLINE pandora
ora....ora.ons application ONLINE ONLINE pandora
ora....ora.vip application ONLINE OFFLINE
ora....aro.gsd application ONLINE ONLINE santaro
ora....aro.ons application ONLINE ONLINE santaro
ora....aro.vip application ONLINE OFFLINE

crs_stat ora.santaro.vip

NAME=ora.santaro.vip
TYPE=application
TARGET=ONLINE
STATE=OFFLINE
I want to debug  $ORA_CRS_HOME/bin/racgvip which starts the VIP .There  are  two way 
  1. uncommenting the environment variable _USR_ORA_DEBUG=1 in the script $CRS_HOME/bin/racgvip
  2. By  crsctl  command as  root  user

    --Open debuging for ora.santaro.vip resource  by root
    crsctl debug log res "ora.santaro.vip:5"  

    --start nodeapps This will create a log for VIP starting problem for 10.2 and above version in directory $CRS_HOME/log/{hostname}/racg/*vip.log  analyze  the log
    srvctl start nodeapps -n santaro

    --Turn off  debuging  by root


    crsctl debug log res "ora.santaro.vip:0"

No comments: