Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Managing MC/ServiceGuard Extension for SAP R/3: > Chapter 2 Step by Step Installation Guide

SGeSAP Files Configuration

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The MC/ServiceGuard Extension for SAP R/3 (SGeSAP) integration needs information about the specific setup at the customer site. It gathers this information from a file that is called sap.conf. You have to modify this file manually. Refer to the example provided with the integration files. It can be used as a template.

Logon to the primary host as root.



Installation Step:

Level: IS370

Install the product depot file SGeSAP B7885BA using the swinstall tool.

B7885BA depends on B5140BA, the NFS toolkit which will also be installed if it is not already available. MC/ServiceGuard 11.13 introduced a new concept of integrating various toolkits within standard packages. For more information on the latest reference to the HA-NFS toolkit refer to http://docs.hp.com.



Installation Step:

Level: IS375

The swinstall process copied relevant files to /opt/cmcluster for reference. For your installation to work, copy the following files to the runtime directory:

cp /opt/cmcluster/sap/SID/sap.conf 	 /etc/cmcluster/<SID>/sap.conf 
cp /opt/cmcluster/sap/sap.functions /etc/cmcluster/sap.functions
cp /opt/cmcluster/sap/customer.functions /etc/cmcluster/customer.functions


Installation Step:

Level: IS377

In addition, you need the following package control and configuration files. These files should always be created using the SG 11.13 commands:

# cmmakepkg

The hanfs.sh control file should be copied from the HA-NFS repository in /opt/cmcluster/nfs to the appropriate runtime directory of the SGeSAP package /etc/cmcluster/<SID>.

For the one package installation you need:

cp /opt/cmcluster/sap/SID/sapdbci.cntl	/etc/cmcluster/<SID>/sapdbci.cntl
cmmakepkg -s /etc/cmcluster/<SID>/dbci.cntl
cmmakepkg -p /etc/cmcluster/<SID>/dbci.conf
cp /opt/cmcluster/nfs/hanfs.sh /etc/cmcluster/<SID>/hanfs.dbci

For the two package installation you need:

cp /opt/cmcluster/sap/SID/sapdb.cntl 	/etc/cmcluster/<SID>/sapdb.cntl
cp /opt/cmcluster/sap/SID/sapci.cntl /etc/cmcluster/<SID>/sapci.cntl
cmmakepkg -s /etc/cmcluster/<SID>/db.cntl
cmmakepkg -s /etc/cmcluster/<SID>/ci.cntl
cmmakepkg -p /etc/cmcluster/<SID>/db.conf
cmmakepkg -p /etc/cmcluster/<SID>/ci.conf
cp /opt/cmcluster/nfs/hanfs.sh /etc/cmcluster/<SID>/hanfs.db

For the a application server package installation you need:

cp /opt/cmcluster/sapap.cntl /etc/cmcluster/<SID>/sapap.cntl
cmmakepkg -s /etc/cmcluster/<SID>/ap<SID><ASNR>.cntl
cmmakepkg -p /etc/cmcluster/ap<SID><ASNR>.conf


Installation Step:

Level: IS380

Customize the package control and configuration files as described in the standard MC/ServiceGuard manual Managing MC/ServiceGuard (Part Number B3936-90026) and Managing Highly Available NFS (Part Number B5125-90001). Refer to http://docs.hp.com for the latest edition of this document.



Installation Step:

Level: IS385

Customization of sap.conf.

The customization of sap.conf is divided into subsections as follows:

Standard Parameters in sap.conf

Open the file /etc/cmcluster/<SID>/sap.conf with a text editor.



Installation Step:

Level: IS390

SGeSAP performs activities specific to the database you use. Specify the underlying database vendor using the DB parameter. The compatible options are: ORACLE or INFORMIX.



Installation Step:

Level: IS400

Provide information about the Central Instance that will be protected by a MC/ServiceGuard package. Set the parameter CINR to the Instance ID of your Central Instance.


 

Installation Step:

Level: IS410

If you are using the two package concept you can use the DB_RECONNECT functionality that is provided by SAP R/3.

If you want to use DB_RECONNECT with any instance of your SAP R/3 system, you must disable the automatic restart of the Central Instance, type:

CIRESTART=0

Setting this prevents the Central Instance from restarting in the event of a database failover. This means that the Central Instance profiles must be configured to use DB_RECONNECT. Remember that if you want to use DB_RECONNECT with any application server you must use it with the Central Instance, too. A reconnection of the application server to the switched database is only possible if the Central Instance has not been restarted.

The CIRESTART parameter has no meaning with a Central System that is secured by the one package concept and should not be modified. A failure of the database with a one package concept always means that the Central Instance has failed. The Central Instance is always restarted and reconnection of application servers is not allowed. The same conditions apply if you plan to use a two package approach with both packages on the same node all the time. When configuring the DBRECONNECT mechanism follow the appropriate OSS notes 109036, 98051 and 24806



Installation Step:

Level: IS420

The file sap.conf contains four arrays that describe the additional application servers of your system.

Additional application servers are all application servers that belong to the SAP R/3 system and are different from the Central Instance. Each array has one entry for each application server. This is true whether the application server is running on a node in the cluster or outside of the cluster.

  • In the ASHOST[*] array, specify the hostnames on which the application servers reside. Never use a relocatable name, even if the host is part of the cluster!

  • Specify the Instance ID for each application server using the ASNR[*] array.

    You already specified the Instance ID of the Central Instance with the parameter CINR.

    Each index value n, ASNR[n] refers to the same application server as ASHOST[n]. If the corresponding ASHOST entry specifies a host that is part of the cluster, provide an ID that is different from the ID used by the Central Instance.

    Make sure that there is no other SAP R/3 Instance on the same host using the same ID.

  • In the third array called ASTREAT[*], you can define the way the application server acts if the status of the package changes. ASTREAT[*]=0 means that the application server is not affected by any changes that happen to the package status.

    • Add 1 to ASTREAT[*] if the application server should be started automatically during startup of a package.

    • Add 2 to ASTREAT[*] if the application server should be stopped automatically after initiating cmhaltpkg for ci-pkg.

    • Add 4 to ASTREAT[*] if the application server should be restarted automatically if a DB-switchover caused by a failure takes place. If you do not use the restart option you have to configure the instance to use DB-RECONNECT.

    • In the fourth array called ASPLATFORM[*] you specify the platform on which the Application Server runs. Supported values are:

      • "HP-UX": standard SAP Application server running on an HP-UX server

      • "LINUX": standard SAP Application server running on a linux server

      • "NT": standard SAP Application server running on a NT server. The NT Application server handling is not standardized as there is no way to open a remote DOS shell that starts R/3 Application servers on a windows platform. SGeSAP right now contains examples of functions using the ATAMAN ™ TCP Remote Logon.

      • "SG-PACKAGE": MC/ServiceGuard packaged SAP Application server. Specify this value is you want to run the Application Server within a ServiceGuard Cluster package. Refer to IS 377 for prerequisites.



Installation Step:

Level: IS430

Specify the relocatable hostnames of the database and the Central Instance in the parameters DBRELOC and CIRELOC.

They will be the same if you use the one package concept.

Specify the relocatable hostname in TRANSRELOC, the host from which the mount to the transport directory /usr/sap/trans is initiated. In a multiple SAP R/3 system environment, specify a separate relocatable hostname for TRANSRELOC. In single system environments TRANSRELOC can be set equal DBRELOC.



Installation Step:

Level: OS435

Specify AS_PSTART=0 if you want the Application Server startup to run sequentially. The default value here is AS_PSTART=1 for parallel startup. Setting AS_PSTART=0 will slow down your total failover time.



Optional Step:

Level: OS450

Specify SAPOSCOL_STOP=1 if saposcol should be stopped together with each instance that is stopped.

SGeSAP makes sure that the collector only stops if there is no instance of an SAP R/3 system running on the host.



Optional Step:

Level: OS460

It is possible to failover both packages of the two package concept to the same node.

If both packages try to come up on a single node after a failover at the same time, it is likely that the Central Instance package wants to start up the Central Instance before the database is fully recovered. This would lead to a failure because SAP R/3 cannot connect to the database.

To deal with this situation, there is a loop implemented that polls the database in increasing intervals of time. The startup of the CI package is delayed until the database is reached. After the first poll, the script waits 10 seconds before initiating another one. After the second poll, the waiting time is increased to 20 seconds, and so forth. This continues until the database responds or up to a maximum of DELAY_INTERVALS polling attempts. You can modify DELAY_INTERVALS if you expect long recovery times.

Additional Parameters in sap.conf

Starting with release 3.0.03 additional parameters were introduced. You can add them on an as needed basis to already existing sap.conf files. The sap.functions file and customer.functions of release 3.0.03 or higher works with sap.conf files of previous releases without changing them.



Optional Step:

Level: OS470

If your setup consists of application servers that are significantly slower than the Central Instance host, it is possible that the Central Instance shuts down before application server shutdown is completed. This can lead to unsafe shutdowns and Instance crash.

To be safe, specify one of the following:

  • WAIT_OWN_AS=1

    the shutdown of all application servers takes place in parallel, but the scripts do not continue before all of these shutdown processes have come to an end.

  • WAIT_OWN_AS=2

    if the package should also wait for all application servers to come up successfully. You have to use this value if you want to prevent the integration from temporarily opening a new process group for each application server during startup.

  • WAIT_OWN_AS=0

    can significantly speed up the package start and stop, especially if Windows NT application servers are used. Use this value only if you have carefully tested and verified that timing issues will not occur.



Optional Step:

Level: OS480

Control the handling of resources.

On 32bit HP-UX, a shared memory shortage can occur if you install more than one instance on a host. Prior to any instance startup the SGeSAP tries to free up unused or unimportant resources to make the startup more likely to succeed. A database package only frees up database related resources, a Central Instance package only removes IPCs belonging to SAP R/3 administrators. Table 2-8 “Resource Handling and the CLEANUP_POLICY Parameter” summarizes how the behavior of SGeSAP is affected by changing the CLEANUP_POLICY parameter:

Table 2-8 Resource Handling and the CLEANUP_POLICY Parameter

CLEANUP_
POLICY =
CI resourcesDB resourcesAppServer resources
lazyno actionno actionno action
normaluse cleanipc to remove unused own resourcesunused ORACLE SGA is removeduse cleanipc to remove unused own resources
strictremove any resource belonging to any SAP R/3-Instanceremove any resource belonging to any databaseuse cleanipc to remove unused own resources

 

  • Integration versions prior to release 3.0.03 use the lazy policy: No additional cleanup takes place apart from SAP R/3 standard shutdown activities.

  • cleanipc is an SAP R/3 tool used to free up the IPC resources of specific SAP R/3 Instances. It is used to free up resources of an Instance that is to be started soon on HP-UX. This prevents shmem-problems due to a prior crash of the Instance. Accordingly, an obsolete ORACLE SGA is also removed if a database crash occurred.

  • The strict policy uses HP-UX commands to free up all semaphores and shared memory segments that belong to any SAP R/3 Instance of any SAP R/3 system on the host if the Central Instance is to be started soon. It uses HP-UX to free up all semaphores and shared memory segments that belong to any database if the SAP R/3 database is to be started soon.

    Do not use the strict policy unless it is critical that you do. Be aware that the strict option can crash running instances of different SAP R/3 systems on the backup host!

    • Use this value only if you have a productive system that is much more important than any other SAP R/3 system you have. In this case a switchover of the productive system is more robust, but additional SAP R/3 systems will crash.

    • You can also use strict policy, if your SAP R/3 system is the only one running at the site and you are low on memory. Strict policy frees up more of its own shared memory segments than the normal policy does.



Optional Step:

Level: OS485

SERVER_CONSOLIDATION is used to identify the usage of a consolidated system environment that has multiple SAP R/3 systems on the same node.

To enable the handling of shared memory resources and application servers in a consolidated environment, specify:

SERVER_CONSOLIDATION=1

To specify the Dialog instances handling refer to Step Title not available.

Using Database Reconnect and Transaction Reset

Starting with V3.0 of the SGeSAP Integration Scripts you can configure the DB-Reconnect functionality. DB-Reconnect is a feature provided by SAP R/3. It allows SAP R/3 to remain running if the database switches and the Central Instance stays up. DB-Reconnect can be used with the two package concept. Transaction Reset can be used with either the one package or two package concept. Both DB-Reconnect and Transaction Reset can be combined in the two package concept.

SAP R/3 V4.0B kernel patch level 85 introduced the Transaction Reset functionality. It allows additional SAP R/3 application servers to remain running if the Central Instance switches. The first implementation of Transaction Reset was unreliable and caused problems with some SAP R/3 transactions. Use at least kernel patch level 269.

The DB-Reconnect can be different for each application server. If you want to use DB-Reconnect for any application server, the Central Instance must also be configured to reconnect. Make sure that the data remains consistent under all conditions. If the Central Instance fails, all application servers are always restarted.



Optional Step:

Level: OS490

If you want to use the DB-Reconnect functionality:

Add entries to:

  • /sapmnt/<SID>/profile/<SID>_DVEBMGS<INSTANCENR>

  • Instance Profiles of all application servers that use DB-Reconnect

When configuring the DBRECONNECT feature follow the appropriate OSS notes 109036, 98051 and 24806.

For example:

rsdb/reco_trials = 15rsdb/reco_sleep_time = 60rsdb/reco_sosw_for_db = off (based on OSS #109036)rsdb/reco_sync_all_server = on


Optional Step:

Level: OS500

If you want to use the DB-Reconnect functionality:

Make sure that you configured CIRESTART=0 as described in Step Title not available the default setting of CIRESTART is 0 starting with SGeSAP Release 3.01.


 

Optional Step:

Level: OS510

If you want to use the DB-Reconnect functionality:

Use ASTREAT[] values that are <4 for any application server that uses DB-Reconnect.

The ASTREAT[] array defines how the application servers are treated during switchover.

ASHOST[] and ASTREAT[] values with the same index belong to the same application server:

ASTREAT [X] = Y 

where —

X specifies the corresponding application server.

Y is an integer value that defines the way the application server is treated.

Y = 0 means that the application server is not affected by any changes that happen to the package status. At the moment there are three triggers you can use to customize the way the scripts affect the application server. They are:

  • ACTIVE—Add 1 to Y if the application server should be started automatically during the startup of a package.

    NOTE: Not during failover - only during package startup.

    Under normal circumstances all application servers should be configured to be active.

    Under special conditions, for example, MC/ServiceGuard maintenance, you can stop an application server manually. In situations such as these, also configure the application server to be inactive. For now you need to change the scripts manually.

    To deactivate an application server, you have to decrease his ASTREAT[] value by one in the sap.conf files on all nodes. This ensures the number is even. Otherwise a switchover would accidentally cause an unwanted startup of the previously stopped application server.

    To reactivate the application server Instance, increase the ASTREAT[] value on all nodes.

    If you deactivate an application server by changing the sap.conf files, the application server Instance does not stop automatically or immediately. When you deactivate this way, the Instance is not (re-)started automatically by MC/ServiceGuard. You can still have manual startups and MC/ServiceGuard-triggered shutdowns of the Instance.

  • FINAL STOP—Add 2 to Y if the application server should automatically be stopped after initiating cmhaltpkg.

  • RESTART—Add 4 to Y if the Application Instance processes should be stopped and restarted automatically if a DB-switchover caused by a failure takes place.

    Use this for extremely critical environments, in which safety is the most important concern. The restart does not take place if the application server is configured to be inactive.

Table 2-9 “Y Values for ASTREAT[]” provides a summary of values for Y:

Table 2-9 Y Values for ASTREAT[]

ValueAction
0

This application server configured is never touched by the Extension Scripts.

Note: This means the application server has to be configured for DB-RECONNECT.

1

This application server is an active server. This means the scripts try to start the application server if the package is coming up.

Note: Configure the application server to use DB-RECONNECT.

2

This application server stops if the ci-package halts. All startups have to be done manually.

Note: This means the application server has to be configured for DB-RECONNECT.

3

This application server always starts if the package is coming up. It stops if the package is halted manually. In case of a failover the application server reconnects by itself.

Use this value if you want to use RECONNECT and additionally want to control the SAP R/3 system as a whole by using the package commands.

Note: This means the application server has to be configured to use DB-RECONNECT.

4,5 or 6Do not configure.
7This application server stops and starts in case of a switchover (no DB-RECONNECT). It stops if the ci-package halts. It always starts if the package is coming up.

 

The Central Instance is treated the same as any of the additional application servers. Use CIHOST and CIRESTART instead of ASHOST[] and ASTREAT[].

Table 2-10 “ASTREAT Configuration Options” provides an overview of the possible configurations and the corresponding actions.

Table 2-10 ASTREAT Configuration Options

ASTREATRestartFinal_
Stop
ActiveRunpkg DBHaltpkg DBRunpkg CIHaltpkg CI
0000nopnopnopnop
1001CI-startnopstartstartnop
2010nopnopnopstop
3011CI-startnopstartstop
4100stopnopstopnop
5101stop CI-startnopstop startnop
6110stopnopstopstop
7111stop CI-startnopstop startstop
nop = no operation
st_if_nl = start if not on local host

 

The Central Instance should always be ACTIVE and configured for FINAL_STOP.

The RECONNECT behavior can be specified.

Advanced Options in sap.conf

In /etc/cmcluster there is a file called customer.functions. Do not change the sap.functions. The customer.functions templates that are delivered with SGeSAP work with additional parameters in the second part of sap.conf. Use the customer.functions as needed.



Optional Step:

Level: OS520

SAPROUTER is a sample additional program that always starts on the Central Instance host. To start an saprouter on the CI host automatically, specify:

SAPROUTER_START=1

You can also provide an option string that is passed to the saprouter, for example to set the path to the saprouttab file to reside on a shared volume.

Typically, set a maximum of one saprouter inside of the cluster. saprouters cannot share a service port. So make sure that you use different ones, if a failover to the same node is possible for the saprouters.


 

Optional Step:

Level: OS530

Sometimes, when a failover occurs, you want to stop other SAP R/3 Instances running on backup nodes.

This is useful if you have to free up limited resources before you are able to start the failed Instance again. You have to configure two groups of arrays to use this functionality:

  • The first group consists of the arrays RMNR[*], RMADM[*] and RMDEP[*].

    • Specify the Instance-IDs and the name of the System Administrators of each instance that shall be stopped in the arrays RMNR[*] and RMADM[*].

    • For Dialog-Instances and other additional application servers also specify:

      RMDEP[*]=-1

      This means, that there are no instances which depend on the services offered by them.

    • For Central Instances, specify the index into the second group of arrays in RMDEP[*].

      If you allow stopping of Central Instances, you have to specify the list of related additional application servers, too. The application servers are stopped first. It does not matter on which host they are running.

  • The second group of arrays consists of RMDEPNR[*] and RMDEPHOST[*].

    Specify the application servers depending on the Central Instances which are allowed to be stopped. Fill in the Instance-IDs and the local hostnames on which the application servers run. The list of application servers which belong to the same SAP R/3 system start at the index which is specified in the RMDEP[*] entry of their Central Instance and the list continues until an RMDEPNR[*]=-1 is found. Never forget this entry.

    The RMNR[*] specified instances are halted only if they are running on the host you currently fail over to. This functionality never halts any MC/ServiceGuard package. It is possible to stop a Central Instance that is using MC/ServiceGuard packages, but the associated package remains in the running state. Application servers belonging to the same SAP R/3 system as the failing package do not need to be specified here. They stop automatically.



Optional Step:

Level: OS540

If there is a special demand to use values different from the default, it is possible to redefine some of the following values:

  • name of SAP R/3 System Administration User

  • home directory of SIDADM

  • name of the database package

  • name of the Central Instance package

  • name of Oracle Administrator

  • SID of Oracle Database

  • database home directory

  • path of the startdb logfile

  • path of the stopdb logfile

  • path of the SAP R/3 default profile

  • path of the SAP R/3 global transport directory

  • name of the database listener



Optional Step:

Level: OS550

If you want to use a database different from ORACLE or INFORMIX:

Currently only ORACLE and INFORMIX databases are supported, but there is a mechanism to easily integrate another database, provided its handling is not significantly different.

Specify a database vendor different from ORACLE and INFORMIX in the DB parameter of sap.conf: DB=<VENDOR>

SGeSAP Integration calls the script functions:

start_<VENDOR>_db, stop_<VENDOR>_db, and stop_<VENDOR>_as

These functions start and stop the database as well as stop an application server gracefully. The third function is needed, in case there are specific tasks required to stop an application server after the underlying database has failed. These functions must be specified in the database dependent part of the customer.functions file.

Configuring an Application Server Package with SGeSAP

The configuration of an application server package introduces some advantages for SAP application servers. As described in Chapter 1, an application server package has advantages within a 2 node cluster configuration with symmetric nodes or when protecting dedicated batch servers within a cluster. The following intallation step describes the generic setup of an application server package.



Optional Step:

Level: OS551

The APP-package should be called ap<SID><INSTNR> according to the conventions shown in the following table.

Table 2-11 Application Server Package Setup

MC/SG
package
VG Namelvol NamesLater Mount PointDevice minor number
ap<SID><INSTNR>vg<SID><INSTNR>lvsap<SID>/usr/sap/<SID>/D<INSTNR11

 

  • Configure a volume group for each application server package according to step IS040:

  • The use of local executables for the application server package is required. Configure local executables according to Installation Step IS080.

  • Synchronize all cluster nodes according to step IS150 to IS210.

  • For each application server package, configure .conf and .cntl files according to Installation Step IS377:

# cmmakepkg -p /etc/cmcluster/<SID>/ap<SID><INSTNR>.conf

# cmmakepkg -s /etc/cmcluster/<SID>/ap<SID><INSTNR>.cntl

  • The application server package must be named according to the following convention:

ap<SID><INSTNR>

  • Copy the runtime control logic file from /opt/cmcluster/SID/sapap.cntl to /etc/cmcluster/<SID>:

# cp /opt/cmcluster/SID/sapap.cntl /etc/cmcluster/<SID>

See IS377.

  • Configure DBRECONNECT for each application server that will be configured within a package according to Installation Step IS410.

  • Configure each application server within the ASPLATFORM[@] array to "SG-PACKAGE" according to IS420.

  • For each application server package, configure ASTREAT[@] as follows:

ASTREAT[@]=2: halt the application server package after switching of ci- or dbci-package (in ap<SID><INSTNR>.conf set AUTO_RUN to NO)

ASTREAT[@]=1: start the application server package when starting the dbci- or ci-package (in ap<SID><INSTNR>.conf set AUTO_RUN to NO)

ASTREAT[@]=0: start/halting/switching is controlled by the cluster management, the dbci- or ci-package related to the application server package is not controlling the application server package (in ap<SID><INSTNR>.conf set AUTO_RUN to YES).

  • Adjust all settings according to steps IS610, IS630, IS650, IS659, IS660 and IS710 in sequence.

  • Create a "debug" file in /etc/cmcluster and start the application server package on all nodes where it should run.

  • Complete the SAP specific settings according to step IS920 to IS940.

Your application server package has now been configured completely. Remove the "debug" file and restart the package to see whether the SAP application server comes up correctly on all nodes configured.

SGeSAP configuration for SCM High Availability - APO/LiveCache

Configuring a HA LiveCache system requires some additional task that differ from a standard R/3 configuration. The APO system itself can be treated as an additional SAP R/3 system and therefore can be configured in SGeSAP using the standard installation steps.For the setup of LiveCache on SGeSAP it is required to follow the attached special installation steps for LiveCache. These steps are based on the SAP documentation "LiveCache and High Availability on Unix platforms" and "Backup and recovery for APO 3.0". It is recommended to read these documents before proceeding with the SGeSAP configuration of LiveCache.

It is required to follow the listed SAP OSS notes appropriately: 383312, 383468, 154997, 111865.



LC Installation Step:

Level: OS552

Customization control/config files.

The LiveCache is configured similar to a standard db-package. Execute the following steps for the configuration of a LiveCache package in the appropriate order:

  • Follow installation step IS370 and IS375. In addition these steps are required:

    # cp /opt/cmcluster/sap/SID/saplc.cntl /etc/cmcluster/<SID>/saplc.cntl

    # cp /opt/cmcluster/sap/SID/saplc.mon /etc/cmcluster/<SID>/saplc.mon

  • Customize the package control and configuration files according to IS380



LC Installation Step:

Level: OS553

Customize sap.conf. Customize sap.conf appropriately. Only the following parameters in sap.conf are relevant to set for a LiveCache package:

  • DB=LC

  • DBRELOC=<reloclc>

  • TRANRELOC=<reloctrans>

  • CLEANUP_POLICY=strict-normal

The strict option should be set in order to guarantee the LiveCache package gets all resources required on the adoptive node. Remember that this option can crash a system running on the adoptive node.

  • RMDEP[*] array Systems - an additional APO Application server or a complete development system - that are running on the adoptive node need to be shut down before the LiveCache package can start. Specify systems running on the adoptive node using the RMDEP[*] array. Make sure the remsh access to this system is working fine:

RMNR[0]=<SYSTEMNUMBER>;RMDEP[0]=0 ;RMADM[0]=<SID>admRMDEPNR[0]=<SYSTEMNUMBER>;RMDEPHOST[0]=<adoptive_node>;RMDEPPLATFORM=HP-UXRMDEPNR[1]=-1

See the examples given in sap.conf for more details on how to set this array.



LC Installation Step:

Level: OS554

Set up for LiveCache Monitor

SAP recommends the use of a monitor in order to test the availability of LiveCache periodically. This monitor periodically checks the availability of the LiveCache system. If the monitor recognizes the LiveCache to be unavailable, it will try to restart LiveCache several times on the node it is currently running. It will switch the package when the LiveCache is still unavailable.

The monitor program is shipped with SGeSAP in the saplc.mon file. Follow the attached steps on how to integrate the monitor into the LiveCache package configuration. The monitor actually runs as a Servcice attached to a MC/ServiceGuard package. Find additional information about services in MC/ServiceGuard environments in the "Managing MC/ServiceGuard" documentation.

Service configuration

Configure Service ]<SID> for the monitor in file /etc/cmcluster/<SID>/lc.conf:

  • SERVICE_NAME <SID> SERVICE_FAIL_FAST_ENABLED NOSERVICE_HALT_TIMEOUT 300

  • Configure Service Name <SID> for the monitor in file /etc/cmcluster/<SID>/lc.conf:SERVICE_NAME[0]="<SID> "SERVICE_CMD[0]="/etc/cmcluster/LHP/saplc.mon monitor"SERVICE_RESTART[0]="-r 2"

Refer to the comments in the configuration and control files to get more information about setting the parameters appropriately. The examples show reasonable values. The SERVICE_RESTART[0] parameter sets the number of restarts MC/ServiceGuard will try to restart the service on the node it was running. When this number is met the MC/ServiceGuard will switch the package to the adoptive node. The number of the actual service restarts can be found when executing "cmviewcl -v".The monitor can be paused/resumed by placing/removing a lc.debug file in /etc/cmcluster/<SID>. This is helpful when configuring LiveCache and running the LiveCache package in debug-mode.The file /sapdb/LHP/db/sap/lccluster is used by the LiveCache program lcinit to indicate that the LiveCache is running in a cluster environment.



LC Installation Step:

Level: OS555

Configure LiveCacheLiveCache need to be aware it is running in a cluster environment. Therefore several configurations are required.

Inform LiveCache about Clustering with MC/ServiceGuard:

  • Create /sapdb/LHP/db/sap/lccluster file by this symbol link:
    ln -s /etc/cmcluster/LHP/saplc.mon /sapdb/LHP/db/sap/lccluster

LiveCache Configuration

Volumegroups and filesystemsThe LiveCache dev-spaces (data, log, system) need to be placed on the MC/ServiceGuard-shared disks. Usually these dev-spaces are placed on rawdevices. Additionally /sapdb/programs and /sapdb/data need to be on shared devices. See attached table for more information about the volumegroup needed for the LiveCache:

Table 2-12 Title not available (LiveCache Configuration)

LiveCache packageVG Namelvol NamesMount Point Usage

Device Number

lc<SID>vg<SID>rlvLHP1raw - data1

06

  rlvLHP2raw - data 2

  rlvLHP3raw - data 3

  rlvLOGraw - log

  lvSYS/sapdb/<SID>/dbsys

lvSAPDB

/sapdb

 

Cluster node synchronization

  • Synchronize /usr/spool/sql recursively to the adoptive node:

  • Synchronize the following ports to /etc/services:

  • sql30 7200/tcp

  • sql6 7210/tcp

  • Synchronize /etc/passwd with the <SID>adm

  • Synchronize /etc/group with group "sapsys"



LC Installation Step:

Level: IS556

Configure LiveCache connections within APO:

Running LiveCache within a MC/ServiceGuard cluster package means that the LiveCache instance is now configured for the relocatable IP of the package. This configuration needs to be adopted in the APO system that connects to this LiveCache.

Figure 2-1 “LiveCache Connections Within APO” shows an example for configuring "LCA" to "reloc8".

Figure 2-1 LiveCache Connections Within APO

LiveCache Connections Within APO

Run SAP transaction "lc10" and configure the logical LiveCache names "LCA" and "LCD" to listen to the relocatable IP, which the LiveCache-package is running under.



LC Installation Step:

Level: IS557

Configure XUSER file in the APO-user homedirectoryThe XUSER file in the home directory of the APO-user is the file that holds the connection information and grant information for a client connecting to LiveCache. The XUSER content needs to be adopted to the relocatable IP the LiveCache in running on.Run the following commands on every APO-Application server:

# su - <SID>adm(<SID> is there the SID of the APO-system)

# dbmcli -d <LIVECACHE_SID> -n <LC_relocatable_IP> \

-us control,control

To verify that the relocatable IP is in the XUSER file, run the following command as <SID>adm of the APO user:

# dbmcli -ux SAPR3,SAP -ul

You should get output like the following for a relocatable hostname "reloc8" and a physical hostname "hpcc072":

OK
DEFAULT SAPR3
1LHPhpcc072 CONTROL
1LHPreloc8 CONTROL


LC Installation Step:

Level: IS558

Verify LiveCache package setup

Verify your LiveCache installation following the attached steps:

  • Touch a /etc/cmcluster/<SID>/debug file and /etc/cmcluster/<SID>/lc.debub file and startup the LiveCache package

  • Manually start LiveCache as APO <SID>adm using transaction LC10

  • Shutdown LiveCache package

  • Remove both debug files

  • Startup/shutdown the LiveCache package and check the logfile in /etc/cmcluster/<SID> for consistency

HP Somersault Integration with SGeSAP

HP Somersault was introduced with SAP R/3 Release 4.6B to protect the SPOF enqueue server. HP Somersault is only supported in an MC/ServiceGuard cluster environment. The installation steps described in this section must be followed when enabling HP Somersault with SGeSAP. Refer to Chapter 3, "Chapter 3 “SGeSAP Administration”," for additional information about HP Somersault in SGeSAP.


 

Optional Step:

Level: OS559

Configure HPSOM to identify HP Somersault use.

Set HPSOM=1 if HP Somersault is enabled and the SAP R/3 enqueue server is protected by HP Somersault. This is the only parameter to set within SGeSAP that enables HP Somersault. The default value is HPSOM=0.

The environment variable HPSOM_HOME sets the launching or shutdown of HP Somersault. The standard path /var/opt/hpsom/<SID> is automatically set in the SGeSAP environment. Refer to the hidden options section in sap.conf to set a non standard path for HPSOM_HOME.

When HPSOM is set to 1 there are additional parameters to be set in the SAP R/3 profile and standard HP Somersault must be successfully configured. Refer to your HP Somersault documentation.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.