Site icon BASIS GURU

Rolling Kernel Switch In SAP

www.basisguru.com

In this article we will discuss the concept of Rolling Kernel Switch in SAP, how it is achieved,prerequisites and actual procedure.

What is Rolling Kernel Switch?

During the SAP kernel upgrade with multiple application server, we need to:

This traditional approach has major disadvantage as ‘unwanted downtime is required during kernel switch’.
To minimize this downtime, RKS (Rolling Kernel Switch) procedure was introduced.

RKS Prcocedure:

The order in which instances are restarted are as below:

As of 7.4x releases, an automatic RKS procedure is provided.
For 7.2x kernel releases, manual procedure exists.
Please refer SNOTE: 953653 for manual procedure on release 7.2x.

We will focus on the Automatic RKS procedure in this blog article.

Prerequisites for Rolling Kernel Switch procedure:

Why it is mandatory?

This is because, for RKS procedure to be effective we must be able to stop/start individual application servers without affecting availability of any other instances.

In conventional SAP ABAP systems, where application server is with central services enqueue and message server exists,this procedure will NOT work .

It can be checked by using below command or via SM51 release notes info:

disp+work -v

Profile Parameter Settings In Context of RKS

Below are the profile parameters related to RKS configuration in SAP.

ParameterDefault ValueDetails
lg/rks_strategyunmodifiedDescribes how load balancing is performed during the RKS procedure.

unmodified:New logons are distributed across instances that still have to be restarted as well as instances that have already been restarted.

Prefer_restarted:The preferred option is to forward new logons to instances that have already been restarted.
rdisp/server_startup/max_time1HSpecifies the maximum length of time the server startup procedure can last for while the application server instance is restarting. If this value is exceeded, the server startup procdure is terminated.
rdisp/server_startup/info_file$(DIR_DATA)$(DIR_SEP)$(FN_STARTINFO)stores additional information during the server startup procedure. Do not change the file name
rdisp/server_startup/run_procYESSpecifies whether the server startup procedure is to be run while an ABAP application server instance is starting up
rdisp/server_startup/userDDICSpecifies the ABAP user with which the server startup procedure is run.

Starting RKS:

We can start RKS with multiple tools:

  1. via SAP MMC
  2. via command line

SAP MMC Method:

In SAP MMC, right click–>choose Check Prerequisites option to get the automatic checks done.


All checks should be successful. If not,please fulfill the conditions:

Now choose Update system option as shown below:

We will get the popup for TIME OUT value.
This value should be greater than rdisp/server_startup/max_time (default 1Hour)

Command Line Method :

We can start RKS procedure using sapcontrol in command line.
Login with <SID>adm.

Use below command syntax to proceed with this method:

sapcontrol -nr <NR> -function UpdateSystem <waittimeout sec> <softtimeout sec>

Monitoring:

We can monitor procedure via multiple ways:

SAP MMC:

Monitor instance status: scheduled/started/stopping.
Alternatively we can achive this via command line as shown below:

sapcontrol -nr <NR> -function GetSystemUpdateList

SM04:

If any users are using app server which is being restarted, they are notified to use another app server after specified wait time inn parameter rdisp/shutdown/gui_auto_logon.

SM51:

Here we can monitor the instance status for each application server.

References:
https://help.sap.com/

Exit mobile version