DB2 Purescale V11.5.6 Step by Step On RHEL8.1
DB2 Purescale V11.5.6 Step by Step On RHEL8.1
Setup
IBM Db2 pureScale
Db2 11.5.6
Linux 8.1 (RHEL)
Virtual Box 6.1.30
Part1: Overview and Preparation
Set up two hosts db1 and db2.
2 Linux 8.1 (RHEL) Hosts
Hostnames are db1 and db2
Make sure that same user exists on both of the hosts (nodes). In
my case user is dbp.
Setup networking
ssh db1
ssh db2
cd /drived/VM_Softwares
tar xf DB2_v11.5.6_linuxx64_server_dec.tar -C /dbe/
2. Install tsamp
/dbe/server_dec/db2/linuxamd64/tsamp/prereqSAM
/dbe/server_dec/db2/linuxamd64/tsamp/installSAM
3. Install GPFS
/dbe/server_dec/db2/linuxamd64/gpfs/installGPFS -i
mkdir /dbi/db2/V115
cd /dbe/server_dec/
/dbi/db2/V115/adm/db2licm -l
Note: Make sure that installation path for Db2 binary is same
on all the hosts.
5. Verify DB2 Installation using db2ls
/dbi/db2/V115/instance/db2isetup
cat /etc/fstab
Set below Db2 registry parameters.
db2set DB2_SD_ALLOW_SLOW_NETWORK=ON
db2 TERMINATE
db2instance -list
cat /home/dbp/sqllib/db2nodes.cfg
db2stop member 0
db2stop cf 128
cd /db2sd_20210718043911
ls –l
Create Database
cat /etc/fstab
mkdir /db2sd2/dbp
chmod 777 /db2sd2/dbp
df -h /db2sd_20220416003720
df -h /db2sd_20220416003720
df -h /db2sd_20220416003720
Part 6: Add third host or new member
Add third host or new member
1. Install DB2
2. Create users
3. Setup networking
4. Setup passwordless ssh
5. Setup ntp
6. Setup Shared Storage
7. Add as a member using db2isetup or db2iupdt
db2instance –list
Part 7: Delete a member from pureScale
Instance
lsrpnode
db2stop
db2instance –list
db2instance –list
Logout ISCSI
To log out of all your established sessions, enter the following command: