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
1.2 Check the replication status
1.3 INSTALL NTP PACKAGE ON BOTH NODE
Execute the following commands:
- zypper in ntp
- echo “server ntp1.esds.co.in” >> /etc/ntp.conf
1.4 INSTALL HA_SLES PACKAGES
Execute the following command
- zypper in –t pattern ha_sles
1.5 Installation completed
1.6 Enable SOFTDOG
Execute the following command to enable
- lsmod | grep softdog
2. STOP NTP –> on both the nodes
Command
- rcntpd stop
3. How to add the shared disk on Node1
- 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
5. SSH –KEYGEN CONFIGURATION
Command:
- ssh-keygen
6. CHECK THE CLUSTER CONFIGURATION
Command:
- crm status
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
7.1 Enable NTPD &Cluster enable
Command:
- systemctl enable ntpd
- ha-cluster-join
7.2 Check the cluster configuration
Execute the following commands
- crm status
- crm configure property management-mode-“true”
8. HOW TO ADD VIRTUAL IP ON PRIMARY NODE
8.1 Database File system issue
Note: Configure reverse replication
9. ENABLE REVERSE REPLICATION
9.1 Configured the HANA replication PRIMARY to SECONDARY
10. HOW TO ADD SAP APPLICATION IN CLUSTER
Enter the URL – <ipaddress>:<port>/login
Username – hacluster
Password – linux
Go to –>SAP HANA SR Scale-Up Performance-Optimized
10.1 Enter the HANA application parameters
10.2 Configure cluster resources
10.3 Check status
If you’re interested to know more about SAP Knowledge Base, don’t forget to visit – SAP KB