-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d471c12
commit d22c9be
Showing
18 changed files
with
464 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Db2 hadr on pacemaker automatic configurator | ||
|
||
Fully automated scripts for creating DB2 HADR / pacemaker environment. | ||
|
||
## Contents | ||
|
||
- [Db2 hadr on pacemaker automatic configurator](#db2-hadr-on-pacemaker-automatic-configurator) | ||
- [Contents](#contents) | ||
- [Objectives](#objectives) | ||
- [Steps](#steps) | ||
- [Reference](#reference) | ||
|
||
|
||
## 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](#contents) | ||
|
||
|
||
## 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](https://fyre.svl.ibm.com/quick). | ||
2. Download the script. | ||
|
||
Log into the 1st host and download the scripts | ||
|
||
By root user | ||
``` | ||
git clone https://<ibm github user id>:<ibm github token>@github.ibm.com/junsulee/hadr_pacemaker_on_fyre | ||
# example : git clone https://junsulee:[email protected]/junsulee/hadr_pacemaker_on_fyre | ||
``` | ||
|
||
3. 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. | ||
4. Execute script | ||
|
||
``` | ||
cd hadr_pacemaker_on_fyre | ||
./install.sh | ||
``` | ||
|
||
See the [terminal screen output](screen_output.md) how it looks like. | ||
|
||
[contents](#contents) | ||
|
||
## Reference | ||
|
||
[Pacemaker versions shipped in Db2 version 11.5](https://www.ibm.com/docs/en/db2/11.5?topic=manager-supported-software-hardware-pacemaker) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
freeip_x86_64 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rm -f freeip* | ||
GOOS=darwin GOARCH=arm64 go build -o freeip_arm main.go | ||
GOOS=linux GOARCH=amd64 go build -o freeip_x86_64 main.go | ||
GOOS=linux GOARCH=ppc64le go build -o freeip_ppcle main.go | ||
ln -s freeip_x86_64 freeip # will use for Linux x86 only for a while |
Oops, something went wrong.