Skip to content

DB2 HADR on pacemaker automated installation reference scripts

Notifications You must be signed in to change notification settings

junsulee75/db2pcmkconfig

Repository files navigation

Db2 hadr on pacemaker automatic configurator

Fully automated scripts for creating DB2 HADR / pacemaker environment.

Contents

Objectives

The scripts assume the following things in advance.

  • Passwordless ssh root user login is set between hosts.
    (IBM Fyre provisioned system has set already.)

  • For automated Db2 installation images download by curl, I configured my own web server containing donwloaded Db2 images.
    You may use the same way with your own web server or just change config.ini and 2_db2_install.sh to set file path manually.

  • You know which VIP address to use. (Need to figure out an unused IP by yourself)

Go to content

Steps

  1. Prepare 3 Redhat hosts.

Example)

  • Redhat 8.8 or 8.10
  • Size : Any
  • Quantity : 3

Following Db2 version will be installed by default. (Tested combination)

DB2 V11.5.9.0 on Redhat 8.10
DB2 V11.5.8.0 on Redhat 8.8

If you want to install other versions, edit config.ini

IBMers can use internal fyre quickburn.

  1. Download the script or clone this repository to the 1st host by root user
git clone https://github.com/junsulee75/db2pcmkconfig
  1. Edit the following line with the your hostnames and preferred VIP on config.ini file.
##########################################################
## Must set area ! Only thing you need to configure manually in most cases
##########################################################

# Set virtual IP address to use. It should an unused IP within the same subnet and set. If not specified, script will try to get a random free IP address
VIP="123.123.123.123"     ## Virtual IP address to use. Again !! please change this with an appropriate one. Otherwise, it will skip creating VIP resource.   
....

NOTE : Check the current IP addresses/subnet and specify VIP in the same subnet.
Also read config.ini and customize parameters as you preferred.

  1. Execute script
cd hadr_pacemaker_on_fyre
./install.sh

See the terminal screen output how it looks like.

contents

Reference

Pacemaker versions shipped in Db2 version 11.5

About

DB2 HADR on pacemaker automated installation reference scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published