Before you use EVS replication, bind a virtual IP address to the production server and DR server, respectively. Then configure the virtual IP address as the static IP address for the servers. This virtual IP address is used to access applications on servers.
EVS replication APIs have been deprecated. If you need to use the replication function, see Storage Disaster Recovery Service User Guide and Storage Disaster Recovery Service API Reference.
You have obtained the VPC, subnet, MAC address, and virtual IP address of the production server. For details, see Collecting ECS Information (Deprecated).
The following operations are for reference only. For details, see Assigning a Virtual IP Address in the Virtual Private Cloud User Guide.
The Elastic Cloud Server page is displayed.
The ECS details page is displayed.
The Virtual Private Cloud page is displayed.
The VPC details page is displayed.
The subnet details page is displayed.
After the virtual IP address is bound with the DR server, the subnet details page is displayed.
After the application succeeds, you can view the virtual IP address in the virtual IP address list.
When assigning the virtual IP address, you can select the Automatic or Manual mode based on your service requirements.
After the virtual IP address is bound with the production server, the subnet details page is displayed.
After the virtual IP address is bound with the DR server, the subnet details page is displayed.
The configuration method varies depending on the server OS. This document is used for reference only. For the detailed operations and differences, see the corresponding OS documents.
For the Windows OS, see the Microsoft official documentation.
You can obtain the NIC name using the NIC IP address recorded in 9. In this example, the NIC name is eth0.
cp eth0 eth0:1
vi ifcfg-eth0:1
BOOTPROTO=static DEVICE=eth0:1 NAME=eth0:1 ONBOOT=yes TYPE=Ethernet USERCTL=no IPADDR=192.168.0.176 NETMASK=255.255.255.0
The system saves the configurations and exits the vi editor.
rm Name of the unnecessary NIC file
For example, run the following command:
rm ifcfg-eth1
Before deleting the unnecessary NIC files, you are advised to back up the files.
If multiple unnecessary NIC files exist, delete them individually. Ensure that the /etc/sysconfig/network-scripts directory contains only the in-use NIC file.
vi /etc/udev/rules.d/70-persistent-ipoib.rules
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="32", ATTR{address}=={mac}, NAME="eth0" ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="32", ATTR{address}=={mac}, NAME="eth1" ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="32", ATTR{address}=={mac}, NAME="eth0" ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="32", ATTR{address}=={mac}, NAME="eth1"
Configuration descriptions of the ATTR{address} and NAME fields:
a. Ensure that the NAME (NIC name) values of the production and DR servers are consistent. The ATTR{address} (MAC address) value can be obtained in Collecting ECS Information (Deprecated).
b. Replace {mac} with the MAC address during operation.
The system saves the configurations and exits the vi editor.