Databases for SAP on AWS with Amazon FSx for NetApp ONTAP
Amazon FSx for NetApp ONTAP is a fully managed service that provides highly reliable, scalable,
high-performing, and feature-rich file storage built on NetApp's popular ONTAP file system. You
can now deploy and operate SAP applications using IBM Db2, SAP MaxDB, SAP ASE, Oracle, and MSSQL
on AWS with FSx for ONTAP. For more information, see Amazon FSx for NetApp ONTAP
If you are a first-time user, see How Amazon FSx for NetApp ONTAP works.
Topics
Instances and sizing
The following rules and limitations are applicable for deploying SAP applications on AWS using IBM Db2, SAP MaxDB, SAP ASE, Oracle, and MSSQL with FSx for ONTAP.
-
Amazon EC2 instance where you plan to deploy the database and FSx for ONTAP must be in the same subnet.
-
Use separate storage virtual machines (SVM) for binarie, data, and log volumes of the database. This ensures that your I/O traffic flows through different IP addresses and TCP sessions.
-
The following file systems must have their separate FSx for ONTAP volumes. See the following tabs.
-
FSx for ONTAP creates endpoints for accessing your file system in a Amazon VPC route table. FSx for ONTAP uses your Amazon VPC main route table. We recommend configuring your file system to use all of your Amazon VPC route tables that are associated with the subnets in which your clients are located. Alternatively, you can specify one or more route tables for Amazon FSx to use when you create your file system.
-
Oracle – SAP with Oracle Database is supported on Amazon EC2 instances with Amazon FSx for NetApp ONTAP only using Oracle Direct NFS (dNFS) with NFSv3, NFSv4 and NFSv4.1. Kernel NFS mounted filesystems are not supported by SAP for any Oracle files, such as database files, redo logs, and control files. For more information, see SAP Note 2358420 - Oracle Database Support for Amazon Web Services EC2
(requires SAP portal access).
Supported instance types
See the following tabs for details.
For a complete list of supported Amazon EC2 instances for the databases, see SAP Note 1656099 - SAP Applications
on Amazon EC2: Supported DB/OS and Amazon EC2 products
Sizing
A single FSx for ONTAP file system can provide a maximum output of 80,000 IOPS. Select multiple FSx for ONTAP file systems if your I/O requirement exceeds 80,000 IOPS.
You can configure the throughput capacity of FSx for ONTAP when you create a new file system by scaling up to 4 GB/s of read throughput and 1000 MB/s of write throughput in a single Availability Zone deployment. In a multi-Availability Zone deployment, you can create a file system by scaling up to 4 GB/s of read throughput and 1800 MB/s of write throughput. For more information, see Performance details.
Oracle
You can calculate the IOPS required by your database by querying the system tables over a period of time and selecting the highest value. You can get this information from the GV$SYSSTAT dynamic performance view from Oracle. This view is continuously updated while the database is open and in use. IOPS requirements can also be validated through Oracle Enterprise Manager and Automatic Workload Repository reports which use these views to gather data. For more information, see Estimating IOPS for an existing database.
MSSQL
For migrating your existing SAP applications based on SQL Server to AWS, use Windows
Performance Monitor to get information about IOPS and throughput required for FSx for ONTAP
file system. To open Windows Performance Monitor, run perfmon
at command prompt.
IOPS and throughput data is provided by the following performance counters:
-
Peak Disk reads/sec + Peak disk writes/sec = IOPS
-
Peak Disk read bytes/sec + Peak disk write bytes/sec = throughput
We also recommend that you get the IOPS and throughput data over a typical workload cycle to get a good estimate for your requirements. Ensure that the FSx for ONTAP file system you provision for SQL server supports these I/O and throughput requirements.
For sizing your SAP on SQL environment, you can use:
-
SAP Quick Sizer (for new implementations)
-
SAP Early Watch Alerts reports
Running MSSQL with FSx for ONTAP file system separates compute and storage. Therefore, SQL
server running on smaller EC2 instances connected to FSx for ONTAP can perform the same as SQL
server running on a much larger EC2 instance. A smaller instance can also lower the total cost
of ownership for your SAP landscape on AWS. For standard database workloads, you can run
memory optimized instance classes, such as r6i
, r6in
,
r6a
, r7i
, and r7a
. For a complete list of supported
instances, see Amazon EC2 instance types for SAP on
AWS.
Create storage virtual machines (SVM)
You get one SVM per FSx for ONTAP file system by default. You can create additional SVMs at any time. We recommend a separate SVM for each volume. You don't need to join your file system to Active Directory for the database. For more information, see Managing FSx for ONTAP storage virtual machines.
Volume configuration and layout
Before you create an FSx for ONTAP file system, determine the total storage space you need for your system. You can increase the storage size later. To decrease the storage size, you must create a new file system.
The storage capacity of your file system should align with the needs of your database's system volumes. You must also consider the capacity required for snapshots, if applicable.
The following tabs lists the example volume layout for databases.
File system setup
To create a FSx for ONTAP file system, see Step 1: Create an Amazon FSx for NetApp ONTAP file system. For more information, see Managing FSx for ONTAP file systems.
After creating a FSx for ONTAP file system, you must complete additional file system setup.
Topics
Set administrative password
If you did not create an administrative password during FSx for ONTAP file system
creation, you must set an ONTAP administrative password for fsxadmin
user.
The administrative password enables you to access the file system via SSH, the ONTAP CLI, and REST API. To use tools like NetApp SnapCenter, you must have an administrative password.
Sign in to the management endpoint via SSH
Get the DNS name of the management endpoint from AWS console. Sign in to the
management endpoint via SSH, using the fsxadmin
user and administrative
password.
ssh fsxadmin@management.<file-system-id>.fsx.<aws-region>.amazonaws.com Password:
Set TCP max transfer size
We recommend a TCP max transfer size of 262,144 for your database systems. Elevate the privilege level to advanced and use the following command on each SVM.
set advanced nfs modify -vserver <svm> -tcp-max-xfer-size 262144 set admin
Disable snapshots
FSx for ONTAP automatically enables a snapshot policy for volumes that take hourly snapshots. The default policy offers limited value due to missing application awareness. We recommend disabling the automatic snapshots by setting the policy to none.
volume modify -vserver <vserver-name> -volume <volume-name> -snapshot-policy none
You can use SnapCenter, a backup management software offered by NetApp to automate backup and restore of your workloads. SnapCenter provides a plug-in for Oracle and MSSQL databases.
Configuration settings for dynamically allocating storage – MSSQL
This section only applies to MSSQL database.
NetApp recommends that storage space be dynamically allocated to each volume or logical unit number as data is written, instead of allocating space upfront. The following table provides the configuration settings for dynamically allocating storage.
Setting | Configuration |
---|---|
Volume guarantee | None (set by default) |
LUN reservation | Enabled |
fractional_reserve | 0% (set by default) |
snap reserve | 0% |
Autodelete | volume/oldest_first |
Autosize | On |
try_first | Autogrow |
Volume tiering policy | Snapshot only |
Snapshot policy | None |
space allocation | Enabled |