Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Vas Mitra
SAP Solutions Engineer
VMware
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Table of Contents
1. Introduction..................................................................................................................................................................1
1.1. SAP Platform Overview ....................................................................................................................................... 1
1.2. VMware® Infrastructure 3 Software Suite ....................................................................................................... 2
1.2.1. VMware ESX Server ..................................................................................................................................................................... 2
1.2.2. VMware® VirtualCenter ............................................................................................................................................................. 3
1.3. HP Hardware Overview....................................................................................................................................... 3
1.4. SAP Datacenter Benefits ..................................................................................................................................... 4
1.4.1. Server Containment ................................................................................................................................................................... 4
1.4.2. Availability......................................................................................................................................................................................... 4
1.4.3. Rapid Provisioning....................................................................................................................................................................... 5
2. Deployment Approach Summary...................................................................................................................6
2.1. Install SAP in Virtual Machine ............................................................................................................................ 6
2.2. Create Template & Provision New SAP System from Template ............................................................... 6
2.3. Snapshots ............................................................................................................................................................... 7
2.4. VMotion – Live Migration ................................................................................................................................... 8
2.5. VMotion – Cold Migration.................................................................................................................................. 8
2.6. High Availability .................................................................................................................................................... 8
2.7. SAP on VMware Deployment Tips / Best Practice Guidelines .................................................................. 9
3. Infrastructure Environment.............................................................................................................................. 10
3.1. Software and Hardware ....................................................................................................................................10
3.2. Logical Architecture...........................................................................................................................................10
3.3. Physical Architecture .........................................................................................................................................11
4. Install SAP ECC 6.0 in Virtual Machine (SID = TEM)............................................................................ 12
4.1. Install VMware Infrastructure 3........................................................................................................................12
4.2. Create Virtual Machine......................................................................................................................................13
4.3. Guest OS Install ...................................................................................................................................................17
4.4. SAP Install .............................................................................................................................................................22
5. Create Template...................................................................................................................................................... 23
5.1. Run SAP orabrcopy Tool ...................................................................................................................................23
5.2. Uninstall CI Instance...........................................................................................................................................25
5.3. Uninstall Oracle Home ......................................................................................................................................30
5.4. Create Template Using VI Client.....................................................................................................................34
6. Provision New SAP System from Template (new SID = DEV)...................................................... 38
6.1. Background - SAP System ID Rename based on SAP System Copy Guide .........................................38
6.2. Prepare for Guest OS System Customization..............................................................................................38
6.3. Clone New Virtual Machine from Template ................................................................................................39
6.4. Install Oracle software (SID = “DEV”)..............................................................................................................51
6.5. Run sapinst...........................................................................................................................................................51
7. Snapshots.................................................................................................................................................................... 71
7.1. Take First Snapshot and Upgrade from Windows Server 2003 SP1 to SP2 .........................................71
7.2. Take Second Snapshot and Rollback to First...............................................................................................75
8. VMotion – Live Migration.................................................................................................................................. 78
8.1. Submit SAP Batch Workload............................................................................................................................79
8.2. Migrate Virtual Machine from vega7063 to vega7062 .............................................................................84
8.3. Migrate Virtual Machine from vega7062 to vega7063 .............................................................................89
9. VMotion – Cold Migration ................................................................................................................................ 94
10. High Availability................................................................................................................................................. 98
11. Appendix 1 – ESX Server Configuration Screenshots ............................................................. 102
12. Appendix 2 - SAP on VMware Deployment Tips / Best Practice Guidelines ............. 108
13. Appendix 3 – HP Infrastructure Environment.............................................................................. 109
VMware White Paper VMware and SAP Software Solutions Deployment Guide
1. Introduction
This guide demonstrates the deployment of SAP ERP software on the VMware Infrastructure
platform and showcases the benefits that VMware solutions provide for the SAP datacenter.
Users will find the technical steps, accompanied by screenshots, for using the following VMware
features with an SAP ERP ECC 6.0 system installed in a virtual machine: template creation and
cloning ; VMware® Snapshots; VMware® VMotion™; VMware® High Availability (HA). These features
can be used in an SAP environment to achieve server containment; deployment and management
flexibility; cost effective high availability; and rapid provisioning of a new system.
For an overview of VMware Infrastructure features and its business benefits in SAP environments,
consult the whitepaper, VMware® Infrastructure for SAP Enterprise Applications: Use Cases, which can
be downloaded from the SAP alliance showcase on VMware.com.
SAP Business Suite applications are based on the SAP NetWeaver application and integration
platform. SAP enterprise applications can be deployed in a two or three-tier architecture. The
three-tier client/server architecture generally consists of a presentation layer, an application layer,
and a database layer. These three layers can run separately on different computers or all together
on the same computer, depending on the requirements and size of the SAP solution being
deployed. The presentation and application server layers can be distributed over multiple
computers. The three-tier architecture scales to support large number of users. The two-tier
architecture is usually sufficient for many smaller and midsize companies, as well as for sandbox,
development, training and test systems.
The SAP application layer can be further broken down into the following components:
• Central services, which include messaging (manages client connections and communications)
and enqueue (SAP lock management) services.
• Application services that process online and batch workloads, which can be further
categorized into the following types:
o ABAP: processes workloads based on SAP’s proprietary programming language.
o Java: processes Java based workloads.
o ABAP + Java: processes both ABAP and Java based workloads.
o The specific SAP product determines the type of application service required (ABAP,
Java or both).
• SAP enables a distributed architecture that allows the above services to be centralized or
distributed across separate instances or servers, depending on sizing and availability
requirements. An instance that includes both central and application services is referred to as
the Central Instance (CI). An instance that includes only application services is called a Dialog
instance.
In the steps described in this document, you will install the core SAP ERP product. . The
architecture includes a database and Central Instance (CI) running ABAP only application services.
1
VMware White Paper VMware and SAP Software Solutions Deployment Guide
develop this guide, VMware used the Proliant BL460c half-height blade configured as shown in
Appendix 13.
The ProLiant BL460c and BL465c servers double the amount of computing capacity in the same
space versus full-height blades while keeping the same flexibility, power management and system
control and VI3 best practices. The ProLiant BL460c and BL465c offer hot-plug hard drives, large
memory capacity, multiple expansion slots and the latest generation processors, making them
favorable choices for VMware Infrastructure. For more information on using the ProLiant
BL460c and BL465c servers for a VMware Infrastructure, see the HP reference configuration
guide on http://h71028.www7.hp.com/ERC/downloads/4AA0-9717ENW.pdf.
HP BladeSystem servers, storage, and other modular components can be easily added or removed
without having to power off. HP BladeSystem c-Class reduces space requirements and can be set
up or reconfigured easily. HP provides a common and intuitive interface to monitor and control all
HP BladeSystem resources—server, storage, network, power and cooling.
1.4.2. Availability
For customers who run SAP environments on x86 hardware and who can accept lower levels of
availability (for example on non-production systems), VMware HA and VMotion offer a cost-
effective alternative to expensive third-party clustering and replication solutions. With VMware HA,
failed SAP instances and virtual machines on one ESX Server host can be restarted on another ESX
Server host within minutes. With VMware VMotion, it is possible to migrate live SAP virtual
machines between ESX Server hosts, and to move SAP instances off failing hardware, with minimal
interruption to end users.
Cloning ensures a controlled virtual machine configuration so deployment is less error-prone and
time-consuming. Administrators can roll out a robust SAP environment in a very short period of
time.
The installation of SAP in a virtual machine is no different from that of a physical environment.
2.2. Create Template & Provision New SAP System from Template
This scenario demonstrates rapid deployment of a unique ECC 6.0 system based on VMware
template cloning features and the SAP system ID rename procedure (as per the SAP System Copy
Guide).
A template is a golden image of a virtual machine that can be used as a master copy to create and
provision new virtual machines. It includes the guest OS and application data. In the tests here the
template consists of a full installation of a base SAP ECC 6.0 (initially installed with System ID, SID =
TEM) system on Windows Server 2003. The VMware Infrastructure cloning feature allows creation
of a new virtual machine from the template. The subsequent SAP system ID (SID) renaming
process creates a new ECC 6.0 system running on the same guest OS but with different SID and
host name. This process is much faster than installing a virtual machine, guest OS and ECC 6.0
system from scratch.
The SAP SID rename step is required to deploy a unique SAP system into the environment ,per SAP
note 11692 (“Renaming the system ID”), found in the System Copy guide from SAP available at
http://service.sap.com/instguides. The SAP guide used here is “System Copy for SAP Systems
Based on SAP NetWeaver 2004s SR2 ABAP,” which covers different combination of databases and
operating systems. The parts relevant for the tests described here are: Oracle on Windows
homogeneous system copy option based on the Oracle backup/restore method.
The complete template, cloning and rename process is shown in the following diagrams.
Specialized terms used in the diagram are defined here:
• ”sapinst” : the SAP installation and migration tool that performs the install of SAP software and
database. It also includes features to migrate/rename SAP systems.
• “orabrcopy”: a SAP Java tool that connects to a live Oracle instance and generates control and
parameter files which are used to rename the SID of an Oracle database.
The timings are approximate and are based on the tests conducted in the lab. Faster deployment
from the template has the following features:
• General:
o Oracle software is uninstalled in the source template so that it can be reinstalled in the
new virtual machine to the new SID and host name.
o SAP CI instance is uninstalled in the source template, as the SAP System Copy process
in the new virtual machine reinstalls a new CI for the new SID and host name.
• Advantages:
o Faster than an ECC 6.0 installation from scratch.
o The SAP system rename is based on a documented and supported SAP procedure
(The System Copy Guide).
o The SAP System Copy guide covers other SAP certified databases (not just Oracle).
o The process can be extended for other variations of the SAP application server,
ABAP+Java or Java (covered by the System Copy Guide).
• Disadvantages:
o Includes manual steps (Oracle software deinstall and reinstall, “sapinst” input screens).
o Requires some of the SAP install media CDs/DVDs (Oracle software, Oracle client, SAP
kernel).
• Potential improvements to this process:
o It might be possible to automate the change of the SID and host name of the Oracle
software and database (with Oracle tools or by way of command line) using a script.
o Users who want to try this improvement need to check with the database vendor and
SAP to determine if such options are supported.
2.3. Snapshots
This test demonstrates software patch testing using the VMware Infrastructure 3 Snapshot feature
and highlights the benefits of being able to revert back to the state prior to the software update in
case of errors; or to continue with the current state when tests are successful. This process can be
applied to an SAP development or test system for testing patches at the following levels: OS; SAP
kernel; SAP ABAP or Java software.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Users need to be aware that any changes made to SAP during the testing phase after a patch or
upgrade has been applied will be lost in the event of a rollback to a previous snapshot.
CPU performance charts from VI client and SAP monitoring transactions (SM50, SM37, SM21)
executed before and after the migration clearly show continuation of the batch job and no
disconnections.
The SAP license is not impacted by the migration of the virtual machine between physical servers.
The SAP license utility “saplicense –get” returns the same hardware key when running on either
server. The hardware key, required for generation of an SAP license, is based on the virtual
machine, not on the physical ESX Server host.
The tests generated the following results, based on the CPU performance charts from the VI client:
• The batch workload generates about 50% CPU utilization on the 4-way ESX Server host.
• The CPU utilization in the virtual machine is near 100%.
• The CPU utilization of the ESX Server host is transferred to the target host after the migration,
meanwhile the utilization on the source host drops to zero.
• At the time of migration, a CPU spike is observed on the source ESX Server host machine
before falling to zero. This spike is attributed to the copying of the memory state from the
source ESX Server host.
This functionality provides a benefit, for example, during the initial setup of an environment where
shared storage (SAN, iSCSI, NAS) might not yet be available but local storage on the ESX Server
host is present with adequate free capacity. SAP software can be installed into a virtual machine
on the local datastore and migrated later to shared storage after the SAN is configured.
Server failure is simulated using a manual reboot of the ESX Server host and the virtual machine is
restarted on the remaining server. This feature does not automatically restart the SAP application,
which needs to be manually restarted after the virtual machine is powered up on the failover
server.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
3. Infrastructure Environment
3.1. Software and Hardware
The creators of this guide used the following software and hardware.
Software:
• VMware Infrastructure 3: ESX Server 3.0.1; VirtualCenter 2.0; VMware Infrastructure (VI) Client 2.0
• Guest OS: Windows Server 2003 SP1
• SAP ECC 6.0 Unicode / NetWeaver 2004s R2 / Oracle 10g / ABAP stack
• A single virtual machine running an SAP CI and Oracle Database instance on Windows Server
2003 SP1
Hardware:
• ESX Server hosts: 2 x HP Proliant BL 460c ; 4 CPU x 3 GHz each; 16GB RAM
• SAN: HP EVA 6000 2C2D disk array (14 ea. 146GBHDD)
• 2 ea. HP SAN Switch
• Network: Gigabit Ethernet
Appendix 1 shows screenshots of the ESX Server configuration. The following table gives an
overview of the ESX Server setup used for these tests.
VM memory assigned 3 GB
VM CPUs assigned 2
For this test environment I/O performance is not a consideration and LUN count is limited; as a
result the 115GBstorage for the virtual machine is assigned to one LUN.
Note: a better practice would be to separate the system and application data onto separate
LUNs.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on Finish.
Select “Connect at power on.” Select “datastore ISO file.” Select Browse and navigate to
/storage1/iso_images/win2k3sp1.iso. Click on OK.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
(At the ESX Server level the Windows iso image is copied to: /vmfs/volumes/storage1
(1)/iso_images.)
Follow instructions for standard Windows Server Install. To navigate cursor out of the console area,
select <Ctrl> + <Alt>. Optimal mouse performance is achieved after the VMware Tools software
package is installed on the Windows guest operating system immediately after the Windows
installation.
After the Windows install is complete, select “sap_vm,” right mouse click -> Send Ctrl+Alt+Del (to
log in to Windows.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Select OK.
Proceed with a typical install of VMware tools. After install, at the prompt, set the hardware
acceleration to full and restart Windows. Mouse navigation will be much easier after this.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
For instructions on the SAP install consult the SAP install guide, “SAP ERP 2005 SR2 ABAP on
Windows:Oracle” which is available at http://service.sap.com/instguides.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
5. Create Template
Current status: SAP system TEM running in sap_vm, on ESX Server host vega7063.
A golden image of the virtual machine is created as a template. This image will be used to
provision a new SAP system in the next sections.
An SAP Java tool, “orabrcopy” is used here. This tool is documented in the System Copy guide
from SAP, “System Copy Guide for SAP Systems Based on SAP NetWeaver 2004s SR2 ABAP.” The
guide is available at http://service.sap.com/instguides.
Menu select: Console Root -> SAP Systems -> TEM -> vega7066 0 right mouse click. Select
Shutdown. Confirmation window click on Yes. Enter Administrator password, click on OK.
Download the latest version of ORABRCOPY.SAR from SAP Marketplace (see SAP Note 784118 -
System Copy Java Tools) and unpack (using “sapcar –xvf”) into C:\oracle\orabrcopy.
Open Command prompt as user temadm and execute ora_br_copy.bat:
C:\oracle\orabrcopy\ora_br_copy.bat -generateFiles –forceLogSwitches –targetSid TEM –
password vmwaresap7 listenerPort 1527
The following output is generated in the command prompt window:
C:\oracle\orabrcopy>ora_br_copy.bat -generateFiles -forceLogSwitches -targetSid
TEM -password vmwaresap7 listenerPort 1527
Warning: JAVA_HOME environment variable is not set.
C:\oracle\orabrcopy>"java.exe" -showversion -cp ".\.;.\orabrcopy.jar;c:\oracle\T
EM\102\jdbc\lib\classes12.jar" com.sap.inst.lib.app.SecureStartup "" com.sap.ins
t.orabrcopy.OraBRCopy -oracleHome "c:\oracle\TEM\102" -sourceSid "TEM" -generate
Files -forceLogSwitches -targetSid TEM -password vmwaresap7 listenerPort 1527
java version "1.4.2_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_14-b05)
Java HotSpot(TM) Client VM (build 1.4.2_14-b05, mixed mode)
SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 31 14:17:31 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected.
Database closed.
Database dismounted.
ORACLE instance shut down.
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 31 14:17:54 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
ORACLE instance started.
Total System Global Area 507510784 bytes
Fixed Size 1249848 bytes
Variable Size 264244680 bytes
Database Buffers 239075328 bytes
Redo Buffers 2940928 bytes
Database mounted.
Database opened.
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 31 14:18:08 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected.
Database closed.
Database dismounted.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Menu: SAP ERP 2005 Support release 2 -> Additional Software Life Cycle Tasks -> Uninstall ->
Uninstall – System / Standalone Engine.
Click on Next.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Right click Sql Plus icon, select properties, Change target to: C:\oracle\TEM\102\BIN\sqlplusw.exe
/nolog
Double click on Sql Plus icon - this displays Oracle SQL*Plus Window. Enter following on SQL
command line:
SQL> set instance tem
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 -
Production
With the Partitioning, OLAP and Data Mining options
SQL> connect / as sysdba
Connected to idle instance
SQL>
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Access the Oracle services using Windows menu: Start -> All Programs -> Administrative Tools ->
Services. Stop all the Oracle services: OracleJobSchedulerTEM; OracleServiceTEM;
OracleTEM102iSQL*Plus; OracleTEM102TNSListener.
Click on Remove.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on Yes.
Click on Close.
Click on Cancel.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Oracle software has been removed but the Oracle data files all remain under c:\oracle\TEM. These
will be saved as part of the template.
Click on Finish.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Select “Tasks & Events” tab, select “Clone Virtual Machine” – progress of task is shown (this lasted
about 70 minutes for a 115GB VM).
This creates a template storing the Oracle backup (SID = “TEM”) of the SAP ECC 6.0 system.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
The System Copy Guide covers the rename procedure for different databases. The Oracle specific
steps followed here are based on having an exact copy of the database files, such as an offline
backup or in this case a backup of the database in the template (created in the previous section).
The windows guest OS environment is customized using “sysprep” utility tools. These tools can be
obtained either from the Microsoft website or from the Windows OS CD and need to be installed
on the windows machine where VirtualCenter is running.
Select sap_vm_golden, right mouse click -> “Deploy Virtual machine from Template.”
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Enter new virtual machine name: sap_vm_clone. Select datacenter HP. Click on Next.
The customize options below will appear based on the “sysprep” set up in section “Prepare for
Guest OS Customization.”
Select “Use a specific name”; enter “vega7067” – host name of new virtual machine. Click on Next.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Leave blank. License key will be provided upon system boot after cloning. Click on Next.
Click on Next.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on Next.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on Finish.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on Finish.
View progress in VI client under “Tasks and Events.”
Windows environment variables can be set with: Start -> My Computer, right mouse click, select
Properties -> Advanced Tab -> Environment Variables
Run the Oracle Universal Installer to install the database software for SID = DEV. Run the
sapserver.cmd executable from the SAP Oracle install DVD, as documented in Chapter 4 of the
SAP install guide “SAP ERP 2005 SR2 ABAP on Windows:Oracle”.
Execute the “sapinst” tool located in the master installation CD. In this case it has been copied to a
network drive Z:
Z:\51032260_BS_2005_SR2_SAP_Installation_Master_ia32\IM_WINDOWS_I386\sapinst.exe
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Select menu: SAP ERP 2005 Support Release 2 -> Additional Software Life-Cycle Tasks -> System
Copy -> Oracle -> Target System -> Central System -> Based on AS ABAP -> Central System
Installation
Click on Next.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Restart sapinst:
Z:\51032260_BS_2005_SR2_SAP_Installation_Master_ia32\IM_WINDOWS_I386\sapinst.exe
Select menu: SAP ERP 2005 Support Release 2 -> Additional Software Life-Cycle Tasks -> System
Copy -> Oracle -> Target System -> Central System -> Based on AS ABAP -> Central System
Installation.
Click on Next.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Enter field ABAP schema: SAPSR3. The remainder of fields use defaults. Click on Next.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
The rename stops at the above screen with a notification window. Proceed as follows:
Update c:\orabrcopy\CONTROL.SQL – change all occurrences of TEM to DEV.
Rename c:\orabrcopy\initTEM.ora to initDEV.ora and change all occurrences of TEM to DEV.
Copy CONTROL.SQL to install directory: C:\Program
Files\sapinst_instdir\ERP\LM\COPY\ORA\SYSTEM\CENTRAL\AS-ABAP
Copy initDEV.ora to C:\oracle\DEV\102\database.
Delete entries in: c:\oracle\TEM\oraarch\; c:\oracle\TEM\saparch;
c:\oracle\TEM\saptrace\background; c:\oracle\TEM\saptrace\usertrace
Delete all three “TEM” control files: see old initTEM.ora for location of control files.
Note: the previous two steps could have been performed before creation of template.
In Windows Explorer, move all subdirectories in c:\oracle\TEM to c:\oracle\DEV.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on OK.
The creation of a new SAP system from the golden template is now complete. The sapinst utility
creates a temporary license. A new permanent SAP license for the cloned SAP system needs to be
applied.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
7. Snapshots
Snapshots preserve the state of a virtual machine. This feature captures the entire state of a virtual
machine at the time of the snapshot is taken - including the memory state, the settings state
(virtual machine settings) and the disk state. Reverting to a snapshot returns these items to the
state they were in at the time the snapshot was taken. Using this feature allows tests to be run
with just one virtual machine. The test here demonstrates using Snapshots to test a guest OS
patch update.
Note: the Snapshot tests were carried out on the original virtual machine, sap_vm, before it
was used to create the template.
The following two snapshots are taken of sap_vm, with the following different states:
7.1. Take First Snapshot and Upgrade from Windows Server 2003 SP1
to SP2
Initially, guest OS is at patch level SP1 – see below.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
On the VI client, right click “sap_vm” -> snapshot -> take snapshot.
Shut down SAP completely, upgrade Guest OS Windows 2003 to SP2, restart SAP.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Create a correction request in SAP using transaction SE01 (SAP change management – tickets can
be created in SAP to change SAP business configuration and / or SAP programs). This step is
implemented here to simulate some activity and create a change in the system.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on Yes.
VMotion requirements:
• Both ESX Server hosts have compatible CPUs (same server types).
• Both ESX Server hosts are connected to a virtual switch assigned for VMotion (VMotion feature
enabled).
• Both ESX Server hosts are connected to a production switch for user access.
• sap_vm virtual disk and VMFS configuration files reside on shared storage connected to both
ESX Server hosts.
VMotion resource map displays the requirements: log in to VI client, select “sap_vm” -> tab “Maps.”
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Wait about five minutes and proceed to transaction SM50 to view the SAP processes.
Click on Next.
Click on Next.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on Finish.
VMotion progress shown in bottom pane – see below.
CPU utilization on vega7063 spikes and then drops to zero (time 10:57, see below).
VMware White Paper VMware and SAP Software Solutions Deployment Guide
CPU
CPU utilization on vega7062 increases to about 50% (time 10:57, see below).
While the virtual machine is running on ESX Server host vega7062, execute a remote desktop
session to the virtual machine and verify the SAP license using the SAP license program
“saplicense.”
VMware White Paper VMware and SAP Software Solutions Deployment Guide
On the VI client right click “sap_vm”, select Migrate and follow the same mouse clicks for the
migration as shown in screenshots above (target host is vega7063 / 156.153.117.63). Wait a few
minutes for the migration to complete. CPU utilization rises to about 50% on vega7063 (time
11:10, see below).
VMware White Paper VMware and SAP Software Solutions Deployment Guide
CPU utilization on vega7062 spikes and then drops to zero (time 11:10, see below).
CPU utilization in the virtual machine, sap_vm, is near 100%, but drops to zero for about one
minute during the two live migrations (approximate times 10.56 and 11:09, see below).
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Execute a remote desktop session to the virtual machine (on vega7063) and verify no change in
the SAP license.
Verify SAP processes are still running (uninterrupted) by way of transactions SM37 and SM50.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
SAP system log, transaction SM21, shows no disconnections in the timeframe from 10:40 – 11:20,
period of testing VMotion – see below.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on Next.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on Next.
Click Finish.
View progress in “Recent tasks” pane at bottom - see below.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
The storage relocation lasted about 50 minutes. After migration sap_vm is up and running on local
datastore, storage1.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Click on Finish.
Drag and drop the ESX Server hosts into HA Cluster (in the left pane). Select HA Cluster and select
Task and Events tab to view progress of the HA configuration.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
The following screenshots show the networking characteristics of both ESX Server installations.
VMware White Paper VMware and SAP Software Solutions Deployment Guide
VMware White Paper VMware and SAP Software Solutions Deployment Guide
VMware White Paper VMware and SAP Software Solutions Deployment Guide
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Generally no SAP specific settings exist within ESX Server. For best performance the following best
practices are recommended:
• Use the latest processor generations (Core2duo from Intel Xeon 51xx, 53xx, Rev. E/F AMD), due
to their enhanced support for virtualization.
• It is recommended to start a deployment with the smallest number of vCPUs needed (e.g. one
or two instead of four). This provides more flexibility and better load balancing over the
environment. It is easily possible to add additional vCPUs at a later point in time if needed.
• Follow SAP’s rules for setting up file systems for the database install. Distribute database files
over different disks. Separate log and database files. Use at least two separate VMFS (VMware
Filesystem) volumes to create the Virtual Disks.
• Do not over commit memory! VMware allows more virtual memory to be assigned to virtual
machines than the physical memory available on the host. Overcommitting is not
recommended with SAP as SAP allocates memory permanently and does not release it again.
To enforce this policy, set the “Memory Reservation” to the amount of memory configured for
the virtual machine. This ensures that the virtual machine running SAP will always have the full
amount of memory available. The same applies to the “CPU Reservation,” but this is only
recommended in case of performance problems, because the reserved resources are not
available to other virtual machines.
• Installation of VMware Tools is mandatory to avoid time conflicts. It is also recommended to
use NTP (Network Time Protocol) on the ESX Server host.
• Choose fixed/static memory allocation when using Microsoft SQL Server as the database. This
will avoid the allocation overhead of dynamic memory allocation. SQL Server has two basic
administrative options that control how much memory is used by the program: dynamic and
static allocation. Dynamic allocation allows the administrator to declare a range of memory
sizes; SQL Server can allocate up to the maximum amount of memory allowed for its use, and
(in theory) releases memory when not in use. Static allocation creates a fixed-memory space
for SQL Server to work with, no more, no less.
In regards to all other aspects, a virtual machine can be treated like any other host. Follow the
Installation and tuning guidelines from SAP for best results.
Further documentation can be found in these locations:
o Performance tuning Best Practices for ESX Server
http://www.vmware.com/vmtn/resources/707
o Using VMware Infrastructure for Backup and Restore
http://www.vmware.com/vmtn/resources/610
o Timekeeping in VMware virtual machines
http://www.vmware.com/vmtn/resources/238
VMware White Paper VMware and SAP Software Solutions Deployment Guide
• Networking requirements: The half-height blades support up to six network interfaces while
maintaining dual-port fibre channel connectivity to SAN.
• SAN connection: A single fibre channel host bus adapter (HBA) with two ports is acceptable in
most environments, which makes SAN connectivity a minor decision point for choosing a
blade. Redundant connections to fibre are available in every HP c-Class half-height blade
server.
• Processor: The HP ProLiant c-Class blade servers feature the latest generation processors
including the Intel Xeon® 5000 and 5100 series and AMD Opteron™ 2000 series.
• Density: Half-height blades optimize floor space, power efficiency and cooling. With no loss in
functionality versus a full-height blade and the ability to spread infrastructure costs out over
more servers, the half-height blades are an excellent choice for dense environments where
power and floor space are at a premium.
For Information with HP c-class blades and SAP performance visit www.hp.com and search for
“Leadership SAP benchmark on HP BL460c Intel Xeon and DL585 G2 AMD Opteron servers”
Enclosure configuration
The configuration recommends the NC325m 4-port network adapter for the ProLiant BL460c or
BL465c servers. This adapter allows for 6 individual gigabit network ports. As such, the enclosure
should be outfitted with a minimum of 3 network uplinks and a total of six network uplinks for
redundancy. These network uplinks should be placed in switch slots 1, 5 and 7 in a non-redundant
configuration and in slots 1, 2, 5, 6, 7 and 8 for full redundancy.
A fibre channel uplink is required in switch slot 3 for a non-redundant configuration and in slots 3
and 4 for full redundancy. The latter configuration allows for a redundant 4GB fibre channel
connection from each blade within the enclosure. When switches are used internally, the need for
external fibre channel switching is greatly reduced, saving costs and reducing cable failure risks
and complexity.
Figures 13-1 and 13-2 below depict the network switch configuration and enclosure configuration
for the servers used in the creation of this deployment guide. Further HP documentation can be
found in these locations:
HP reference configuration for virtualization: HP ProLiant c-Class half-height servers and VMware
Infrastructure 3
http://h71019.www7.hp.com/ActiveAnswers/cache/421308-0-0-0-121.html
Planning a VMware Virtual Infrastructure with HP ProLiant servers, storage, and management
http://h71019.www7.hp.com/ActiveAnswers/cache/272102-0-0-0-121.html
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Deploying a VMware Virtual Infrastructure with HP ProLiant servers, storage, and management
http://h71019.www7.hp.com/ActiveAnswers/cache/273965-0-0-0-121.html
VMware White Paper VMware and SAP Software Solutions Deployment Guide
Figure 13-1: Network switch configuration for SAP deployment on VMware Infrastructure
VMware White Paper VMware and SAP Software Solutions Deployment Guide