IBM Cloud Docs
Background for automating SAP HANA stand-alone virtual server instance on IBM Cloud® VPC

Background for automating SAP HANA stand-alone virtual server instance on IBM Cloud® VPC

IBM Cloud® Virtual Private Cloud (VPC) introduction

IBM Cloud® VPC offers the possibility to quickly provision virtual server instances for VPC with high network performance. VPC infrastructure contains a number of Infrastructure-as-a-Service (IaaS) offerings, including Virtual Servers for VPC. A VPC is a public cloud offering that an enterprise uses to establish its own private cloud-like computing environment on shared public cloud infrastructure. A VPC gives an enterprise the ability to define and control a virtual network that is logically isolated from all other public cloud tenants, creating a private, secure place on the public cloud.

Imagine that a cloud provider’s infrastructure is a residential apartment building with multiple families living inside. Being a public cloud tenant is akin to sharing an apartment with a few roommates. In contrast, having a VPC is like having your own private condominium. No one else has the key, and no one can enter the space without your permission.

A VPC’s logical isolation is implemented by using virtual network functions and security features that give an enterprise customer granular control over which IP addresses or applications can access particular resources. It is analogous to the “friends-only” or “public/private” controls on social media accounts used to restrict who can or can’t see your otherwise public posts.

With IBM Cloud VPC, you can use the UI, CLI, and API to quickly provision virtual server instances for VPC with high network performance. VPC infrastructure contains a number of Infrastructure-as-a-Service (IaaS) offerings, including Virtual Servers for VPC. Use the following information to understand a simple use case for planning, creating, and configuring resources for your VPC, and learn about more VPC overviews and VPC tutorials. For more information, see Getting started with Virtual Private Cloud (VPC).

SAP HANA in IBM Cloud

The IBM public cloud is an open, security-rich, and enterprise-ready public cloud for business. This design makes it easier for global enterprises to modernize and build new business applications in the cloud to meet the evolving needs of the business and its customers. IBM Cloud offerings include a broader portfolio of SAP-certified infrastructure, ranging from bare metal, VMware, VPC, and IBM Power® Systems Virtual Server products.

SAP HANA defined

SAP HANA (High-performance Analytic Appliance) is a multi-model database that stores data in its memory instead of keeping it on a disk. This arrangement results in data processing that magnitudes faster than processing of disk-based data systems, allowing for advanced, real-time analytics.

Serving as a platform for enterprise resource planning (ERP) software and other business applications, SAP HANA can be placed on premises, in the cloud, or both, in a hybrid cloud system. For more information, see SAP HANA on IBM Cloud.

The number of hosts in an SAP HANA system landscape determines the SAP HANA system type.

An SAP HANA system can be configured as either:

  • A single-host system - One SAP HANA instance on one host
  • A distributed system (multiple-host system) - Multiple SAP HANA instances distributed over multiple hosts

Single-host SAP HANA system

A single-host system is the simplest system installation type that runs an SAP HANA system entirely on one host. You can scale the system up as needed. The single-host system has these components:

Figure 1. SAP NetWeaver 7.x SAP HANA single-host installation on bare metal and x86 VSIs
SAP NetWeaver 7.x SAP HANA single-host installation on bare metal and x86 VSIs

For more information about SAP systems architectures in IBM Cloud VPC, see reference architectures for each supported database type.

Manually deploying a VPC and installing an SAP system can be time-consuming. The automation assures not only a much quicker implementation, but also a standardized and less prone to error deployment. Terraform and Ansible are used for automating the deployment processes.

The solution that is presented in this how-to guide is the automated deployment of a single host with SAP HANA stand-alone VSI on Red Hat Enterprise Linux or SUSE Linux Enterprise Server (SLES)for SAP applications.

Database instance (DB) - To assist your projects planning phase, more design considerations are provided at SAP HANA database with IBM Cloud for SAP. For more information, see SAP HANA database design considerations and Infrastructure certified for SAP.

A dedicated reference architecture about this SAP HANA on IBM Cloud VPC cloud can be found on SAP HANA database design considerations.

SAP HANA installation media that are used for this deployment is the default one for SAP HANA, platform edition 2.0 SPS05. The media is available at SAP Support Portal in the Installation and Upgrade area and it must be provided manually in the input parameter file.

Terraform for infrastructure deployment

Terraform on IBM Cloud enables predictable and consistent provisioning of IBM Cloud solutions. For more information about Terraform on IBM Cloud, see Getting started with Terraform on IBM Cloud.

Terraform is used to provision of the infrastructure components in IBM Cloud. For the automating this process, the current solution uses a Terraform script for deploying a VPC and a VSI with SAP certified storage and network configuration. The VPC contains one subnet and one security group that has three rules:

  • Allow all outbound traffic from the VSI
  • Allow inbound DNS traffic (UDP port 53)
  • Allow inbound SSH traffic (TCP port 22)

After the successful deployment of the infrastructure, the Terraform script calls the Ansible Playbook, which automatically installs the SAP application. Access creating single-tier VPC for SAP by using Terraform to get the detailed steps about using Terraform only for the creation of a VPC for SAP.

This automation is offered at no cost; however, the provisioned infrastructure comes at cost.

Ansible for SAP installation

Ansible is an automation tool for the deployment of several IT tasks. This solution performs the automated deployment of SAP HANA 2.0 DB on several validated OS platforms:

  • SUSE Linux Enterprise Server 15 SP 4 for SAP
  • SUSE Linux Enterprise Server 15 SP 3 for SAP
  • Red Hat Enterprise Linux 8.6 for SAP
  • Red Hat Enterprise Linux 8.4 for SAP in an existing IBM Cloud Gen2 VPC on stand-alone SAP HANA box VSI.

For more information about Ansible, see the documentation available on the Ansible page.

The deployment is done by the Ansible core, which provides CLI tools for automation. More information about Ansible core can be found on the Ansible core page.

The Ansible playbook is called directly by the Terraform script. The Terraform script is run in one run. During the run, the first steps are Terraform specific for creating the VPC, and it continues automatically with the second, Ansible, steps for the installation of the SAP system.