Jump to content

DB2 Installation Guide on ANF


Recommended Posts

Guest RalfKlahr
Posted

DB2 Installation Guide on ANF

 

Introduction

 

 

This document will show how you can install SAP NetWeaver 7.5 based on IBM DB2 11.1 and SLES12SP5 in Azure using Azure NetApp Files (ANF) as storage platform for data and log areas.

 

As of July 26th 2022, this combination is fully supported by IBM. SAP notes:

 

2015553 - SAP on Microsoft Azure: Support prerequisites - SAP ONE Support Launchpad

 

 

 

Microsoft documentation

 

IBM Db2 Azure Virtual Machines DBMS deployment for SAP workload - Azure Virtual Machines | Microsoft Docs

 

Set up IBM Db2 HADR on Azure virtual machines (VMs) - Azure Virtual Machines | Microsoft Docs

 

SAP on UNIX and DB2 with NFS and Network Appliance Storage | NetApp

 

 

 

First create an Azure VM in your Azure Subscription

 

 

In this case we created an E16-8ds_v4 with 128GB of RAM and deployed SLES12SP5 on it.

 

 

 

 

 

747x488vv2.jpg.f35905922546fb47478bcbb2a6098de8.jpg

 

 

 

 

 

Volume design on ANF

 

 

Create the volume structure on ANF. The size of each volume is depending on a proper capacity and performance sizing-

 

771x209vv2.png.a085bad5d8efb7630d95cf195e238e6f.png

 

 

 

The performance tier and the size of the volumes must be chosen based on the performance requirements.

 

 

 

Mount the volumes and create the directories.

 

vi /etc/idmapd.conf

# Example

[General]

Domain = defaultv4iddomain.com

[Mapping]

Nobody-User = nobody

Nobody-Group = nobody

 

 

Create the directory structure on the OS and on the NetApp volumes.

 

 

mount -t nfs -o rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 172.17.10.4:/ralfdb2shared /mnt

mkdir -p /db2/Software /db2/AN1/saptmp /usr/sap/AN1 /sapmnt/AN1 /home/an1adm /db2/db2an1 /db2/AN1/db2_software

mkdir -p /mnt/Software /mnt/saptmp /mnt/usr_sap /mnt/sapmnt /mnt/an1_home /mnt/db2_software /mnt/db2an1

umount /mnt

 

 

 

mount -t nfs -o rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 172.17.10.4:/ralfdb2data /mnt

mkdir -p /db2/AN1/sapdata/sapdata1 /db2/AN1/sapdata/sapdata2 /db2/AN1/sapdata/sapdata3 /db2/AN1/sapdata/sapdata4

mkdir -p /mnt/sapdata1 /mnt/sapdata2 /mnt/sapdata3 /mnt/sapdata4

umount /mnt

 

 

mount -t nfs -o rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 172.17.10.4:/ralfdb2log /mnt

mkdir /db2/AN1/log_dir

mkdir /mnt/log_dir

umount /mnt

 

 

 

mount -t nfs -o rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 172.17.10.4:/ralfdb2backup /mnt

mkdir /db2/AN1/backup

mkdir /mnt/backup

mkdir /db2/AN1/offline_log_dir /db2/AN1/db2dump

mkdir /mnt/offline_log_dir /mnt/db2dump

umount /mnt

 

 

vi /etc/fstab

...

..

172.17.10.4:/ralfdb2shared/Software /db2/Software nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2shared/saptmp /db2/AN1/saptmp nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2shared/db2_software /db2/AN1/db2_software nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2shared/usr_sap /usr/sap/AN1 nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2shared/sapmnt /sapmnt/AN1 nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2shared/an1_home /home/an1adm nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2shared/db2an1 /db2/db2an1 nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2data/sapdata1 /db2/AN1/sapdata/sapdata1 nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2data/sapdata2 /db2/AN1/sapdata/sapdata2 nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2data/sapdata3 /db2/AN1/sapdata/sapdata3 nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2data/sapdata4 /db2/AN1/sapdata/sapdata4 nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2log/log_dir /db2/AN1/log_dir nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2backup/offline_log_dir /db2/AN1/offline_log_dir nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

172.17.10.4:/ralfdb2backup/db2dump /db2/AN1/db2dump nfs4 rw,hard,sync,rsize=262144,wsize=262144,sec=sys,vers=4.1,tcp 0 0

 

 

 

 

mount -a

df -h

 

Filesystem Size Mounted on

172.17.10.4:/ralfdb2shared/saptmp 200G /db2/AN1/saptmp

172.17.10.4:/ralfdb2shared/db2_software 200G /db2/AN1/db2_software

172.17.10.4:/ralfdb2shared/usr_sap 200G /usr/sap/AN1

172.17.10.4:/ralfdb2shared/sapmnt 200G /sapmnt/AN1

172.17.10.4:/ralfdb2shared/an1_home 200G /home/an1adm

172.17.10.4:/ralfdb2shared/db2an1_home 200G /db2/db2an1

172.17.10.4:/ralfdb2data/sapdata1 500G /db2/AN1/sapdata/sapdata1

172.17.10.4:/ralfdb2data/sapdata2 500G /db2/AN1/sapdata/sapdata2

172.17.10.4:/ralfdb2data/sapdata3 500G /db2/AN1/sapdata/sapdata3

172.17.10.4:/ralfdb2data/sapdata4 500G /db2/AN1/sapdata/sapdata4

172.17.10.4:/ralfdb2log/log_dir 200G /db2/AN1/log_dir

172.17.10.4:/ralfdb2backup/offline_log_dir 400G /db2/AN1/offline_log_dir

172.17.10.4:/ralfdb2backup/db2dump 400G /db2/AN1/db2dump

Prepare the SAP installation

 

 

Download the required packages from the SAP Software Download Center. Store the files in /db2/Software.

 

ralfdb2vm01:/db2/Software # ls -l

drwxr-xr-x 3 root root 4096 51050829_3_Export

drwxr-xr-x 3 root root 4096 51054236_DB2_11.1_Client

drwxr-xr-x 3 root root 4096 51054886_DB2_11.1_MP4_FP6

drwxr-xr-x 3 root root 4096 51054888_DB2_11.1_MP4_FP6_Data

drwxr-xr-x 2 root root 4096 Kernel_753

-rw-r--r-- 1 root root 4483040 SAPCAR

drwxr-xr-x 34 root root 4096 SWPM

 

 

 

ralfdb2vm01:/db2/Software/Kernel_753 # ls -l

-rw-r--r-- 1 root root 53267510 DBATL740O11_44-80002679.SAR

-rw-r--r-- 1 root root 18564826 SAPEXEDB_800-80002603.SAR

-rw-r--r-- 1 root root 365661644 SAPEXE_800-80002573.SAR

-rw-r--r-- 1 root root 95454415 SAPHOSTAGENT51_51-20009394.SAR

-rw-r--r-- 1 root root 104064440 igsexe_13-80003187.sar

-rw-r--r-- 1 root root 62964377 igshelper_17-10010245.sar

 

 

 

Maintain the hosts file

 

vi /etc/hosts

127.0.0.1 localhost

172.17.4.6 ralfdb2vm01.lab.demo.com ralfdb2vm01

 

 

 

vi /etc/hostname

ralfdb2vm01.lab.demo.com

 

 

Uncommennt the DB2 port in the /etc/services file

 

vi /etc/services

#fis 5912/tcp # Flight Information Services

#fis 5912/udp # Flight Information Services

#fis 5912/sctp # Flight Information Services

 

 

 

Copy the SAPCAR to /usr/bin which allows you an easier usage.

 

cd /db2/Software

cp SAPCAR /usr/bin

chmod 755 /usr/bin/SAPCAR

 

 

Update the system

 

 

uname -a # actual Kernel 4.12.14-16.44-azure

zypper up

zypper in libstdc++6-32bit libstdc++33-32bit gcc-c++

zypper in sap-locale sap_server sapconf gcc

uname -a à 4.12.14-16.56-azure

 

Set the SAP NetWeaver parameter to the OS and make sure the sapconf is running. If you run SLES for SAP Solutions also saptune is available.

 

sapconf netweaver

 

 

systemctl status sapconf

sapconf.service - sapconf

Loaded: loaded (/usr/lib/systemd/system/sapconf.service; enabled; vendor preset: enabled)

Active: active (exited) since Fri 2021-05-14 11:37 UTC; 3min 1s ago

Process: 3827 ExecStart=/usr/sbin/sapconf start (code=exited, status=0/SUCCESS)

Main PID: 3827 (code=exited, status=0/SUCCESS)

Tasks: 0 (limit: 512)

CPU: 0

CGroup: /system.slice/sapconf.service

 

 

 

Disable the Firewall

 

systemctl disable SuSEfirewall2_init

systemctl disable SuSEfirewall2

Now start the SAP Installation

 

 

cd /db2/Software/SWPM

./sapinst

[==============================] - extracting... done! -xf ../SWPM10SP31_5-20009701.SAR

********************************************************************

 

Open your browser and paste the following URL address to access the GUI

 

https://ralfdb2vm01.lab.demo.com:4237/sapinst/docs/index.html

 

Logon users: [root]

 

697x204vv2.png.a9f9df6ac16b32530c468b3f7d42f373.png

 

 

 

636x221vv2.png.dcd5fc6d54c33a9fb3987acbf634644d.png

 

 

 

 

 

Select SAP NetWaever 7.5

 

577x290vv2.png.99fa5d0991b240f42d5fc83520471a54.png

 

 

 

 

 

Select Custom

 

558x283vv2.png.2b24eff3699ba635b5c69572a5e34981.png

 

 

 

 

 

 

 

Define the SID

 

600x180vv2.png.40846a95f2a411393c0817dc87df539a.png

 

 

 

Select the FQDN

 

579x191vv2.png.bf7a370a3c7dc14f80116c70d432759a.png

 

 

 

Set the default password

 

592x352vv2.png.9af9c2d0219168c85ddce93927bd876e.png

 

 

 

 

 

 

 

Specify the <sid>adm user parameter

 

574x244vv2.png.15f5db9fc0c5a774c6d3981dd16cbc8b.png

 

 

 

I keep the DN-SID like the SID of the SAP instance

 

635x227vv2.png.cc28e09a32d2cc9845127e450ae9f534.png

 

 

 

Sinse we use 11.1 MP4 we need to specify “Allow unsigned database versions”

 

632x332vv2.png.4e65da591bab4e55bc6b34415c1651c5.png

 

 

 

Keep it like it is

 

634x309vv2.png.55ab51c281720af0019eeb61302cf4b0.png

 

 

 

Specify the database software location

 

656x413vv2.png.56be6863d09fa9cfc3ca78eeed68005d.png

 

 

 

 

 

 

 

Specify the db2 user parameter

 

682x472vv2.png.f6219cb6c6aca920ca07a9931c04ceed.png

 

 

 

Specify the ABAP connect user

 

673x436vv2.png.3a1c408118f1a78a62104258324574aa.png

 

 

 

 

 

 

 

We keep the group-ID’s as default, this of course is customer specific

 

702x279vv2.png.7428e088afab15d0f936ba2628d39e86.png

 

 

 

 

 

Specify the Kernel location

 

682x191vv2.png.f281984495d665a8ca722bd2b6148786.png

 

 

 

724x288vv2.png.392298945b68c975d45cb9c7d91e899b.png

 

 

 

Specify the location of the SAPHOSTAGENT

 

 

 

710x447vv2.png.f60f46da42442fdf87700f273cf004aa.png

 

 

 

 

 

Specify the sapadm user details

 

735x272vv2.png.809fe9aecdfc502456068b60dfee0c18.png

 

 

 

 

 

 

 

Specify the export location

 

811x304vv2.png.6fa1437f4151646ebed2f3fccc609ee3.png

 

 

 

Specify the DB Software repository

 

752x344vv2.png.deaab8ba6bcf80068967c2633644f046.png

 

 

 

For ERP we do not select DB2 BLU here

 

669x296vv2.png.20d7d7aeeba9751b03e821b541468f3b.png

 

 

 

 

 

 

 

The DB memory is, of course, very customer specific

 

644x248vv2.png.01e5daa160e8a09354aa187e362785ce.png

 

 

 

Use the default here

 

608x316vv2.png.c27a53076bb2c3b152b9eb9b8146b103.png

 

 

 

 

 

 

 

For the test system we do not use any encryption. This is also customer specific.

 

606x262vv2.png.14deafcb5996f1ce1424ff1e2923fd96.png

 

 

 

No pureScale and no Tivoli for this installation

 

648x353vv2.png.43ba165b1c51bb088788ee088777a791.png

 

 

 

647x215vv2.thumb.png.985295416e8422f2d6f7cc83dffea78d.png

 

 

 

Keep the default here

 

605x227vv2.png.e0a87f1e548573c0d42649bd45720034.png

 

 

 

Specify the location of the DB2 11.1 client

 

604x302vv2.png.12b7011ee412394a9fffdc913481dbc6.png

 

 

 

Since we use ANF (NFS) here we need to unselect the ASM here

 

637x164vv2.png.2fef3b53c3c9ae8e56e92262b2790b46.png

 

 

 

626x191vv2.png.835c29bbb5e81fe0d551b041bf1e8d6c.png

 

 

 

627x329vv2.png.d8e30a1bdccb9ccc181eb123a17a22f2.png

 

 

 

Keep the default here unless you have customer details.

 

620x234vv2.png.ed77f14b37217ffadb242a680f063015.png

 

 

 

This must be aligned to our storage design, so it must be:

 

/db2/AN1/sapdata/sapdata1..n

 

639x270vv2.png.04bc5019bd88e51f5b2d01145b11838c.png

 

 

 

Keep the default here

 

624x265vv2.png.89464589f6570d0bc803ce31e038619f.png

 

 

 

 

 

648x235vv2.png.04ebcc84b8c34f89f70a3b070b024225.png

 

 

 

That was the DB part. Now we enter the specification of the Application Server

 

We define 00 for the PAS the 00 and for the ASCS the 01

 

631x213vv2.thumb.png.5a876e783bc521b8d3a39c901b655468.png

 

 

 

This will result in the following port numbers.

 

721x238vv2.png.5043ead248b1e4170ab7427046065900.png

 

 

 

This is customer specific

 

644x301vv2.png.db98ee9bd68889c265c4192cb5b7ccad.png

 

 

 

We keep the default passwords here

 

674x241vv2.thumb.png.6c605cbbe16bf3a46871d861e43c7089.png

 

 

 

No SLD integration here. This will be, most likely, different in a customer installation.

 

678x273vv2.png.09da183033b36f788053d1edb9c4de1e.png

 

 

 

Also default here

 

630x238vv2.png.5c72fbff632ad27a175780014183d264.png

 

 

 

679x248vv2.png.4dd6cd45b6dd552e2f65b099ded66a98.png

 

 

 

We use the default Secure Storage key here

 

641x173vv2.png.2bf984f8e916aae6bab41b9008d5672d.png

 

 

 

We keep the user in the sapinst group.

 

628x179vv2.png.04b4da3ab796bd3489fc5bc8267458db.png

 

 

 

 

 

After reviewing the specified parameter let it run….

 

603x193vv2.png.67ccf051114bc9878baa85109a0339d5.png

 

 

 

 

 

615x332vv2.png.b933fcc0458fd5d372601967ac03bfb0.png

 

 

 

System is up and running

 

 

End

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...