Db2+hadr+tsa High Availability test--tsa environment configuration
- Configure all node names and hosts files
[Root@db2-node01 ~]# More/etc/sysconfig/network
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
# don't remove the following line, or various programs
# that require network functionality would 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
# don't remove the following line, or various programs
# that require network functionality would 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 ~]#
- Detecting host names and hosts configuration
[Root@db2-node01 ~]# Ping db2-node01
PING db2-node01 (108.88.3.106) bytes of data.
Bytes from DB2-NODE01 (108.88.3.106): icmp_seq=1 ttl=64 time=0.010 ms
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) bytes of data.
Bytes from DB2-NODE02 (108.88.3.221): icmp_seq=1 ttl=64 time=1.07 ms
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 ~]#
[Root@db2-node02 ~]# Ping db2-node01
PING db2-node01 (108.88.3.106) bytes of data.
Bytes from DB2-NODE01 (108.88.3.106): icmp_seq=1 ttl=64 time=1.64 ms
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) bytes of data.
Bytes from DB2-NODE02 (108.88.3.221): icmp_seq=1 ttl=64 time=0.000 ms
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 ~]#
- Add Ct_management_scope on all nodes
[Root@db2-node01 ~]# Vi/etc/profile
Export ct_management_scope=2
[Root@db2-node02 ~]# Vi/etc/profile
Export ct_management_scope=2
- All nodes install the RSH service
1.1 Installing RSH in NODE01
[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. setting RSH remote Access
[root@db2-node01 ~] #vi/root/.rhosts
DB2-NODE01 Root
DB2-NODE02 Root
1.3. Modify RSH in Kerberos
[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. Add Rsh to the/etc/securetty file
[root@db2-node01 ~] #echo rsh >>/etc/securetty
1.5. Add DB2 Instance User rsh
[root@db2-node01 ~] #vi/home/db2inst2/.rhosts
DB2-NODE01 Root
DB2-NODE02 Root
1.6. Testing
[root@db2-node01 ~] #rsh db2-node01 ls
[root@db2-node01 ~] #rsh db2-node02 ls
2.1 Installing RSH in NODE02
[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. Setting RSH remote Access
[ROOT@DB2-NODE02 ~] #vi/root/.rhosts
DB2-NODE01 Root
DB2-NODE02 Root
2.3. Modify RSH in Kerberos
[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. Add rsh to the/etc/securetty file
[root@db2-node01 ~] #echo rsh >>/etc/securetty
2.5. Add DB2 Instance User rsh
[root@db2-node01 ~] #vi/home/db2inst2/.rhosts
DB2-NODE01 Root
DB2-NODE02 Root
2.6. Testing
[root@db2-node01 ~] #rsh db2-node01 ls
[root@db2-node01 ~] #rsh db2-node02 ls
Initializing the RSCT cluster node
The following operations are performed by the root user in db2-node01 and db2-node01
[Root@db2-node01 ~]# #preprpnode db2-node01 db2-node02
[Root@db2-node02 ~]# #preprpnode db2-node01 db2-node02
- Shut down all node firewalls and SELinux
[Root@db2-node01 ~]#/etc/init.d/iptables Stop
[root@db2-node02 ~]#/etc/init.d/iptables stop
< span id= "url" itemprop= "url" >http://www.bkjia.com/phpjc/1084019.html www.bkjia.com true http://www.bkjia.com/phpjc/1084019.html techarticle db2+hadr+tsa High availability test--tsa environment configuration Configure all node names and hosts files [root@db2-node01 ~]# more/etc/sysconfig/network networking=yes networking_ipv6=yes HOSTNAME=db2...