1845945 Members
3910 Online
110250 Solutions
New Discussion

Re: Cluster Problem

 
PSS SYS ADMIN
Super Advisor

Cluster Problem

Hi everyone,
I'm trying to setting up a new mono node Cluster Serviceguard on an hpux11i box.
I have created the cluster, and the package that should start DataProtector 5.5 but ther's something wrong and operation failed.
This is cluster.log:
May 30 02:48:20 - Node "test02": Starting service dpstart using
"/etc/opt/omni/server/sg/csfailover.ksh start"
sh: /etc/opt/omni/server/sg/csfailover.ksh: not found.

Can you hep me?
Regards...
PSS
15 REPLIES 15
Christian Tremblay
Trusted Contributor

Re: Cluster Problem

Does the file:
/etc/opt/omni/server/sg/csfailover.ksh
exists ?

PSS SYS ADMIN
Super Advisor

Re: Cluster Problem

This is the ls -l output:
-rwxrwxrwx 1 root sys 3079 May 31 00:44 /etc/opt/omni/server/sg/csfailover.ksh
melvyn burnard
Honored Contributor

Re: Cluster Problem

so what happens if you run that script with the start option outside of Serviceguard?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
PSS SYS ADMIN
Super Advisor

Re: Cluster Problem

The script runs regularly if started from command line.
Greg Vaidman
Respected Contributor

Re: Cluster Problem

check the first line of your csfailover.ksh script - you likely have an invalid shell listed there in the "#!" syntax. change the shell to /sbin/sh or some other valid shell.
PSS SYS ADMIN
Super Advisor

Re: Cluster Problem

no way!
I've tried to insert an "exit 0" at the beginnig of the script but the result was the same
Albert_31
Trusted Contributor

Re: Cluster Problem

can you post the control script of the package, so we can have a look at it.
PSS SYS ADMIN
Super Advisor

Re: Cluster Problem

this is the cntl file
Albert_31
Trusted Contributor

Re: Cluster Problem

Hi,

"/etc/opt/omni/server/sg/csfailover.ksh"

if this is script that you want the package to run while starting and execute the same while halting the package, then you got it in the wrong place.. It should be in the customer defined functions..

function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because a function must contain some command.
/etc/opt/omni/server/sg/csfailover.ksh start
test_return 51
}

# This function is a place holder for customer define functions.
# You should define all actions you want to happen here, before the service is
# halted.

function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because a function must contain some command.
/etc/opt/omni/server/sg/csfailover.ksh stop
test_return 52
}

Let me know if i got it wrong.
PSS SYS ADMIN
Super Advisor

Re: Cluster Problem

this was the result:

/etc/opt/omni/server/sg/csfailover.ksh: not found.
ERROR: Function customer_defined_run_cmds
ERROR: Failed to RUN customer commands
Albert_31
Trusted Contributor

Re: Cluster Problem

The default shell in mcsg is the POSIX shell (/usr/bin/sh), though the error does not point to out..can you check the script..

is it possible to use a simple script instead of the one you are using..from another location..or move the current script to another location example be the /tmp or / directory since it is a single node cluster..

Check the directory permissions top to bottom..





rariasn
Honored Contributor

Re: Cluster Problem

Hi Pss,

Search scripts in path:

/etc/opt/omni/sg

rgs,
ran
PSS SYS ADMIN
Super Advisor

Re: Cluster Problem

the problem was that th lvm conf change after cluster start and the script disappears
Albert_31
Trusted Contributor

Re: Cluster Problem

Hi,,

Really did not understand what you meant.. can you be more detailed..

regards

albert
PSS SYS ADMIN
Super Advisor

Re: Cluster Problem

when I start the cluster the lvm conf changes because a new filesystem on shared disk is mounted.
When this fs is mounted overrides the fs where the script is located