Sap On Aws Implementation Guide v2.11
Sap On Aws Implementation Guide v2.11
Sap On Aws Implementation Guide v2.11
SAP
Solutions
on
Amazon
Web
Services
Contents
About
this
Guide
..................................................................................................................................
3
Additional
SAP
on
AWS
Documentation
..................................................................................................
3
Overview
of
Amazon
Web
Services
......................................................................................................
4
Networking
and
Connectivity
...............................................................................................................
6
AWS
Network
Options
.............................................................................................................................
6
Amazon
EC2
Classic
..............................................................................................................................
6
Virtual
Private
Cloud
(Amazon
VPC)
.....................................................................................................
7
Connectivity
Options
for
VPC
...............................................................................................................
7
Setting
up
a
VPC
...................................................................................................................................
7
Special
Considerations
for
SAP
Systems
on
AWS
..................................................................................
7
SAP
on
AWS
Notes
...................................................................................................................................
8
AWS
Instance
Types
.................................................................................................................................
8
Operating
Systems
...................................................................................................................................
8
Hostnames
...............................................................................................................................................
9
Storage
Options
.....................................................................................................................................
10
AWS
Monitoring
.....................................................................................................................................
10
Termination
Protection
..........................................................................................................................
10
Copying
SAP
Installation
Media
to
AWS
.................................................................................................
11
Copying
an
SAP
System
to
AWS
.............................................................................................................
11
Sizing
and
Performance
......................................................................................................................
12
Sizing
......................................................................................................................................................
12
Performance
...........................................................................................................................................
12
Storage
...............................................................................................................................................
12
Backing
Up
SAP
Systems
on
AWS
........................................................................................................
13
Appendix:
...........................................................................................................................................
14
Preparing
a
Linux
Instance
for
the
installation
of
an
SAP
system
..........................................................
14
Preparing
a
Windows
Instance
for
the
installation
of
an
SAP
system
....................................................
22
2
Operating
Systems
Amazon
Web
Services
offers
the
following
Operating
Systems
which
are
supported
for
the
operation
of
SAP
systems
as
per
the
SAP
PAM.
Currently
SUSE
Linux
and
Red
Hat
Linux
are
supported
for
the
implementation
and
operation
of
SAP
production
systems
on
AWS.
8
Hostnames
Note
This information in this section is only relevant when implementing Test, Sandbox, Demo,
Training,
etc.
system
on
the
Amazon
EC2
network.
When
implementing
system
within
a
VPC
you
have
direct
control
over
the
configuration
of
the
hostname
of
an
instance.
1) The
generated
hostname
(Linux)
/
computername
(Windows)
that
is
assigned
to
a
new
Amazon
EC2
Instance
is
too
long
and
does
not
meet
the
requirements
of
an
SAP
system.
You
must
change
the
hostname
/
computername
of
a
new
Amazon
EC2
Instance
to
meet
the
requirements
of
an
SAP
system
before
installing
an
SAP
solution
on
the
Instance.
For
additional
information
about
the
allowed
hostname
length
and
characters,
see
SAP
Note
611361.
2) The
default
behavior
of
an
AWS
instance
is
to
generate
a
new
hostname
/
computername
at
the
time
an
instance
is
launched
from
an
AMI
or
a
stopped
instance
is
restarted.
This
behavior
is
not
appropriate
for
an
SAP
system
and
must
be
disabled
by
following
the
steps
provided
below.
SUSE
1) Start
yast
2) Navigate
to
Network
Devices
->
Network
Settings
(press
enter)
3) Select
Hostname/DNS
in
the
menu
4) Change
the
values
of
the
Hostname
and
Domain
Name
fields
as
required
5) Uncheck
Change
Hostname
via
DHCP
6) F10
(to
save)
7) F9
(to
exit)
Red
Hat
1) Edit
file
/etc/sysconfig/network
2) Change
parameter
HOSTNAME
and
replace
value
with
the
new
hostname
3) Restart
OS
Windows
1) Start
->
Programs
->
EC2ConfigService
Settings
2) On
the
General
tab,
deselect
Set
Computer
Name
Storage Options
AWS
offers
multiple
types
of
storage.
Each
type
of
storage
is
explained
below
along
with
the
relevant
uses
for
an
SAP
system.
Storage
Type
Local
/
Instance/
Ephemeral
Elastic
Block
Store
(EBS)
AWS
Monitoring
AWS
CloudWatch
enables
AWS
customers
to
monitor
their
Amazon
EC2
resources
in
real-time.
Amazon
CloudWatch
provides
free
Basic
Monitoring
for
all
Amazon
EC2
instances.
Basic
Monitoring
provides
metrics
at
5-minute
frequency.
You
can
enable
Detailed
Monitoring
for
an
Instance
by
right
clicking
on
the
Instance
in
the
AWS
Management
Console
and
then
selecting
Enable
Detailed
Monitoring.
Note
There
is
additional
cost
associated
with
the
use
of
CloudWatch
Detailed
Monitoring.
Please
visit
http://aws.amazon.com/cloudwatch/
for
additional
information.
Termination
Protection
Termination
Protection
prevents
an
Amazon
EC2
instance
from
accidently
being
terminated
(deleted)
by
a
user
either
via
the
Amazon
Management
Console
or
the
Amazon
EC2
API.
You
can
enable
Termination
Protection
at
instance
launch
time
or
by
right
clicking
on
a
running
instance
in
the
Amazon
Management
Console
and
selecting
Change
Termination
Protection.
It
is
highly
recommend
that
you
enable
Termination
Protection
for
any
SAP
production
system
that
you
operate
on
AWS.
10
There
are
two
primary
options
for
copying
SAP
installation
media
to
AWS.
1.
If
you
already
have
the
installation
media
downloaded
to
a
location
on
your
network
you
can
copy
the
media
from
your
network
to
Amazon
S3
or
directly
to
an
Amazon
EC2
Instance.
Depending
on
the
connection
speed
between
your
network
and
AWS
this
may
not
be
the
optimal
solution.
2. In
most
cases
downloading
from
the
SAP
Service
Marketplace
directly
to
an
Amazon
EC2
Instance
will
be
the
fastest
method
for
getting
SAP
installation
media
to
AWS.
Using
this
solution
you
can
create
a
dedicated
EBS
volume
to
store
all
of
your
installation
media
which
you
can
then
detach/attach
to
different
Instances
as
needed.
You
can
also
create
a
Snapshot
of
the
EBS
volume
and
create
multiple
EBS
copies
that
you
can
attach
to
multiple
Instances
in
parallel.
11
Sizing
The
standard
SAP
sizing
procedure
should
be
utilized
when
sizing
SAP
solutions
to
run
on
AWS.
After
you
have
completed
an
SAP
sizing
using
the
SAP
Quick
Sizer
and
have
determined
your
SAPS
requirements
you
can
then
architect
your
SAP
solution
on
AWS.
The
up
to
date
SAPS
ratings
of
the
SAP
certified
Amazon
EC2
Instance
Types
can
be
found
in
SAP
Note
#
1588667.
Tip
AWS
is
continually
introducing
new
Instance
Types
and
enhancing
the
AWS
platform.
You
should
frequently
check
note
SAP
Note
#
1588667
for
the
latest
SAPS
ratings
of
the
various
AWS
instance
types.
Performance
Storage
AWS
Elastic
Block
Store
(EBS)
is
a
shared
resource;
all
communication
with
the
EBS
volumes
occur
over
the
shared
network
provided
to
the
Amazon
EC2
instance.
To
meet
the
high
IO
requirements
of
an
SAP
production
system,
you can attach multiple EBS volumes
to an instance to increase the total IOPS available to the instance. Depending on the operation
system, different techniques are recommend for utilizing multiple EBS volumes. In the following
sections the recommend disk configurations for Linux and Windows are described
Linux
For
Linux
systems
AWS
recommends
to
stripe
multiple
EBS
volumes
using
software
RAID
to
increase
the
total
number
of
IOPS
available
to
the
SAP
system.
Each
EBS
volume
is
protected
from
physical
drive
failure
by
the
means
of
drive
mirroring
so
using
a
RAID
level
higher
than
RAID-0
is
not
necessary.
The
annual
failure
rate
(AFR)
for
an
EBS
volume
is
0.1%
to
0.5%,
compared
to
4%
for
a
commodity
hard
drive.
Instructions
how
to
create
a
striped
file
system
in
Linux
are
provided
in
section
Appendix:
Preparing
a
Linux
Instance
for
the
installation
of
SAP
software
Below
is
a
sample
EBS
configuration
for
an
SAP
production
system
running
on
Linux.
File
system
EBS
Volumes
Striping
root
1
no
/swap
1
no
/usr/sap
1
no
/[DB
software]
1
no
12
13
Appendix:
Preparing
a
Linux
Instance
for
the
installation
of
an
SAP
system
The
following
section
details
the
steps
required
to
prepare
a
Linux
instance
and
relevant
AWS
components
required
to
install
an
SAP
system.
Perquisites
Access
to
the
Internet
Amazon
Web
Services
Account
Create
an
AWS
Account
Activate
your
account
for
Amazon
EC2
Log
into
the
Amazon
Management
Console
1) Using
your
AWS
account
and
password
log
into
the
AWS
Management
Console
-
http://console.aws.amazon.com
Create
a
Key
Pair
1) From
within
the
AWS
Management
Console
click
on
the
Amazon
EC2
tab
2) In
the
Navigation
frame
on
the
left
select
Key
Pairs
3) Click
on
the
Create
Key
Pair
button
4) Enter
the
name
for
the
key
pair
and
then
click
Create
5) You
will
then
be
prompted
to
download
and
save
the
private
key
file
to
your
local
drive.
Important
Do
not
lose
the
private
key
you
have
downloaded.
The
key
pair
is
useless
for
authentication
if
you
do
not
have
the
private
half.
Create
a
Security
Group
1) From
within
the
AWS
Management
Console
click
on
the
Amazon
EC2
tab
2) In
the
Navigation
frame
on
the
left
select
Security
Groups
3) Click
on
the
Create
Security
Group
button
4) Enter
a
Name
and
Description
for
the
Security
Group
and
then
click
the
Yes,
Create
button
Once
the
Security
Group
has
been
created
you
can
then
add
rules
to
the
Security
Group
to
allow
access
to
your
instances
over
the
required
ports.
For
example,
if
you
are
creating
a
Linux
server,
you
will
need
to
open
port
22
so
you
can
SSH
to
your
instance
or,
for
Windows,
you
will
need
to
open
port
3389
so
you
can
RDP
to
your
server.
If
installing
an
SAP
system
with
system
number
=
00
you
will
need
to
open
port
3200
to
allow
access
via
SAPgui.
To
add
a
rule
to
your
newly
created
Security
Group
1) Select
your
Security
Group
in
the
list
2) Click
on
the
Inbound
tab
in
the
bottom
half
of
the
window
3) Select
one
of
the
predefined
rules
from
the
list
or
select
Custom
TCP/UDP/ICMP
rule
4) If
creating
a
custom
rule
enter
the
port
range
(e.g.
3200
)
14
Figure 1
Launch
a
new
Instance
1) From
within
the
AWS
Management
Console
click
on
the
Amazon
EC2
tab
2) In
the
Navigation
frame
on
the
left
select
Instances
3) Click
on
the
Launch
Instance
button
4) Select
Launch
Classic
Wizard
and
then
click
Continue
5) On
the
Quick
Start
tab
click
on
the
Select
button
associated
with
wither
the
SUSE
or
Red
Hat
64bit
AMI
6) On
the
current
screen...
Enter
the
Number
of
Instances
you
would
like
to
launch
(usually
just
1)
Chose
the
Instance
Type
Chose
which
network
you
want
to
launch
your
instance
in
Amazon
EC2
or
Amazon
VPC
Chose
the
Availability
Zone
you
would
like
to
launch
the
instance
in
Tip
When
launching
your
first
instance
it
is
recommend
to
select
No
Preference
for
the
Availability
Zone
and
let
AWS
select
the
Availably
Zone
for
you.
Any
subsequent
instance
should
then
be
launch
in
the
same
Availability
Zone.
7) On
the
next
screen
leave
the
defaults
an
click
on
Continue
8) Enter
any
Tags
you
would
like
to
maintain
and
then
click
on
Continue
You
can
specify
up
to
10
key/value
pairs
to
help
you
organize,
search
and
browse
your
resources
15
9) Select
the
Key
Pair
you
created
earlier
and
then
click
Continue
10) Select
the
Security
Group
you
created
earlier
and
then
click
Continue
11) Review
the
selections
and
then
click
on
Launch
Your
instance
will
take
about
5-10
minutes
to
launch.
During
this
time
the
instance
will
go
through
a
few
phases
which
are
visible
in
the
Status
field
within
the
AWS
Management
Console.
pending
the
virtual
server
is
in
the
process
of
starting
running
the
virtual
server
has
started.
The
system
may
not
be
immediately
accessible
when
the
status
first
changes
to
running.
This
is
because
the
operating
system
is
still
booting.
You
can
check
the
status
of
the
operating
system
by
right
clicking
on
the
instance
and
selecting
Get
System
Log.
A
window
will
open
displaying
the
system
log
where
you
can
then
check
the
status
of
the
operating
system.
Connecting
to
your
new
Instance
After
you
have
launched
your
instance
and
it
has
finished
starting
you
can
then
log
into
the
instance
via
SSH
For
information
about
connecting
to
Linux
Instances,
please
read
section
Connect
to
Your
Linux/UNIX
Instance
in
the
Amazon
Elastic
Compute
Cloud
Getting
Started
Guide.
Setting
the
hostname
2) From
the
shell
prompt
start
-
yast
3) Navigate
to
Network
Devices
->
Network
Settings
(press
enter)
16
The
table
below
lists
the
EBS
Volumes
you
will
create
in
this
exercise
and
their
intended
use.
EBS
Vol
Size
Use
Attach
as
1
50
GB
SAP
/
DB
software
/dev/sdf
2
10
GB
DB
Log
File
/dev/sdg
3
10
GB
DB
Log
File
/dev/sdh
4
10
GB
DB
Log
File
/dev/sdi
5
75
GB
DB
Data
Files
/dev/sdj
6
75
GB
DB
Data
Files
/dev/sdk
7
75
GB
DB
Data
Files
/dev/sdl
8
75
GB
DB
Data
Files
/dev/sdm
9
50
GB
Swap
/dev/sdn
For
each
Volume
listed
in
the
table
above
complete
the
steps
listed
below
1) From
within
the
AWS
Management
Console
click
on
the
Amazon
EC2
tab
2) In
the
Navigation
frame
on
the
left
select
Volumes
3) Enter
the
size
of
the
Volume
and
chose
the
Availability
Zone
the
Volume
should
be
created
in.
17
Attach
EBS
Volumes
to
Instance
After
you
have
created
the
EBS
Volumes
you
then
need
to
attach
them
to
your
instance.
For
each
Volume
listed
in
the
table
above
complete
the
steps
listed
below
1) From
within
the
AWS
Management
Console
click
on
the
Amazon
EC2
tab
2) In
the
Navigation
frame
on
the
left
select
Volumes
3) Right
click
on
the
Volume
you
just
created
and
select
Attach
Volume
4) A
list
of
all
instances
in
the
same
Availability
Zone
as
the
Volume
will
be
displayed.
Select
the
Instance
you
wish
to
attach
the
Volume
to.
5) In
the
Device
filed
enter
the
device
name
in
the
Attach
as
field
in
the
table
above
for
each
respective
Volume.
6) Click
on
the
Attach
button
Format
and
Mount
Volumes
After
you
have
attached
the
volume
to
the
Instance
you
can
log
into
the
Instance
and
format
and
mount
the
volume
using
the
standard
procedures
for
your
operating
system.
Create
/usr/sap
file
system
1) Create
directory
prompt> mkdir /usr/sap
2) Format
device
prompt> mkfs.ext3 /dev/sdf
3) Mount
file
system
prompt> mount /dev/sdf /usr/sap
4) Add
entry
to
/etc/fstab
/dev/sdf
/usr/sap
ext3
defaults
18
0 0
2) Create
swap
area
on
device
prompt> mkswap /dev/sdn1
3) Add
entry
to
/etc/fstab
/dev/sdn1
swap
swap
defaults
0 0
4) Enable
device
for
swapping
prompt> swapon -a
5) Confirm
swap
has
been
created
and
is
online
prompt> free
total
Mem:
7889436
-/+ buffers/cache:
Swap:
10482372
used
526804
292016
0
free
7362632
7597420
10482372
shared
0
buffers
12200
cached
222588
Create
DB
Log
striped
file
system
1) Create
directory
prompt> mkdir /sapdb/log
2) Create
special
device
prompt> mknod /dev/md0 b 9 5
3) Create
RAID-0
group
prompt> mdadm --create /dev/md0 -v --raid-devices=3 --chunk=32
level=raid0 /dev/sdg /dev/sdh /dev/sdi
4) Format
file
system
prompt> mkfs.ext3 /dev/md0
5) Mount
file
system
prompt> mount /dev/md0 /sapdb/log o noatime
19
--
/sapdb/log1
ext3
defaults,noatime
0 0
7) Create
/etc/mdadm.conf
file
prompt> mdadm --misc --detail --brief /dev/md0
Output
from
above
command
ARRAY /dev/md0 level=raid0 num-devices=3
UUID=f06414c0:39e569bb:a4e94613:1aa6b923 devices /dev/sdg,/dev/sdh
,/dev/sdi
From
the
above
output
create
the
/etc/mdadm.conf
file
prompt> echo "DEVICE /dev/sdg /dev/sdi /dev/sdi" >> /etc/mdadm.conf
prompt> echo "ARRAY /dev/md0 level=raid0 num-devices=3
UUID=f06414c0:39e569bb:a4e94613:1aa6b923" >> /etc/mdadm.conf
Create
DB
Data
striped
file
system
1) Create
directory
prompt> mkdir /sapdb/data
2) Create
special
device
prompt> mknod /dev/md1 b 9 5
3) Create
RAID-0
group
prompt> mdadm --create /dev/md1 -v --raid-devices=4 --chunk=32
level=raid0 /dev/sdj /dev/sdk /dev/sdl /dev/sdm
--
4) Format
file
system
prompt> mkfs.ext3 /dev/md1
5) Mount
file
system
prompt> mount /dev/md0 /sapdb/data o noatime
6) Add
the
below
entry
to
the
/etc/fstab
file
/dev/md0
/sapdb/data
ext3
defaults,noatime
0 0
1) Create
/etc/mdadm.conf
file
prompt> mdadm --misc --detail --brief /dev/md1
Output
from
above
command
ARRAY /dev/md0 level=raid0 num-devices=4
UUID=g05436c0:39e569bb:a4e94613:1aa6b923 devices /dev/sdj,/dev/sdk
,/dev/sdl,/dev/sdm
20
2) Turn
on
boot.md
prompt> chkconfig boot.md on
Install
SAP
System
Once
you
have
your
new
instance
up
and
running
with
the
required
storage
formatted
and
mounted,
you
are
now
ready
to
install
the
SAP
system.
Before
proceeding
with
the
SAP
installation
make
sure
you
have
read
and
understand
the
Special
Considerations
for
SAP
systems
on
AWS
section
of
this
document.
You
can
then
proceed
with
the
installation
of
the
SAP
system
in
the
same
manner
as
you
would
on
any
other
physical
or
virtual
server.
As
always,
you
should
follow
the
procedures
documented
in
the
SAP
Master
and
Installation
Guides
specific
to
the
solution
you
are
installing.
Create
AMI
Once
you
have
completed
the
installation
of
the
SAP
system,
you
can
create
an
AMI
of
the
Instance
which
can
later
be
used
to
launch
additional
copies
of
the
system
or
to
recover
the
system
if
the
Instance
fails.
1) From
within
the
AWS
Management
Console
click
on
the
Amazon
EC2
tab
2) In
the
Navigation
frame
on
the
left
select
Instance
3) Right
click
on
the
Instance
you
just
created
and
select
Create
Image
4) Enter
an
Image
Name
and
an
Image
Description
and
then
click
on
Create
This
Image
21
Important
Do
not
lose
the
private
key
you
have
downloaded.
The
key
pair
is
useless
for
authentication
if
you
do
not
have
the
private
half.
Create
a
Security
Group
5) From
within
the
AWS
Management
Console
click
on
the
Amazon
EC2
tab
6) In
the
Navigation
frame
on
the
left
select
Security
Groups
7) Click
on
the
Create
Security
Group
button
8) Enter
a
Name
and
Description
for
the
Security
Group
and
then
click
the
Yes,
Create
button
Once
the
Security
Group
has
been
created,
you
can
then
add
rules
to
the
Security
Group
to
allow
access
to
your
instances
over
the
required
ports.
For
example,
if
you
are
creating
a
Linux
server,
you
will
need
to
open
port
22
so
you
can
SSH
to
your
instance
or
for
Windows
you
will
need
to
open
port
3389
so
you
can
RDP
to
your
server.
If
installing
an
SAP
system
with
system
number
=
00
you
will
need
to
open
port
3200
to
allow
access
via
SAPgui.
To
add
a
rule
to
your
newly
created
Security
Group
9) Select
your
Security
Group
in
the
list
10) Click
on
the
Inbound
tab
in
the
bottom
half
of
the
window
11) Select
one
of
the
predefined
rules
from
the
list
or
select
Custom
TCP/UDP/ICMP
rule
12) If
creating
a
custom
rule
enter
the
port
range
(e.g.
3200
)
13) In
the
Source
field
you
can
enter
a
range
of
IP
address
to
limit
the
IP
address
that
will
have
access
22
Figure 2
23
16) -
Number
of
Instance
leave
the
default
of
1
-
Availability
Zone
leave
No
Preference
(see
Tip
below)
-
Instance
Type
Select
Extra
large
(m1.xlarge,
15
GB)
and
then
click
on
Continue
24
Tip
When
launching
your
first
instance,
AWS
recommends
that
you
select
No
Preference
for
the
Availability
Zone,
and
let
AWS
select
the
Availably
Zone
for
you.
17) On
the
next
screen
leave
the
defaults
an
click
on
Continue
18) Enter
any
Tags
you
would
like
to
maintain
and
then
click
on
Continue
You
can
specify
up
to
10
key/value
pairs
to
help
you
organize,
search
and
browse
your
resources
Tip
You
should
maintain
the
Name
tag
at
a
minimum.
Adding
tags
to
your
objects
will
make
managing
your
environment
much
easier.
25
26
3)
4)
5)
6)
7)
From
the
Windows
Start
menu
right
click
on
Computer
and
then
select
Properties
In
the
menu
on
the
left
click
on
Advanced
System
Settings
Click
on
tab
Computer
Name
Click
on
the
Change
button
Set
the
Computername
to
a
valid
SAP
computer
name
(see
SAP
Note
#611361
for
additional
information
regarding
valid
SAP
computernames
/
hostnames)
Stop
and
then
restart
the
Instance
to
confirm
that
the
Computername
change
is
permanent.
You
can
continue
on
to
the
next
section
while
you
are
waiting
for
the
Instance
to
start.
Create
EBS
Volumes
Each
Amazon
EC2
instances
comes
with
a
certain
amount
of
instance
storage
that
is
included
in
the
hourly
cost
of
the
instance.
This
instance
storage
is
ephemeral,
meaning
that
it
only
exists
for
the
life
of
the
instance
and
is
not
persistent
if
the
instance
is
shutdown
or
fails.
This
ephemeral
storage
should
not
be
used
to
store
any
component
of
an
SAP
system.
Amazon
EBS
provides
persistent
block
level
storage
that
can
be
mounted
by
an
Amazon
EC2
instance
and
should
be
used
to
store
SAP
&
DB
software,
DB
log
files
and
DB
data
files.
Note
For
a
small
SAP
test/training/demo
system
a
single
EBS
volume
will
provide
sufficient
performance.
For
SAP
systems
that
require
maximum
IO
performance
you
should
use
multiple
EBS
and
stripe
them
using
OS
software
RAID.
27
Attach
EBS
Volumes
to
Instance
After
you
have
created
the
EBS
Volumes
you
then
need
to
attach
them
to
your
instance.
For
each
Volume
listed
in
the
Table
1
above
complete
the
steps
listed
below
7) From
within
the
AWS
Management
Console
click
on
the
Amazon
EC2
tab
8) In
the
Navigation
frame
on
the
left
select
Volumes
9) Right
click
on
the
Volume
you
just
created
and
select
Attach
Volume
28
Create
Volumes
1) Right
click
on
the
drive
in
the
drive
and
select
New
Simple
Volume
29
30