Forum Discussion

kayak_pc's avatar
kayak_pc
Level 3
12 years ago

unable to create application resource

I have an issue with creating application resource in a SFHA environment. below is my configuration.

In my environment

  • a two node SFHA cluster.
  • do not wish to let VCS take control of the database instead. 
  • a script created to start and stop the database.

 

Application resource in main.cf

Application Monitor_Listener (

                        Critical = 0

                        User = oracle

                        StartProgram = "sh /home/oracle/START_STOP/START_LISTENER.sh"

                        StopProgram = "sh /home/oracle/START_STOP/STOP_LISTENER.sh"

                        MonitorProgram = "sh /home/oracle/START_STOP/MONITOR_LISTENER.sh"

                        PidFiles = { "" }

                        MonitorProcesses = { oracle }

                        UseSUDash = 1

                        )

 

START_LISTENER.sh

. ~oracle/ora10g.env

$ORACLE_HOME/bin/lsnrctl start ENG10

 

STOP_LISTENER.sh

. ~oracle/ora10g.env

$ORACLE_HOME/bin/lsnrctl stop ENG10

 

MONITOR_LISTENER.sh

#!/usr/bin/sh

ps -ef | grep oracle | grep -v grep > /dev/null

if [ $? -eq 0 ]; then

       exit 110

else

       exit 100

fi

 

. ~oracle/ora10g.env

export ORACLE_HOME=/app/oracle/product/10.2.0/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH

 

After creating, i tried to online the resource. it says that it is not probed.

Anyone can provide some advice where i am doing wrong. maybe provide me some solution?

2 Replies

  • Hi

    Probing issues tend to be related to the monitoring of the resource.

    Are there any suspect entries in the VCS engine log or Application log in /var/VRTSvcs/log at the time of the online

    In the configuration of the resource, you have MonitorProcesses = {oracle}

    Is that the executable name that is being monitored ?

    cheers

    tony

  • Please check the status of your Application resource "Monitor_Listener" before trying to fire the VCS online command (i.e. hares -online ...) It is quite likely that the resource itself is not in a steady state (ONLINE or OFFLINE) and it could be in UNKNOWN state. Check whether your resource definition is correct. All the scripts that are specified for various Programs are accessible and executable for the User as specified.