This deployment guide shows you how to deploy the Google Cloud resources for an IBM Db2 for Linux, Unix, and Windows system that supports SAP applications.
To use Terraform to automate the deployment of Google Cloud resources for an IBM Db2 instance that supports SAP applications, see Automated VM deployment for IBM Db2 on Linux.
For details on planning your deployment, see the IBM Db2 for SAP planning guide.
Prerequisites
If you require your SAP workload to run in compliance with data residency, access control, support personnel, or regulatory requirements, then you must create the required Assured Workloads folder. For more information, see Compliance and sovereign controls for SAP on Google Cloud.
If you don't already have a Google Cloud project with billing enabled, then you must create one before you can deploy a virtual machine (VM) for your IBM Db2 installation.
To create a project:
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
Configuring the gcloud
command environment
These instructions use
Cloud Shell to enter gcloud
commands that deploy or configure
your Google Cloud resources. Cloud Shell is accessed through the
Google Cloud console in your browser.
Cloud Shell runs on a VM that Google Cloud provisions each time
you start Cloud Shell. The first time you use Cloud Shell,
Google Cloud also creates a persistent $HOME
directory for you,
which is restored each time you open Cloud Shell.
The provisioned VM includes the latest
Google Cloud CLI.
Therefore, the gcloud
commands that you use in Cloud Shell are the same as
those you would use in a locally installed instance of the gcloud CLI.
If you have the gcloud CLI installed, you can issue the gcloud
commands that are used in these instructions from your local machine. However,
with a locally installed gcloud CLI you must always make sure that you
are using the latest version of the gcloud CLI.
Whether you use Cloud Shell or gcloud CLI, you
can set and change the properties of your gcloud
command environment and save
them as a configuration. Configurations are collections of key-value pairs
that influence the behavior of the gcloud
commands.
Some basic actions you can take with a configuration in Cloud Shell include:
Initialize a configuration:
gcloud init
Check the settings of your current gcloud configuration:
gcloud config list
Switch to the required Google Cloud project. Replace
PROJECT_ID
with your Google Cloud project ID.gcloud config set project PROJECT_ID
Set a default region. Replace
REGION
with a Google Cloud region.gcloud config set compute/region REGION
Set a default zone. Replace
ZONE
with a Google Cloud zone.gcloud config set compute/zone ZONE
Create a new configuration. Replace
NAME
with the name for the configuration.gcloud config configurations create NAME
For more information about working with configurations, see Managing gcloud CLI configurations.
Creating a network
For security purposes, create a new network. You can control who has access by adding firewall rules or by using another access control method.
If your project has a default VPC network, don't use it. Instead, create your own VPC network so that the only firewall rules in effect are those that you create explicitly.
During deployment, VM instances typically require access to the internet to download Google Cloud's Agent for SAP. If you are using one of the SAP-certified Linux images that are available from Google Cloud, the VM instance also requires access to the internet in order to register the license and to access OS vendor repositories. A configuration with a NAT gateway and with VM network tags supports this access, even if the target VMs do not have external IPs.
To set up networking:
Console
- In the Google Cloud console, go to the VPC networks page.
- Click Create VPC network.
- Enter a Name for the network.
The name must adhere to the naming convention. VPC networks use the Compute Engine naming convention.
- For Subnet creation mode, choose Custom.
- In the New subnet section, specify the following configuration parameters for a
subnet:
- Enter a Name for the subnet.
- For Region, select the Compute Engine region where you want to create the subnet.
- For IP stack type, select IPv4 (single-stack) and then enter an IP
address range in the
CIDR format,
such as
10.1.0.0/24
.This is the primary IPv4 range for the subnet. If you plan to add more than one subnet, then assign non-overlapping CIDR IP ranges for each subnetwork in the network. Note that each subnetwork and its internal IP ranges are mapped to a single region.
- Click Done.
- To add more subnets, click Add subnet and repeat the preceding steps. You can add more subnets to the network after you have created the network.
- Click Create.
gcloud
- Go to Cloud Shell.
- To create a new network in the custom subnetworks mode, run:
gcloud compute networks create NETWORK_NAME --subnet-mode custom
Replace
NETWORK_NAME
with the name of the new network. The name must adhere to the naming convention. VPC networks use the Compute Engine naming convention.Specify
--subnet-mode custom
to avoid using the default auto mode, which automatically creates a subnet in each Compute Engine region. For more information, see Subnet creation mode. - Create a subnetwork, and specify the region and IP range:
gcloud compute networks subnets create SUBNETWORK_NAME \ --network NETWORK_NAME --region REGION --range RANGE
Replace the following:
SUBNETWORK_NAME
: the name of the new subnetworkNETWORK_NAME
: the name of the network you created in the previous stepREGION
: the region where you want the subnetworkRANGE
: the IP address range, specified in CIDR format, such as10.1.0.0/24
If you plan to add more than one subnetwork, assign non-overlapping CIDR IP ranges for each subnetwork in the network. Note that each subnetwork and its internal IP ranges are mapped to a single region.
- Optionally, repeat the previous step and add additional subnetworks.
Setting up a NAT gateway
If you need to create one or more VMs without public IP addresses, you need to use network address translation (NAT) to enable the VMs to access the internet. Use Cloud NAT, a Google Cloud distributed, software-defined managed service that lets VMs send outbound packets to the internet and receive any corresponding established inbound response packets. Alternatively, you can set up a separate VM as a NAT gateway.
To create a Cloud NAT instance for your project, see Using Cloud NAT.
After you configure Cloud NAT for your project, your VM instances can securely access the internet without a public IP address.
Adding firewall rules
By default, incoming connections from outside your Google Cloud network are blocked. To allow incoming connections, set up a firewall rule for your VM. Firewall rules regulate only new incoming connections to a VM. After a connection is established with a VM, traffic is permitted in both directions over that connection.
You can create a firewall rule to allow access to specified ports, or to allow access between VMs on the same subnetwork.
Create firewall rules to allow access for such things as:
- The default ports used by SAP NetWeaver, as documented in TCP/IP Ports of All SAP Products.
- Connections from your computer or your corporate network environment to your Compute Engine VM instance. If you are unsure of what IP address to use, talk to your company's network admin.
- Communication between VMs in a 3-tier, scaleout, or high-availability configuration. For example, if you are deploying a 3-tier system, you will have at least 2 VMs in your subnetwork: the VM for SAP NetWeaver, and another VM for the database server. To enable communication between the two VMs, you must create a firewall rule to allow traffic that originates from the subnetwork.
To create a firewall rule:
In the Google Cloud console, go to the VPC network Firewall page.
At the top of the page, click Create firewall rule.
- In the Network field, select the network where your VM is located.
- In the Targets field, select All instances in the network.
- In the Source filter field, select one of the following:
- IP ranges to allow incoming traffic from specific IP addresses. Specify the range of IP addresses in the Source IP ranges field.
- Subnets to allow incoming traffic from a particular subnetwork. Specify the subnetwork name in the following subnets field. You can use this option to allow access between the VMs in a 3-tier or scaleout configuration.
- In the Protocols and ports section, select Specified protocols and
ports and specify
tcp:PORT_NUMBER;
.
Click Create to create your firewall rule.
Deploying a VM for Db2 on Google Cloud
When you create a VM, you can specify several options, including the operating system, region, machine type, and persistent disks.
To create a VM:
In the Google Cloud console, go to the Compute Engine Images page.
To use a public image, choose a supported image from the list. SAP has certified the following images for IBM Db2 on Google Cloud:
- Red Hat Enterprise Linux 7.4
- SUSE Linux Enterprise Server 12 SP2 or higher
- Windows Server 2012 R2 and higher
Click Create Instance.
Enter a name for your VM. Limit the name to 13 characters, as this is the maximum supported by SAP. For more information, see SAP Note 611361: Hostnames of SAP servers.
Select the zone for your VM based on the location of your internal resources and users, and the machine type you want to use.
See the following guides and SAP Notes for more details on the zones supported for SAP Netweaver:
Change the machine type to one of the supported machine types. To see the supported machine types and their persistent-disk limitations, see the IBM Db2 for SAP planning guide.
Optionally, in the Boot disk section, click Change. In the Boot disk dialog, you can configure the size and type of your boot disk. After you finish configuring your boot disk, click Select to commit your changes.
Expand the Management, security, disks, networking, sole tenancy section.
On the Management tab, under Availability policy, verify that the following defaults are set:
- To ensure availability of your SAP systems, keep the Preemptibility setting set to Off (recommended).
- To ensure that your VM can restart if there's a maintenance or failure event, keep the Automatic restart setting set to On (recommended).
- To ensure that your VM is migrated to other hardware during infrastructure maintenance, keep the On host maintenance setting set to Migrate VM instance (recommended).
On the Disks tab, clear the Delete boot disk when instance is deleted checkbox.
Next, create a set of disk volumes for your database data, database logs, and stored procedures. For each disk volume, perform the following steps:
- On the Disks tab, under Additional disks, click Add new disk to add persistent disks for storage.
- Optionally, enter a name in the Name field.
- Under Type, select the disk type for the disk.
- Under Source type, select None (blank disk).
- Specify the size of your disk. Disk sizes are subject to SAP and IBM Db2
requirements. See:
- SAP Note 1707361 - Inst. Systems Based on NW 7.1 and Higher: UNIX Db2 for LUW
- The appropriate installation guide for your SAP system with IBM Db2
- To add the disk, click Done.
- Repeat the preceding steps for each disk you need for your system.
Finally, configure your networking details and create the VM:
- On the Networking tab, under Network interfaces, choose the network that you created earlier.
- On the SSH Keys tab, select Block project-wide SSH keys.
- To create and start the VM, click Create.
Connecting to your VM
Next, establish a connection to your VM.
Linux
The easiest ways to connect to a Linux VM are to connect from your browser through the Google Cloud console, or from the command line through the Google Cloud CLI. You can also connect to a Linux VM by using common SSH tools.
Alternatively, you can generate a new key-pair for your Linux VM and apply it to your project, which lets you connect by using third-party tools, such as PuTTY on Windows workstations. For more details, see Create SSH keys.
You can also connect to your VM by using other configurations. For a list of supported environments and known issues, see SSH from the browser.
Console
To connect by using ssh
directly from your browser in the
Google Cloud console:
- In the Google Cloud console, go to the VM instances page.
- In the list of virtual machine instances, click SSH in the row of the instance that you want to connect to.
gcloud
The Google Cloud CLI manages your SSH keys for you by generating and applying new project-wide SSH keys when you need them. To connect through the gcloud CLI:
gcloud compute ssh VM_NAME
Replace VM_NAME
with your VM name.
You can now use the terminal to run commands on your Linux VM. When you are
done, use the exit
command to disconnect from the VM.
Windows
To connect to a Windows-based VM, you must first generate a password for the VM. You can then connect to the VM by using RDP or PowerShell.
Generating passwords
After you create a Windows VM, you must generate a password for the VM before you can connect to it:
In the Google Cloud console, go to the Compute Engine VM instances page.
Click the Windows instance where you want to generate a new password.
On the Instance details page, click Create or reset Windows Password. A password is generated for you.
To create a new user and password, specify a user name.
Click Set. Note the username and password so you can sign in to the VM.
Using RDP
If your firewall rule allows access
on port 3389
, you can use RDP to connect to a Windows instance and start a
Remote Desktop session. Alternatively, you can
connect to Windows instances using the PowerShell terminal.
Connect to the remote desktop on Windows instances by manually connecting through the Windows Remote Desktop Connection client or a third-party client:
- If you don't already have an RDP client, install one now. For information from Microsoft about available RDP clients, see Remote Desktop clients.
- Get your Windows VM's external IP address. To find the VM IP address, you
can use either of the following methods:
- In the Google Cloud console, go to the VM Instances page.
- Use the gcloud CLI to run
gcloud compute instances list
to list your VM instances with their external IP addresses.
- In your RDP client, provide your VM's external IP address as the IP address to connect to.
- Enter your sign-in information and leave the Domain field blank. If this is your first time connecting to this VM, or if you have forgotten your password, create or reset your Windows password.
Using PowerShell
- If you haven't created a username and password on the Windows VM yet, create or reset your Windows password.
- Add a firewall rule
or edit your existing firewall rule to open port
5986
on the Google Cloud network where your Windows Server VM is located. - On your local workstation, open the PowerShell terminal.
Optionally, you can initialize a variable to hold your user credentials so you don't need to enter them each time you connect to the instance. If you skip this step, you receive a prompt for your username and password later.
$credentials = Get-Credential
Use the
Enter-PSSession
command to start a remote PowerShell session and include the flags to use SSL and skip credentials checks.Enter-PSSession -ComputerName [IP_ADDRESS] -UseSSL -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck) -Credential $credentials
Formatting and mounting disk drives
Next, format your disk drives and mount them to your VM.
Linux
After you connect to your VM, format and mount your disk drives.
Optionally, you can use Logical Volume Manager (LVM) to format a single disk and split it into the required directories. Both LVM and non-LVM methods are shown in the following procedures.
Formatting and mounting disk drives without LVM
To format and mount your disk drives without LVM:
In the terminal where you are connected to your VM, create directories to which you can mount each device:
sudo mkdir -p /db2 sudo mkdir -p /db2/DBSID sudo mkdir -p /db2/DBSID/log_dir sudo mkdir -p /db2/DBSID/db2dump sudo mkdir -p /db2/DBSID/sapdata sudo mkdir -p /db2/DBSID/saptmp
In the terminal, use the
ls
command to identify the disks that you want to mount.ls /dev/disk/by-id/
You see an output similar to the following. The disk ID usually includes the name of the disk with a
google-
prefix or ascsi-0Google_
prefix. This example uses thegoogle-
ID.google-example-instance google-example-instance-db2 google-example-instance-db2-dbsid google-example-instance-db2-dump google-example-instance-db2-log-dir google-example-instance-db2-sapdata google-example-instance-db2-saptmp
Format the disks. If you are using Db2 V11.1, either the
xfs
orext4
file system is recommended, because both support the fast preallocation file system feature. Db2 V10.5 doesn't supportxfs
orext4
.The following commands format each disk with a single
ext3
file system and no partition table:sudo mkfs.ext3 -F /dev/disk/by-id/google-example-instance-db2 sudo mkfs.ext3 -F /dev/disk/by-id/google-example-instance-db2-dbsid sudo mkfs.ext3 -F /dev/disk/by-id/google-example-instance-db2-dump sudo mkfs.ext3 -F /dev/disk/by-id/google-example-instance-db2-sapdata sudo mkfs.ext3 -F /dev/disk/by-id/google-example-instance-db2-saptmp sudo mkfs.ext3 -F /dev/disk/by-id/google-example-instance-db2-log-dir
Mount each disk to the VM:
sudo mount -o discard,defaults /dev/disk/by-id/google-example-instance-db2 /db2 sudo mount -o discard,defaults /dev/disk/by-id/google-example-instance-db2-dbsid /db2/DBSID sudo mount -o discard,defaults /dev/disk/by-id/google-example-instance-db2-dump /db2/DBSID/db2dump sudo mount -o discard,defaults /dev/disk/by-id/google-example-instance-db2-sapdata /db2/DBSID/sapdata sudo mount -o discard,defaults /dev/disk/by-id/google-example-instance-db2-saptmp /db2/DBSID/saptmp sudo mount -o discard,defaults /dev/disk/by-id/google-example-instance-db2-log-dir /db2/DBSID/log_dir
Configure read and write access to the device. For this example, grant write access to the device for all users:
sudo chmod a+w /db2 sudo chmod a+w /db2/DBSID sudo chmod a+w /db2/DBSID/db2dump sudo chmod a+w /db2/DBSID/sapdata sudo chmod a+w /db2/DBSID/saptmp sudo chmod a+w /db2/DBSID/log_dir
Optionally, you can add the persistent disks to the
/etc/fstab
file so that the device automatically mounts again when the VM restarts.When you specify the entry
/etc/fstab
file, include thenofail
option so that the instance can continue to boot even if the disk isn't present. For example, if you take a snapshot of the boot disk and create a new instance without any persistent disks attached, the instance can continue through the startup process and not pause indefinitely.Create the
/etc/fstab
entry. Use theblkid
command to find the UUID for the file system on the device and edit the/etc/fstab
file to include that UUID with the mount options. You can complete this step with a single command for each disk drive:echo UUID=`sudo blkid -s UUID -o value /dev/disk/by-id/google-example-instance-db2` /db2 ext3 discard,defaults,[NOFAIL] 0 2 | sudo tee -a /etc/fstab echo UUID=`sudo blkid -s UUID -o value /dev/disk/by-id/google-example-instance-db2-dbsid` /db2/DBSID ext3 discard,defaults,[NOFAIL] 0 2 | sudo tee -a /etc/fstab echo UUID=`sudo blkid -s UUID -o value /dev/disk/by-id/google-example-instance-db2-log-dir` /db2/DBSID/log_dir ext3 discard,defaults,[NOFAIL] 0 2 | sudo tee -a /etc/fstab echo UUID=`sudo blkid -s UUID -o value /dev/disk/by-id/google-example-instance-db2-dump` /db2/DBSID/db2dump ext3 discard,defaults,[NOFAIL] 0 2 | sudo tee -a /etc/fstab echo UUID=`sudo blkid -s UUID -o value /dev/disk/by-id/google-example-instance-db2-sapdata` /db2/DBSID/sapdata ext3 discard,defaults,[NOFAIL] 0 2 | sudo tee -a /etc/fstab echo UUID=`sudo blkid -s UUID -o value /dev/disk/by-id/google-example-instance-db2-saptmp` /db2/DBSID/saptmp ext3 discard,defaults,[NOFAIL] 0 2 | sudo tee -a /etc/fstab
In this,
[NOFAIL]
is the option that specifies what the system should do if it is unable to mount this disk.Use the
cat
command to verify that your/etc/fstab
entries are correct:cat /etc/fstab
If you detach this persistent disk or create a snapshot from the boot disk for
this instance, edit the /etc/fstab
file and remove the entry for this
persistent disk. Even with the nofail
option in place, keep the /etc/fstab
file in sync with the devices that are attached to your instance and remove
these entries before you create your boot disk snapshot.
Formatting and mounting drives with LVM
To format and mount a single disk with logical volumes for all required drives by using LVM:
Make sure the disk you have created for your drives is large enough to provide all volumes with the storage that they require. For example, in the following procedure, the size specified for the disk is 100 GB.
Run
pvscan
to scan all disks for physical volumes:sudo mkdir -p /db2 sudo mkdir -p /db2/DBSID sudo mkdir -p /db2/DBSID/log_dir sudo mkdir -p /db2/DBSID/db2dump sudo mkdir -p /db2/DBSID/sapdata sudo mkdir -p /db2/DBSID/saptmp
Initialize the disk or a partition for use by LVM:
pvcreate /dev/sdb
Create a volume group:
vgcreate vg_db2 /dev/sdb
Create logical volumes for each drive, using the sizes you need:
lvcreate -L 8G -n db2 vg_db2 lvcreate -L 8G -n db2dbsid vg_db2 lvcreate -L 8G -n db2logdir vg_db2 lvcreate -L 8G -n db2dump vg_db2 lvcreate -L 8G -n db2saptmp vg_db2 lvcreate -L 50G -n db2sapdata vg_db2
Format the volumes. If you are using Db2 V11.1, either the
xfs
orext4
file system is recommended, because both support the fast preallocation file system feature. Db2 V10.5 doesn't supportxfs
orext4
.The following commands format each volume with a single
ext3
file system and no partition table:mkfs -t ext3 /dev/vg_db2/db2 mkfs -t ext3 /dev/vg_db2/db2dbsid mkfs -t ext3 /dev/vg_db2/db2logdir mkfs -t ext3 /dev/vg_db2/db2dump mkfs -t ext3 /dev/vg_db2/db2saptmp mkfs -t ext3 /dev/vg_db2/db2sapdata
Create a mount point:
mkdir /db2
Mount the file systems to the mount point:
sudo mount -o discard,defaults /dev/vg_db2/db2dbsid /db2/DBSID mkdir /db2/DBSID/log_dir sudo mount -o discard,defaults /dev/vg_db2/db2logdir /db2/DBSID/log_dir mkdir /db2/DBSID/db2dump sudo mount -o discard,defaults /dev/vg_db2/db2dump /db2/DBSID/db2dump mkdir /db2/DBSID/saptmp sudo mount -o discard,defaults /dev/vg_db2/db2saptmp /db2/DBSID/saptmp mkdir /db2/DBSID/sapdata sudo mount -o discard,defaults /dev/vg_db2/db2sapdata /db2/DBSID/sapdata
The resulting drives look similar to this:
Filesystem 1K-blocks Used Available Use% Mounted ... ... dev/mapper/vg_db2-db2 8378368 32976 8345392 1% /db2 dev/mapper/vg_db2-db2 8378368 33024 8345344 1% /db2/DBSID dev/mapper/vg_db2-db2 52403200 32976 52370224 1% /db2/DBSID/sapdata dev/mapper/vg_db2-db2 8378368 32976 8345392 1% /db2/DBSID/saptmp dev/mapper/vg_db2-db2 8378368 32976 8345392 1% /db2/DBSID/log_dir dev/mapper/vg_db2-db2 8378368 32976 8345392 1% /db2/DBSID/db2dump
Optionally, you can add the persistent disk to the
/etc/fstab
file so that the device automatically mounts again when the VM restarts.When you specify the entry
/etc/fstab
file, include thenofail
option so that the instance can continue to boot even if the disk isn't present. For example, if you take a snapshot of the boot disk and create a new instance without any persistent disks attached, the instance can continue through the startup process and not pause indefinitely.Create the
/etc/fstab
entry. Use theblkid
command to find the UUID for the file system on the device and edit the/etc/fstab
file to include that UUID with the mount options. You can complete this step with a single command for each disk drive:echo UUID=`sudo blkid -s UUID -o value /dev/vg_db2/db2` /db2 ext3 discard,defaults,nofail 0 2 | sudo tee -a /etc/fstab echo UUID=`sudo blkid -s UUID -o value /dev/vg_db2/db2dbsid` /db2/DBSID ext3 discard,defaults,nofail 0 2 | sudo tee -a /etc/fstab echo UUID=`sudo blkid -s UUID -o value /dev/vg_db2/db2logdir` /db2/DBSID/log_dir ext3 discard,defaults,nofail 0 2 | sudo tee -a /etc/fstab echo UUID=`sudo blkid -s UUID -o value /dev/vg_db2/db2dump` /db2/DBSID/db2dump ext3 discard,defaults,nofail 0 2 | sudo tee -a /etc/fstab echo UUID=`sudo blkid -s UUID -o value /dev/vg_db2/db2saptmp` /db2/DBSID/saptmp ext3 discard,defaults,nofail 0 2 | sudo tee -a /etc/fstab echo UUID=`sudo blkid -s UUID -o value /dev/vg_db2/db2sapdata` /db2/DBSID/sapdata ext3 discard,defaults,nofail 0 2 | sudo tee -a /etc/fstab
In this,
[NOFAIL]
is the option that specifies what the system should do if it is unable to mount this disk.Use the
cat
command to verify that your/etc/fstab
entries are correct:cat /etc/fstab
If you detach this persistent disk or create a snapshot from the boot disk for
this instance, edit the /etc/fstab
file and remove the entry for this
persistent disk. Even with the nofail
option in place, keep the /etc/fstab
file in sync with the devices that are attached to your instance and remove
these entries before you create your boot disk snapshot.
You can also follow a hybrid approach by using LVM to simplify volume resizing and management, while retaining separate persistent disks. This allows you to take snapshots of independent volumes, or remove some volumes to instead make use of shared file systems via NFS services like Filestore or a third-party file-sharing solution such as NetApp Cloud Volumes Service for Google Cloud.
Windows
After you have connected to your Windows VM, format your disks so that you can begin using them. You also configure the Windows pagefile in the following steps:
- From the Start menu, search for and open the Server Manager.
Select File and Storage Services, and then select Disks.
In the Disks dialog, right-click the first non-MBR disk, and then click New Volume.
Proceed with the defaults and enter a disk label.
When you get to the file-system-settings step, change the Allocation unit size to a value from the following list:
- Database disks:
32
KB - Pagefile:
8
KB - Other disks: default of
4
KB.
- Database disks:
Enter a volume label that describes the disk with a meaningful name.
Repeat the preceding steps for each additional disk.
Preparing the operating system
After you format and mount your disk drives, prepare your operating system.
Linux
After you create your VM, consult the relevant SAP notes on installation and ensure that your system includes the software components specified:
SAP Note 1984787 - SUSE LINUX Enterprise Server 12: Installation Notes
SAP Note 2002167 - Red Hat Enterprise Linux 7.x: Installation and Upgrade
Windows
- If planned, join the Windows Server OS to a domain.
- Configure the High Performance power plan.
- Calculate the page file size referencing SAP Note 1518419: Page file and virtual memory required by the SAP system and configure the Windows Pagefile.
Installing the database server
Now that your operating system is configured, you can install your IBM Db2 database server.
For guidance on installing SAP NetWeaver with IBM Db2, see the installation guide that is specific to your SAP NetWeaver system.
Linux
To install IBM Db2 on your VM:
- Establish an
ssh
connection to your Linux-based VM. - Download or copy the complete SAP media set for Db2 to your VM. You can download the SAP media set from the SAP support portal.
- Install the IBM Db2 database server with the SAP Software Provisioning Manager.
- Install your IBM Db2 license file. For more information about installing a Db2 license that you obtained from SAP, see SAP Note 816773 - DB6: Installing an SAP OEM license.
Windows
To install IBM Db2 on your VM:
- Use RDP or Windows PowerShell to connect to your Windows-based VM.
- Download or copy the complete SAP media set for Db2 to your VM. You can download the SAP media set from the SAP support portal.
- Install the IBM Db2 database server.
- Install your IBM Db2 license file. For more information about installing a Db2 license that you obtained from SAP, see SAP Note 816773 - DB6: Installing an SAP OEM license.
Installing Google Cloud's Agent for SAP
For support and monitoring, Google Cloud provides the Agent for SAP, for SAP workloads running on Compute Engine VM instances and Bare Metal Solution servers.
As mandated by SAP, to get support from SAP and to enable SAP to meet its service-level agreements (SLAs), you must install Google Cloud's Agent for SAP on all Compute Engine VM instances and Bare Metal Solution servers that run any SAP system. For more information on the support prerequisites, see SAP Note 2456406 - SAP on Google Cloud Platform: Support Prerequisites .
Version 3.5 (latest) of Google Cloud's Agent for SAP is the successor of Google Cloud's monitoring agent for SAP NetWeaver version 2, monitoring agent for SAP HANA version 2, and the Cloud Storage Backint agent for SAP HANA. Therefore, in addition to the collection of metrics, version 3.5 (latest) of Google Cloud's Agent for SAP includes the optional feature: Backint based backup and recovery for SAP HANA. You can opt in to these features that enable products and services such as Workload Manager for your SAP workloads.
You install Google Cloud's Agent for SAP on the host alongside the SAP system. For instructions about how to install and configure the agent, validate your installation, and verify that the agent is running as expected, see Install the agent on a Compute Engine VM instance.
If you use the following RHEL or SLES "for SAP" OS images that Google Cloud provides, then Google Cloud's Agent for SAP is packaged with the OS images:
- RHEL: all "for SAP" images
- SLES: SLES 15 SP4 for SAP and later versions
Performing post-deployment tasks
Before using your IBM Db2 instance, we recommend that you perform the following post-deployment steps:
- Update your IBM Db2 software with the latest patches, if available.
- Install any additional components.
- Configure and back up your new IBM Db2 database.
For additional post-deployment guidance, see the Post-installation Tasks section of the installation guide that applies to the SAP system that you are using with IBM Db2.
Troubleshooting
This section contains information about how to correct common issues.
Troubleshooting connecting to your VM
If you are having issues connecting to your VM through ssh
, ensure that you
have created a firewall rule to open port 22
on the Google Cloud network
you are using.
For other possible issues, see
Known issues
for connecting through ssh
from the browser.