Cluster Server 7.3.1 Configuration Guide for SAP Web Application Server - Windows
- Section I. Getting Started
- Introducing the Veritas High Availability Agent for SAP Web Application Server
- About the Veritas High Availability agent for SAP Web Application Server
- How application availability is achieved in a physical environment
- How does the Veritas High Availability solution work
- Agent functions
- Agent attributes for SAP Web Application Server
- Installing the agent for SAP Web Application Server
- Installing and configuring the SAP Web Application Server for high availability
- Monitoring an SAP instance
- About installing SAP Web Application Server for high availability
- About configuring SAP Web Application Server for high availability
- Setting up SAP systems for clustering
- Installing SAP system using Virtual Hostname
- Configuring the agent for message server restart
- Configuring the Enqueue Replication Server
- Clustering an SAP instance
- Configuring the first node in the cluster
- Configuring all other nodes in the cluster
- Creating and adding domain groups and users
- Creating and adding local groups and users
- Creating and adding local groups and users
- Creating sapmnt and saploc share directories
- Configuring the first node in the cluster
- Configuring all other nodes in the cluster
- Creating and adding domain groups and users
- User accounts
- Groups
- Adding new domain groups and users
- Creating SAP system users, sapsidadm and SAPServiceSAPSID
- Adding the sapsidadm user to the SAP_SAPSID_GlobalAdmin Group
- To add the SAPServiceSAPSID user to the SAP_SAPSID_GlobalAdmin Group
- User accounts
- Groups
- Adding new domain groups and users
- Creating SAP system users, sapsidadm and SAPServiceSAPSID
- Adding the sapsidadm user to the SAP_SAPSID_GlobalAdmin Group
- To add the SAPServiceSAPSID user to the SAP_SAPSID_GlobalAdmin Group
- Creating and adding local groups and users
- Creating and adding local groups and users
- Creating sapmnt and saploc share directories
- Configuring the SAP systems on Windows Server 2008/2012
- Introducing the Veritas High Availability Agent for SAP Web Application Server
- Section II. Configuring the application for high availability
- Section III. Troubleshooting the Agent
- Troubleshooting the agent for SAP Web Application Server
- Starting the SAP Web Application Server outside a cluster
- Troubleshooting common problems
- Unable to install the Veritas High Availability agent for SAP Web Application Server
- Unable to see an entry in the SAP MMC for an SAP instance
- The agent for SAP Web Application Server fails to bring online an SAP instance resource through VCS
- SAP instance does not come online, and the startsap.exe command exits with exit code -1
- In case of an Enqueue server failure, the Enqueue server instance fails to take over the lock table from the Enqueue Replication server instance
- The ensmon.exe command returns exit code 4 for a Enqueue server instance
- The return code of the ensmon.exe command is 8 for an Enqueue Replication server instance
- The Enqueue server instance does not fail over to the correct Enqueue Replication server instance
- In case of a resource fault, the Service Group does not fail over
- Unable to see an entry in the SAP MMC for an SAP instance
- The agent for SAP Web Application Server fails to bring online an SAP instance resource through VCS
- SAP instance does not come online, and the startsap.exe command exits with exit code -1
- In case of an Enqueue server failure, the Enqueue server instance fails to take over the lock table from the Enqueue Replication server instance
- The ensmon.exe command returns exit code 4 for a Enqueue server instance
- The return code of the ensmon.exe command is 8 for an Enqueue Replication server instance
- The Enqueue server instance does not fail over to the correct Enqueue Replication server instance
- In case of a resource fault, the Service Group does not fail over
- Reviewing SAP Web Application Server agent log files
- Reviewing error log files
- Checks for an SAP Add-In Usage Types
- Troubleshooting the agent for SAP Web Application Server
- Appendix A. Sample Configurations
- About the sample configuration for the agent for SAP Web Application Server
- Sample agent type definition for SAP WebAS
- Sample SAP resource configuration in a physical environment
- Sample SAP primary application server instance
- Sample SAP additional application server instance
- Sample SAP Central Services instance
- Sample SAP Enqueue Replication server instance
- Sample SAP primary application server instance
- Sample SAP additional application server instance
- Sample SAP Central Services instance
- Sample SAP Enqueue Replication server instance
- Sample service group configurations in a physical environment
- Sample service group configuration for ABAP and Java Usage types
- Sample service group configurations for SAP systems on Windows Server 2008/2012
- Sample configuration for SAP Central Services Instances service group for Add-In installation Usage Type
- Sample resource dependency for SAP Central Services Instances service group for Add-In installation usage type
- Sample configuration for SAP Enqueue Replication Server Instances service group for Add-In installation Usage Type
- Sample resource dependency for SAP Enqueue Replication Server Instances service group for Add-In installation Usage Type
- Sample configuration for SAP Central Services Instances service group for Add-In installation Usage Type
- Sample resource dependency for SAP Central Services Instances service group for Add-In installation usage type
- Sample configuration for SAP Enqueue Replication Server Instances service group for Add-In installation Usage Type
- Sample resource dependency for SAP Enqueue Replication Server Instances service group for Add-In installation Usage Type
- Sample service group dependency for SAP Web Application Server
- Sample configuration in a virtual environment
Configuring the Enqueue Replication Server manually
To manually configure the Enqueue Replication Server for SAP Web Application Server
- Enable replication in the (A)SCS instance by adding the following parameter to the instance profile of (A)SCS instance:
(SAPSID_InstName_VirtualHostname).
enque/server/replication = true
Restart the (A)SCS instance to make the change effective.
Let us assume a two-node software failover cluster, running on the physical hosts - host A and host B, and a clustered (A) SCS instance with the following parameters.
SCS SAPSID = PLL
SCS INSTNO = 01
SCS HOST = sapscshost (virtual host name)
This instance (that is, the Enqueue Server's lock table) must be protected with an ERS instance as follows:
ERS SAPSID = PLL
ERS INSTNO = 11 (a free instance number)
ERS HOST = sapershost (virtual hostname)
- On one of the physical hosts ( host A or host B) perform the following steps as user sidadm or domain administrator:
Create the directory structure as follows:
drive:\usr\sap\PLL\ERS11\exe
drive:\usr\sap\PLL\ERS11\log
drive:\usr\sap\PLL\ERS11\data
drive:\usr\sap\PLL\ERS11\work
- Copy all the binaries from (A)SCS instance exe directory into the ERS instance exe directory.
- Create a new ERS instance profile in drive:\usr\sap\PLL\SYS\profile.
SAPSYSTEMNAME = PLL SAPSYSTEM = 11 INSTANCE_NAME = ERS11 DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTAMD64 DIR_INSTANCE = <drive>:\usr\sap\$(SAPSYSTEMNAME)\$(INSTANCE_NAME) DIR_EXECUTABLE = $(DIR_INSTANCE)\exe DIR_PROFILE = $(DIR_INSTALL)/profile _PF = $(DIR_PROFILE)\PLL_ERS11_sapershost SAPGLOBALHOST = sapscshost SAPLOCALHOST = sapershost #---------------------------------------------------------------- # Copy SAP Executables #---------------------------------------------------------------- _CPARG0 = list:$(DIR_CT_RUN)/scs.lst Start_Program_01 = immediate $(DIR_CT_RUN)\sapcpe$(FT_EXE) pf=$(_PF) $(_CPARG0) #----------------------------------------------------------------- # Settings for enqueue monitoring tools (enqt, ensmon) #----------------------------------------------------------------- enque/process_location = REMOTESA rdisp/enqname = $(rdisp/myname) #----------------------------------------------------------------- # standalone enqueue details from (A)SCS instance #----------------------------------------------------------------- SCSID = 01 SCSHOST = sapscshost enque/serverinst = $(SCSID) enque/serverhost = $(SCSHOST) enque/serverport = 32$(SCSID) enque/enrep/poll_interval = 0 enque/enrep/poll_timeout = 120 enque/enrep/inactive_action = sleep #----------------------------------------------------------------- # Start enqueue replication server #----------------------------------------------------------------- _ER = $(DIR_EXECUTABLE)\enrepserver$(FT_EXE) Start_Program_02 = local $(_ER) pf=$(_PFL) NR=$(SCSID)
For DIR_CT_RUN in this ERS profile, take the value DIR_CT_RUN from the (A)SCS instance profile. If the (A)SCS instance has not configured DIR_CT_RUN in its profiles, take the value specified for DIR_EXECUTABLE from the (A)SCS instance profile.
It is essential that the binaries from (A)SCS and ERS instance are from the same binary set.
- Use the sapstartsrv.exe command to create an SAP Windows Service for the Enqueue Replication Server instance.
- Start the SAP instance for the Enqueue Replication Server. Ensure that the instance starts successfully.
The SAP instance is now ready for clustering and to control the life time of Enqueue Replication Server using VCS.