ESDS Knowledge Base

01
Mar

S4/HANA Cost-optimized Cluster Setup

To support the high availability of your SAP system, the IT team can install SAP in a cluster environment. A cluster is a group of two or more connected servers that are configured with the same operating system, databases, and applications. These connected servers are referred to as “nodes.”

Procedure

1. BACK UP

1.1 Take the backup of the existing system database

S4/HANA Cost-optimized Cluster Setup 1
S4/HANA Cost-optimized Cluster Setup 2

1.2 Check the replication status

S4/HANA Cost-optimized Cluster Setup 3

1.3 INSTALL NTP PACKAGE ON BOTH NODE

Execute the following commands:

  • zypper in ntp
  • echo “server ntp1.esds.co.in” >> /etc/ntp.conf
S4/HANA Cost-optimized Cluster Setup 4

1.4 INSTALL HA_SLES PACKAGES

Execute the following command

  • zypper in –t pattern ha_sles
S4/HANA Cost-optimized Cluster Setup 5
S4/HANA Cost-optimized Cluster Setup 6

1.5 Installation completed

S4/HANA Cost-optimized Cluster Setup 7

1.6 Enable SOFTDOG

Execute the following command to enable

  • lsmod | grep softdog
S4/HANA Cost-optimized Cluster Setup 8

2. STOP NTP –> on both the nodes

Command

  • rcntpd stop
S4/HANA Cost-optimized Cluster Setup 9

3. How to add the shared disk on Node1

S4/HANA Cost-optimized Cluster Setup 10
S4/HANA Cost-optimized Cluster Setup 11
  • Note: Maintain the following parameters

Disk provisioning – Thick Provision Eagar Zeroed

Sharing- Multi-writer

Virtual Device Node- SCSI controller 1

Stonith disk- 5 GB

4. CONFIGURE WATCHDOG ON BOTH NODES

Commands:

  • lsmod | grep soft — > check whether watchdog is configured or available
  • ls -lrt /etc/modules-load.d/
  • echo softdog > /etc/modules-load.d/watchdog.conf
  • cat /etc/modules-load.d/watchdog.conf
  • lsmod | grep softdog
  • modprobe softdog
  • lsmod | grep softdog
S4/HANA Cost-optimized Cluster Setup 12

5. SSH –KEYGEN CONFIGURATION

Command:

  • ssh-keygen
S4/HANA Cost-optimized Cluster Setup 13
S4/HANA Cost-optimized Cluster Setup 14

6. CHECK THE CLUSTER CONFIGURATION

Command:

  • crm status
S4/HANA Cost-optimized Cluster Setup 15

7. HOW TO ADD SDB STONITH DISK ON 2nd NODE

Commands:

  • sbd -d /dev/disk/by-id/scsi-36000c29aae4ad3f3ebe78d012dcfd69a create
  • sbd -d /dev/disk/by-id/scsi-36000c29aae4ad3f3ebe78d012dcfd69a dump
  • sbd -d /dev/disk/by-id/scsi-36000c29aae4ad3f3ebe78d012dcfd69a list
S4/HANA Cost-optimized Cluster Setup 16

7.1 Enable NTPD &Cluster enable

Command:

  • systemctl enable ntpd
  • ha-cluster-join
S4/HANA Cost-optimized Cluster Setup 17

7.2 Check the cluster configuration

Execute the following commands

  • crm status
  • crm configure property management-mode-“true”
S4/HANA Cost-optimized Cluster Setup 18
S4/HANA Cost-optimized Cluster Setup 19

8. HOW TO ADD VIRTUAL IP ON PRIMARY NODE

S4/HANA Cost-optimized Cluster Setup 20
S4/HANA Cost-optimized Cluster Setup 21
S4/HANA Cost-optimized Cluster Setup 22
S4/HANA Cost-optimized Cluster Setup 23

8.1 Database File system issue

S4/HANA Cost-optimized Cluster Setup 24

Note: Configure reverse replication

9. ENABLE REVERSE REPLICATION

S4/HANA Cost-optimized Cluster Setup 25
S4/HANA Cost-optimized Cluster Setup 26

9.1 Configured the HANA replication PRIMARY to SECONDARY

S4/HANA Cost-optimized Cluster Setup 27
S4/HANA Cost-optimized Cluster Setup 28
S4/HANA Cost-optimized Cluster Setup 29

10. HOW TO ADD SAP APPLICATION IN CLUSTER

Enter the URL – <ipaddress>:<port>/login

Username – hacluster

Password – linux

S4/HANA Cost-optimized Cluster Setup 30

Go to –>SAP HANA SR Scale-Up Performance-Optimized

S4/HANA Cost-optimized Cluster Setup 31

10.1 Enter the HANA application parameters

S4/HANA Cost-optimized Cluster Setup 32
S4/HANA Cost-optimized Cluster Setup 33

10.2 Configure cluster resources

S4/HANA Cost-optimized Cluster Setup 34
S4/HANA Cost-optimized Cluster Setup 35
S4/HANA Cost-optimized Cluster Setup 36
S4/HANA Cost-optimized Cluster Setup 37

10.3 Check status

S4/HANA Cost-optimized Cluster Setup 38

If you’re interested to know more about SAP Knowledge Base, don’t forget to visit – SAP KB

Leave a Reply