-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1_prereq.sh
executable file
·25 lines (18 loc) · 1.1 KB
/
1_prereq.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#source `pwd`/conf ## for /bin/ksh
source config.ini # use /bin/bash for reading from the current directory
source jscommon.sh
## Some of those are not prereq for pacemaker ( ex. 1st two linse ) .That's more for TSA.
## But let's keep for complete Db2 installation without glitch and sharing the code with TSA scenario
installPrereq(){
for HOST in $ALLHOST
do
disp_msglvl2 "Installing prereq for pacemaker on $HOST..."
ssh $SSH_NO_BANNER $HOST yum -y install libstdc++ sg3_utils libstdc++.so.6 perl-Sys-Syslog patch binutils cpp gcc-c++ ksh python2 perl-Sys-Syslog perl dnf mksh ## added mksh due to installation prereq check
ssh $SSH_NO_BANNER $HOST dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
# https://www.ibm.com/docs/en/db2/11.5?topic=pacemaker-prerequisites-integrated-solution-using
ssh $SSH_NO_BANNER $HOST yum -y install python3-dnf-plugin-versionlock ## necessary only on Linux
ssh $SSH_NO_BANNER $HOST yum -y install compat-openssl10 # db2start: error while loading shared libraries: libcrypto.so.10
done
}
installPrereq