Migrating Tencent Cloud CVM Data Across Availability Zones
Last updated: 2020-02-11 14:41:56PDF
Cross-region data migration moves the data on a CVM in an availability zone in one region to a destination CVM in an availability zone of another region. It can also mean the migration of data between CVMs in different availability zones within the same region.
Obtaining the migration tool
Click here to obtain the compressed migration tool package.
Choosing a migration mode based on the network environment
Choose the appropriate migration mode according to the network environments of your source servers and destination CVMs.
Currently, the migration tool supports the default mode and the private network mode. The private network mode applies to three scenarios. Each migration mode or scenario has different network requirements for source servers and destination CVMs. If both source servers and destination CVMs can access the public network, you can use the default mode for migration. If source servers or destination CVMs cannot directly access the public network, you need to establish connections through VPC Peering Connection, VPN Connection, Cloud Connect Network, or Direct Connect before using the private network mode for migration.
You can back up your data by creating snapshots.
Checking before migrating
Before migrating, check the following items for source servers and destination CVMs respectively:
|Linux source server|
- You can use tool commands to automate the checking of source servers, for example,
sudo ./go2tencentcloud_x64 --check.
- By default, the go2tencentcloud migration tool automatically performs checking when it starts to run. If you want to skip the check and force migration, configure the value of the
Client.Extra.IgnoreCheckfield in the client.json file to
- (Optional) Establish a connection between the source server and the destination CVM.
- Configure the user.json file.
The user.json file is for configuring the source server and the destination CVM. It contains the following configuration items:
- The access key pair of your account API, that is, SecretId and SecretKey. For more information, see Access Keys.
- The region and instance ID of the target CVM.
- (Optional) The data disk configuration of the source server.
- Configure the client.json file.
The client.json file is for configuring the migration mode and other migration configuration items. You need to configure the
Client.Net.Modeparameter in the client.json file despite migration modes or scenarios.
- (Optional) Remove files and directories on the server that do not need to be migrated.
Edit the rsync_excludes_linux.txt file on the Linux source server to remove files and directories that do not need to be migrated.
- Run the tool.
For example, on a 64-bit Linux source server, run the following command with root permissions to run the tool.