Operating System - HP-UX
1837390 Members
3155 Online
110116 Solutions
New Discussion

cmrunserv : Service name sybase does not exist

 
SOLVED
Go to solution
Mladen Despic
Honored Contributor

cmrunserv : Service name sybase does not exist

When I attempt to run package "sybase", the following is logged in /etc/cmcluster/sybase/sybase.cntl.log:

"...
"/etc/cmcluster/sybase/sybase.sh monitor dataserver"
cmrunserv : Service name sybase does not exist.
ERROR: Function start_services
ERROR: Failed to start service sybase
..."

The relevant log in /var/adm/syslog/syslog.log is:

CM-sybase[2086]: cmrunserv -R sybase >> /etc/cmcluster/sybase/sybase.cntl.log 2>&1 /etc/cmcluster/sybase/sybase.sh monitor dataserver
cmcld: Service sybase has no status entry. Either its package is not running or this is not a configured service name.

I've tried halting the cluster, reapplying the cluster configuration, and even rebooting the system.
I still get the same error.

The problem occured while I was testing "Sybase migration into MC/SG cluster". Basically, I configured a 1-node cluster on a new system (with no Sybase on it), then I exported sybase volume group from an existing system (with no MC/SG on it), and then I imported this sybase volume group from the node running MC/SG. Everything works well, except for this last step when 'cmrunserv' fails.

The script "sybase.sh" and other configuration files for "sybase" package have been tested previously in a 2-node cluster, but it is nevertheless possible that I'm missing something simple.

Any clues?



4 REPLIES 4
Sanjay_6
Honored Contributor
Solution

Re: cmrunserv : Service name sybase does not exist

Hi,

The Service name is identified at two places. My guess is that you have missed the service name in the package configuration file. You have the service name and the Service run command mentioned in the package control script, but the service name and service parameters are not defined in the package ascii configuration script.

Look for the same under SERVICE_NAME in package conf script. The same should match with the service run script under SERVICE_NAME[0] under "SERVICE NAME AND COMMANDS" in the package control script.

hope this helps.

Regds
Sridhar Bhaskarla
Honored Contributor

Re: cmrunserv : Service name sybase does not exist

Mladen,

This is because you defined a service called "sybase" in your package configuration file. Looks like you are not using it in your sybase.sh script. Comment this line out in /etc/cmcluster/package_name/package.conf file. Search for SERVICE_NAME in the configuration file and comment the lines out and reapply the configuration by cmapplyconf -P /etc/cmcluster/package_name/package.conf file.

Then start the package and see if it works.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Roger Baptiste
Honored Contributor

Re: cmrunserv : Service name sybase does not exist

<ERROR: Failed to start service sybase>>

Seems that the sybase
script is present in the
package control file, but
not in the package configuration file.

To confirm this, Do a
#grep -i "^service" /etc/cmcluster/sybase/

Edit the file and make the
change.

Run cmmakepkg -p /etc/cmcluster/sybase/

hth
-raj

Take it easy.
Mladen Despic
Honored Contributor

Re: cmrunserv : Service name sybase does not exist

Thanks guys, you really saved me some time! I did forget to add SERVICE_NAME, etc., to the package config file.