cancel
Showing results for 
Search instead for 
Did you mean: 

Why does startsap only start one of my instances?

a177583
Explorer
0 Kudos

Hi,

During my last maint I noticed that the startsap command only started one of my dialog instances D30, but not the other one D10. However, if I ran "startsap D10" is started without problems.

Any idea of what could be wrong? What do I need to change to make it start both my instances with the startsap command?

Thanks in advance!

Anton Alard

Accepted Solutions (1)

Accepted Solutions (1)

balazs_takacs
Advisor
Advisor
0 Kudos

Hello Anton,

if you have access to SAP notes you could take a look at the one with the number: 1888359
It explains something about the background of the logic of the startsap script.

Check it whether it helps to understand the behaviour.

Regards Balázs

Answers (6)

Answers (6)

0 Kudos

Hi Anton,

Can you please explain your problem more detail,

when the central instance is stopped, then how the application server will run

Thanks ,

Anto

a177583
Explorer
0 Kudos

Hi,

No no, of course it will not. That is not at all what I meant...

My problem is that the "stopsap" and "startsap" command behaves differently on my two hosts when stopping and starting SAP instances.

Anton

Former Member
0 Kudos

Can you upload trace file generated during startsap execution?

a177583
Explorer
0 Kudos

Hi,

But startsap does not even TRY to start both instances, it is like it does not detect one of them. And if I run "startsap D10" it starts without problems.

Both instances can be started using startsap:

"startsap D10" - works fine

"startsap D30" - works fine.

"startsap" - should start BOTH instances but it only starts D30; D10 is not even mentioned in the logs or traces. It does not even try to start it.

Anton

manumohandas82
Active Contributor
0 Kudos

Hi Anton ,

Please try "startsap hostname" , where hostname is your server name .

Thanks ,

Manu

Former Member
0 Kudos

Check the directory from which you are starting startsap script for startsap.trc file and if it exists upload it.

isaias_freitas
Advisor
Advisor
0 Kudos

Hello Aron,

Please attach the "startsap.trc" file to this thread.

This file will be located at the "/home/<SID>adm" folder.

Regards,

Isaías

a177583
Explorer
0 Kudos

Hi,

I have attached the startsap.trc file.

But please keep in mind that I have no problem starting the instances, just with the script.

Anton

Former Member
0 Kudos

This startsap.trc containg trace entries for "startsap D10" command. Please rerun startsap command without parameters (or with parameters you need) and attach updated startsap.trc.

isaias_freitas
Advisor
Advisor
0 Kudos

Indeed, it shows that "startsap D10" was executed, and it also shows a successful startup...


   starting SAP Instance D10

   Startup-Log is written to /home/mnpadm/startsap_D10.log

   /usr/sap/MNP/D10/exe/sapcontrol -prot NI_HTTP -nr 10 -function Start

   wait sleep 10 while instance is starting

   Instance on host segotl0459 started

  }17:11:59 ## instance_do() done

We need the startsap.trc from when the issue occurs .

a177583
Explorer
0 Kudos

Hi,

I have no possibility to take down this system since it is actively used.

Yes the trace file I attached containts a successfull D10 startup, this is since I started it using the Startsap D10 command after the Startsap command did not include it.

If the startsap command do not try to start an instance (it does not even recognize its existance) I am pretty sure it will not be logged in the trace either.

Former Member
0 Kudos

Hi Anton,

This is very interesting.

What are the directory names  under /usr/sap/<SID>  ?

If you are on an UNIX environment, would you be able to check if there is an alias created for startsap ?

Please also try 'locate startsap' and check the file which is being used and open the file to check if it has been customized.

Thanks,

Suneeth

a177583
Explorer
0 Kudos

Hi,

ASCS01

config

D10

D20

D30

DVEBMGS00

SCS02

SYS

Remember that DVEBMGS00 and D20 are running on another host.

We are running Redhat 6.6

The which command gives the same answer for both my hosts:

as mnpadm:

which startsap

/usr/sap/MNP/SYS/exe/run/startsap

I can't see that it has been customized.

a177583
Explorer
0 Kudos

Hi again,

I guess that I was a bit unclear with my problem.

I have an SAP system distributed on two hosts, it consists of a central Instance and 3 application servers. Two on each host.

On host 1 - when I run "stopsap" it stops the central instance AND the application server.

On host 2 - when I run "stopsap" it only stops one of the application servers, NOT the other one. However the other one can be stopped using "stopsap D10" without any problems.

So I run the same command on both hosts and get different results, why?

JPReyes
Active Contributor
0 Kudos

Hi Anton,

You can try adding the instance to the sapservices file under /usr/sap.

Regards, Juan

a177583
Explorer
0 Kudos

Hi,

Both application servers are already in this file.

Anton

parth_raval
Participant
0 Kudos

Hi Anton,

Try "startsap all" or "startsap -t all" to start both the instances together if they were installed on same host.

If you have 2 different Instances on the same host, you have to login with "sidadm" user and then hit the command "startsap" one by one to start both the instances.

If you have logged in with "d10adm" user and "startsap" has been executed then definitely it would start only that particular instance.

Thanks And Regards,

Parth Raval

alwina_enns
Employee
Employee
0 Kudos

Hello Anton,

what was the exact syntax to start the system with startsap? Did you check the sapstart.log trace for more information, if there was a problem to start the second instance?

Regards, Alwina

0 Kudos

Hi Anton,

I general before executing startsap you should logon to the host using SIDadm user,

In case if you host has 2 SID(D10,D30), and you logged on as d10adm "startsap"

will only start D10 instance

Thanks,

Anto

manumohandas82
Active Contributor
0 Kudos

Hi Anton ,

Is  your startup profile/ Instance profile contain the correct hostname / named  with the correct hostname .

Is D30/D10 on the same host ? If yes then startup using the command "startsap hostname"

Thanks ,

Manu