DB2+HADR+TSA高可用性测试--TSA环境配置
DB2+HADR+TSA高可用性测试--TSA环境配置
- 配置所有节点名及Hosts文件
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=db2-node01
[root@db2-node01 ~]#
[root@db2-node01 ~]# echo $HOSTNAME
db2-node01
[root@db2-node02 ~]# more /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=db2-node02
[root@db2-node02 ~]# echo $HOSTNAME
db2-node02
[root@db2-node02 ~]#
[root@db2-node01 ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1localhost.localdomain localhost
#::1localhost6.localdomain6 localhost6
108.88.3.106 db2-node01
108.88.3.221 db2-node02
[root@db2-node02 ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1localhost.localdomain localhost
#::1localhost6.localdomain6 localhost6
108.88.3.106 db2-node01
108.88.3.221 db2-node02
[root@db2-node02 ~]#
- 检测主机名及Hosts配置
PING db2-node01 (108.88.3.106) 56(84) bytes of data.
64 bytes from db2-node01 (108.88.3.106): icmp_seq=1 ttl=64 time=0.010 ms
64 bytes from db2-node01 (108.88.3.106): icmp_seq=2 ttl=64 time=0.046 ms
^C64 bytes from db2-node01 (108.88.3.106): icmp_seq=3 ttl=64 time=0.106 ms
--- db2-node01 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.010/0.054/0.106/0.039 ms
[root@db2-node01 ~]# ping db2-node02
PING db2-node02 (108.88.3.221) 56(84) bytes of data.
64 bytes from db2-node02 (108.88.3.221): icmp_seq=1 ttl=64 time=1.07 ms
64 bytes from db2-node02 (108.88.3.221): icmp_seq=2 ttl=64 time=0.280 ms
--- db2-node02 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.280/0.676/1.073/0.397 ms
[root@db2-node01 ~]#
- node02上测试
[root@db2-node02 ~]# ping db2-node01
PING db2-node01 (108.88.3.106) 56(84) bytes of data.
64 bytes from db2-node01 (108.88.3.106): icmp_seq=1 ttl=64 time=1.64 ms
64 bytes from db2-node01 (108.88.3.106): icmp_seq=2 ttl=64 time=0.328 ms
--- db2-node01 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.328/0.985/1.643/0.658 ms
[root@db2-node02 ~]# ping db2-node02
PING db2-node02 (108.88.3.221) 56(84) bytes of data.
64 bytes from db2-node02 (108.88.3.221): icmp_seq=1 ttl=64 time=0.000 ms
64 bytes from db2-node02 (108.88.3.221): icmp_seq=2 ttl=64 time=0.127 ms
--- db2-node02 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.000/0.063/0.127/0.064 ms
[root@db2-node02 ~]#
- 添加CT_MANAGEMENT_SCOPE在所有节点
export CT_MANAGEMENT_SCOPE=2
[root@db2-node02 ~]# vi /etc/profile
export CT_MANAGEMENT_SCOPE=2
- 所有节点安装RSH服务
1.1在node01安装RSH
[root@db2-node01 ~]# rpm -qa | grep -i rsh-server
[root@db2-node01 ~]#yum install rsh-server
[root@db2-node01 ~]#chkconfig xinetd on
[root@db2-node01 ~]#chkconfig rsh on
[root@db2-node01 ~]#chkconfig rlogin on
[root@db2-node01 ~]#/etc/init.d/xinetd restart
1.2、设置RSH远程访问
[root@db2-node01 ~]#vi /root/.rhosts
db2-node01 root
db2-node02 root
1.3、修改kerberos中rsh
[root@db2-node01 ~]#cd /usr/kerberos/bin
[root@db2-node01 ~]#mv rsh rsh.sav
[root@db2-node01 ~]# ln -s /usr/bin/rsh rsh
[root@db2-node01 ~]#/etc/init.d/xinetd restart
[root@db2-node01 ~]# ls -al /usr/bin/rsh
1.4、添加 rsh 到 /etc/securetty 文件中
[root@db2-node01 ~]#echo rsh >>/etc/securetty
1.5、添加DB2实例用户RSH
[root@db2-node01 ~]#vi /home/db2inst2/.rhosts
db2-node01 root
db2-node02 root
1.6、测试
[root@db2-node01 ~]#rsh db2-node01 ls
[root@db2-node01 ~]#rsh db2-node02 ls
2.1在node02安装RSH
[root@db2-node02 ~]# rpm -qa | grep -i rsh-server
[root@db2-node02 ~]#yum install rsh-server
[root@db2-node02 ~]#chkconfig xinetd on
[root@db2-node02 ~]#chkconfig rsh on
[root@db2-node02 ~]#chkconfig rlogin on
[root@db2-node02 ~]#/etc/init.d/xinetd restart
2.2、设置RSH远程访问
[root@db2-node02 ~]#vi /root/.rhosts
db2-node01 root
db2-node02 root
2.3、修改kerberos中rsh
[root@db2-node01 ~]#cd /usr/kerberos/bin
[root@db2-node01 ~]#mv rsh rsh.sav
[root@db2-node01 ~]#ln -s /usr/bin/rsh rsh
[root@db2-node01 ~]#/etc/init.d/xinetd restart
[root@db2-node01 ~]# ls -al /usr/bin/rsh
2.4、添加 rsh 到 /etc/securetty 文件中
[root@db2-node01 ~]#echo rsh >>/etc/securetty
2.5、添加DB2实例用户RSH
[root@db2-node01 ~]#vi /home/db2inst2/.rhosts
db2-node01 root
db2-node02 root
2.6、测试
[root@db2-node01 ~]#rsh db2-node01 ls
[root@db2-node01 ~]#rsh db2-node02 ls
初始化RSCT集群节点
以下操作由root用户在db2-node01和db2-node01执行
[root@db2-node01 ~]##preprpnode db2-node01 db2-node02
[root@db2-node02 ~]##preprpnode db2-node01 db2-node02
- 关闭所有节点防火墙及selinux
[root@db2-node02 ~]# /etc/init.d/iptables stop

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In recent days, Ice Universe has been steadily revealing details about the Galaxy S25 Ultra, which is widely believed to be Samsung's next flagship smartphone. Among other things, the leaker claimed that Samsung only plans to bring one camera upgrade

OnLeaks has now partnered with Android Headlines to provide a first look at the Galaxy S25 Ultra, a few days after a failed attempt to generate upwards of $4,000 from his X (formerly Twitter) followers. For context, the render images embedded below h

Alongside announcing two new smartphones, TCL has also announced a new Android tablet called the NXTPAPER 14, and its massive screen size is one of its selling points. The NXTPAPER 14 features version 3.0 of TCL's signature brand of matte LCD panels

The Vivo Y300 Pro just got fully revealed, and it's one of the slimmest mid-range Android phones with a large battery. To be exact, the smartphone is only 7.69 mm thick but features a 6,500 mAh battery. This is the same capacity as the recently launc

In recent days, Ice Universe has been steadily revealing details about the Galaxy S25 Ultra, which is widely believed to be Samsung's next flagship smartphone. Among other things, the leaker claimed that Samsung only plans to bring one camera upgrade

Samsung has not offered any hints yet about when it will update its Fan Edition (FE) smartphone series. As it stands, the Galaxy S23 FE remains the company's most recent edition, having been presented at the start of October 2023. However, plenty of

Motorola has released countless devices this year, although only two of them are foldables. For context, while most of the world has received the pair as the Razr 50 and Razr 50 Ultra, Motorola offers them in North America as the Razr 2024 and Razr 2

The Redmi Note 14 Pro Plus is now official as a direct successor to last year'sRedmi Note 13 Pro Plus(curr. $375 on Amazon). As expected, the Redmi Note 14 Pro Plus heads up the Redmi Note 14 series alongside theRedmi Note 14and Redmi Note 14 Pro. Li
