1832567 Members
4707 Online
110043 Solutions
New Discussion

Re: Service startup fail

 
SOLVED
Go to solution
Ryan Ma
Frequent Advisor

Service startup fail

I have added a checking script to check the available of Oracle.

Here is the error messages using cmrunpkg.
=============================================
cmrunpkg : Script failed with no restart: oracle should not be restarted.
Check the syslog on node server1 and pkg log files for more detailed information.

Here is the error message in oracle.cntl.log
=============================================
Jan 31 16:04:33 - Node "server1": Starting service oracle_mon using
"/etc/cmcluster/oracle/oracle.sh monitor"
cmrunserv : Service name oracle_mon does not exist.
ERROR: Function start_services
ERROR: Failed to start service oracle_mon
Jan 31 16:04:33 - Node "server1": Halting service oracle_mon
4 REPLIES 4
Steve Steel
Honored Contributor

Re: Service startup fail

hi

Go to /etc/cmcluster/oracle_package/

Use cmviewcl -v to check status

Use cmcheckconf -P oracle_package.conf

Use cmmodpkg -e -n node oracle_package


Or correct errors


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Sanjay_6
Honored Contributor
Solution

Re: Service startup fail

Hi,

you should define the name of the service in the package configuration file. In this file the service name is defined under the variable,

SERVICE_NAME

First define the name of the service over here, then corresponding to this put the service name and service run command in the package control file. The package configuration file and package control files are found under /etc/cmcluster/pkg_name where pkg_name is the name of the package.

Hope this helps.

regds
melvyn burnard
Honored Contributor

Re: Service startup fail

when you say you hgave added a monitoring script, did you:
a) configure the package config file correctly?
b) configure the package control file correctly?
c) apply the changes?
d) make sure the script is executable and on all nodes that need to run the package?

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Ryan Ma
Frequent Advisor

Re: Service startup fail

I have not modified oracle.conf before. I have just modified oracle.cntl

After I make appropiate changes, applying the config and debug the monitor script :), the package is working now.

Thanks!