You are on page 1of 3

Synchronizing Data Between the Primary and Secondary Nodes

Follow the steps below to create a replication connection between the primary and secondary nodes.

Context

CAUTION:
Before performing operations in this chapter, make sure that all operations in previous chapters have been
performed on both the primary and secondary nodes.

Procedure

1. Open a terminal window. Choose Options > Font Size > Default, and then choose Options >
Window Size > 132x24 from the menu to adjust the terminal window accordingly.
2. Run the following command on the primary node and the secondary node:
# scp /.ssh/id_rsa.pub opposite_computer_IP_address:/tmp
The terminal displays:
The authenticity of host '129.9.1.2 (129.9.1.2)' can't be established.
RSA key fingerprint is d8:9c:57:e0:34:09:52:1e:cf:20:60:b9:86:89:9f:0b.
Are you sure you want to continue connecting (yes/no)?

NOTE:
The IP address and the key fingerprint are displayed according to the actual situation.

3. Enter yes.
The terminal displays:
Warning: Permanently added '129.9.1.2' (RSA) to the list of known hosts.
Password:
4. Enter the password of user root of the opposite computer.
The terminal displays:
id_rsa.pub 100%
|************************************************************************
*************************************| 219 00:00
5. After you perform the operations on the primary node and the secondary node, run the following
commands on both nodes:
6. # cd /tmp
# cat id_rsa.pub >> /.ssh/authorized_keys
7. Run the following command on the primary node and the secondary node:
# ssh local_IP_address
8. Enter yes, and press Enter.
9. Enter exit to exit SSH.
10. Optional: Run the following command on the primary node and the secondary node:
# ssh local_Data_replication_IP_address

NOTE:
If only one network card is used or if the IPMP feature is enabled in a computer where two network
cards are used, do not perform this step.

11. Optional: Enter yes, and press Enter.

NOTE:
If only one network card is used or if the IPMP feature is enabled in a computer where two network
cards are used, do not perform this step.

12. Optional: Enter exit to exit SSH.


1
NOTE:
If only one network card is used or if the IPMP feature is enabled in a computer where two network
cards are used, do not perform this step.

13. Optional: Run the following command on the primary node and the secondary node:
# ssh opposite_computer_Data_replication_IP_address

NOTE:
If only one network card is used or if the IPMP feature is enabled in a computer where two network
cards are used, do not perform this step.

14. Optional: Enter yes, and press Enter.

NOTE:
If only one network card is used or if the IPMP feature is enabled in a computer where two network
cards are used, do not perform this step.

15. Optional: Enter exit to exit SSH.

NOTE:
If only one network card is used or if the IPMP feature is enabled in a computer where two network
cards are used, do not perform this step.

16. Run the following commands to replicate the data volume in the primary node:
17. # cd /opt/HWICMR/bin
# ./runtaskflow.sh rvg.tf
The terminal displays:
======= Select RVG =======

Select the data replication connection to create from the RVG name
list.
This program creates the data replication connection selected
according
to parameters defined in the rvgs.xml file.

1. datarvg

Select[1]:
18. Enter 1.
The terminal displays:
======= Enter the IP address =======

Enter an IP address for remote node.


This program creates data replication connection between the local
node and
remote node, and replicates the data from the local node to the remote
node.
The time of replication depends on amount of data to replicate, network
bandwidth
and network stability.

Enter the IP address of the remote node[]:


19. Enter the IP address of the remote node (secondary node). For example, 129.9.1.2.
The system starts to replicate the volume. It will take about 600 to 1000 minutes to complete the
operation in the case of the 2 Mbit/s bandwidth. Upon completion, the terminal displays:
All operation logs are saved in:
/var/ICMR/ICMR_LOG_20061110162217
2
NOTE:
The time for replication correlates with the reliability of the bandwidth and the amount of data to be
replicated.

20. Run the following commands to configure GCO on the primary node.
21. # cd /opt/HWICMR/bin
# ./runtaskflow.sh config_gco.tf
The terminal displays:
======= Select Global Application =======

Select a global application from the service group list.


The resources defined in the global application are monitored by
the VCS
of both the primary and secondary nodes and switch when a fault occurs.

1. AppService

Select []:
22. Enter 1.
The terminal displays:
======= Enter IP Address =======

Enter an IP address for the remote node.


This program converts the selected service group at the local and
remote
nodes into global application.

Enter []:
23. Enter the IP address of the master NIC of remote node (secondary node). For example, 129.9.1.2.
The terminal displays:
Configure Global Cluster Option (VCS)...........................Done

......

All operations defined in the task flow have been completed.

All operation logs are saved in:

/var/ICMR/ICMR_LOG_20040418161630
24. Run the following commands on the primary and secondary nodes to restart the primary and
secondary nodes.
25. # sync;sync;sync;sync;sync
# shutdown -y -i6

Result

When all the above operations are complete, the T2000 HA system is successfully installed.

Huawei Proprietary and Confidential


Copyright © Huawei Technologies Co., Ltd.

You might also like