Operating System - HP-UX
1827330 Members
5609 Online
109963 Solutions
New Discussion

SAP and Serviceguard - How to change startup of instance?

 
Danny Petterson - DK
Trusted Contributor

SAP and Serviceguard - How to change startup of instance?

Hi Gurus!

This might be very simple and is quite possible only related to my lack of knowledge and understanding...

However...

Using Serviceguard we start several SAP-instances, looking in the logfile the startup could look like this:

"Running /usr/sap//SYS/exe/run/startsap r3 DVEBMGS00 "

This works fine - however, due to some reasons, the startup should change the "r3" from the line above to "all" - and I do not have a clue on how to change this. I can see this parameter is defined in the /etc/cmcluster/sap.functions, but this is as we all know not a file to be tampered with.

My question then is - where do I change the startup behaviour from "r3" to "all"?

Thanks in advance

Kind regards
Danny
3 REPLIES 3
Mel Burslan
Honored Contributor

Re: SAP and Serviceguard - How to change startup of instance?

I am not sure if you are using SGeSAP package but most probably you do. Check the existence of /etc/cmcluster//sapwas.cntl file. If it's there, you have the package.

In that case, edit the file /etc/cmcluster//dbci (or if you have java installed, the name would be dbcijci) and in this file, search for

ADD customer defined run commands

which will be followed by a few commands
What you are looking for is in this customer defined run commands. Of course there is a section, usually placed right after this run commands, called customer defined halt commands. You may or may not have stuff in this block. Carefully examine these blocks and replace the instance (a.k.a. above) name in this section(s)

Note that if you change the SID while your system is running, your cmhaltpkg command may fail due to mismatching names.

Hope this helps.
________________________________
UNIX because I majored in cryptology...
Danny Petterson - DK
Trusted Contributor

Re: SAP and Serviceguard - How to change startup of instance?

Hi Mel!

Thanks a lot for your detailed answer, I really appreciate it.

I am using SGeSAP, and working with that I'm aware of the customer-function-part, which include this line:

. /etc/cmcluster//sapwas.cntl start

...which starts up the SAP-instance - I suppose this uses the /etc/cmcluster/sap.functions-script to start up the , giving this line in the dbci.cntl.log-file:

"Running /usr/sap//SYS/exe/run/startsap r3 DVEBMGS00 "

To narrow it down a bit, I don't know how to let sapwas.cntl know to start up with "all" instead of "r3".

I'm looking forward to continue our dialogue.

Yours
Danny
Danny Petterson - DK
Trusted Contributor

Re: SAP and Serviceguard - How to change startup of instance?

Hi again Guru's...

I have not come any further in this matter - Somebody with any suggestions?

Thanks for your time.

Kind regards
Danny