SecretId
and SecretKey
in API Key Management.go2tencentcloud.zip
is decompressed, it contains the following files:File Name | Description |
go2tencentcloud-linux.zip | The migration zip for Linux system. |
readme.txt | Directory overview file. |
release_notes.txt | Migration tool change log. |
go2tencentcloud-linux.zip
is decompressed, it contains the following files:File Name | Description |
go2tencentcloud_x64 | Executable program of the migration tool for the 64-bit Linux operating system |
go2tencentcloud_x32 | Executable program of the migration tool for the 32-bit Linux operating system |
user.json | User information in the migration. |
client.json | Configuration file of the migration tool. |
rsync_excludes_linux.txt | rsync configuration file, which excludes files and directories that do not need to be migrated in the Linux system. |
Parameter Name | Type | Required | Description |
SecretId | String | Yes | |
SecretKey | String | Yes | |
Region | String | Yes | Region of the destination CVM. Only the region is required, not the AZ. For more information about the values, see Regions and AZs. |
InstanceId | String | Yes | Instance ID of the destination CVM, which is in the format of ins-xxxxxxxx. |
DataDisks | Array | No | List of data disks to be migrated from the source server. Each element indicates a data disk. A maximum of 20 data disks are supported. |
DataDisks.Index | Integer | No | The serial number of data disk ranges from 1 to 20. If the value is 1, it indicates that the data disk is the first one to be migrated and attached to the destination CVM; if the value is 2, it indicates that the data disk is the second one to be migrated and attached to the destination CVM, and so on. |
DataDisks.Size | Integer | No | Size of the source data disk in GB. The value range is [10,16000]. |
DataDisks.MountPoint | String | No | Mount point of the source data disk, such as "/mnt/disk1" . |
user.json
file as follows:{"SecretId": "your secretId","SecretKey": "your secretKey","Region": "ap-guangzhou","InstanceId": "your instance id"}
/mnt/disk1
, and the size is 10
GB. To migrate this server to a CVM (with at least one data disk attached) located in the Guangzhou region, configure the user.json
file as follows:{"SecretId": "your secretId","SecretKey": "your secretKey","Region": "ap-guangzhou","InstanceId": "your instance id","DataDisks": [{"Index": 1,"Size": 10,"MountPoint": "/mnt/disk1"}]}
/mnt/disk1
, and the size is 10
GB. The mount point for disk 2 is /mnt/disk2
, and the size is 20
GB. To migrate this server to a CVM (with at least two data disks attached) located in Guangzhou, with disk 1 and disk 2 of the source server to be migrated to the first and second data disks of the destination CVM respectively, configure the user.json
file as follows:{"SecretId": "your secretId","SecretKey": "your secretKey","Region": "ap-guangzhou","InstanceId": "your instance id","DataDisks": [{"Index": 1,"Size": 10,"MountPoint": "/mnt/disk1"},{"Index": 2,"Size": 20,"MountPoint": "/mnt/disk2"}]}
Parameter Name | Type | Required | Description |
Client.ToolMode | bool | No | Tool migration mode identifier, the value of which defaults to false. If migration via tool is needed, modify the value to true or add the --no-console parameter when running the tool. |
Client.Net.Mode | Integer | Yes | Migration mode, the value of which defaults to 0, indicating the public network migration. Valid values: 0 (Public network migration mode), 1 (Private network migration mode: Scenario 1), 2 (Private network migration mode: Scenario 2), 3 (Private network migration mode: Scenario 3). |
Client.Extra.IgnoreCheck | Bool | No | The default value is false. By default, the migration tool automatically checks the source server environment when the tool starts running. To skip the check, set this parameter to true. |
Client.Rsync.BandwidthLimit | String | No | Bandwidth limit in KBytes/s, which is empty by default, i.e., no limit during transfer. |
Client.Rsync.Checksum | Bool | No | Transfer verification. Setting this parameter to true can enhance the transfer consistency verification, but it will increase the CPU load of the source server and slow down the transfer speed. The default value is false, which means no verification by default. |
/dev/*/sys/*/proc/*/var/cache/yum/*/lost+found/*/var/lib/lxcfs/*/var/lib/docker-storage.btrfs/root/.local/share/gvfs-metadata/*
/mnt/disk1
, configure the rsync_excludes_linux.txt file as follows:/dev/*/sys/*/proc/*/var/cache/yum/*/lost+found/*/var/lib/lxcfs/*/var/lib/docker-storage.btrfs/root/.local/share/gvfs-metadata/*/mnt/disk1/*
Parameter | Description |
--help | Prints help information. |
--no-console | Only migrates via tool (not migration in console). |
--check | Checks the source server |
--log-file | Configures the log file name, which is log by default. |
--log-level | Configures the logging level. Valid values: 1(ERROR level), 2 (INFO level) and 3(DEBUG level). Default value: 2. |
--clean | Forces the destination CVM to exit the migration mode and cleans up the site. For example, if the console prompts "Please execute '--clean' option manually.", you need to use this parameter to force the destination CVM to exit the migration mode. |
--version | Prints the version number. |
Destination CVM | 1. Storage space: The cloud disks (including the system disk and data disk) of the target CVM must offer sufficient storage space for saving data from the source server. 2. Security group: Port 443 and port 80 cannot be restricted in the security group. 3. Bandwidth setting: It is recommended that you maximize bandwidths at the 2 ends to speed up the migration. During the process, the traffic consumed is approximately the amount of data migrated. Adjust the billing mode before the migration if necessary. 4. OS consistency: If the OSs of the source server and destination CVM are inconsistent, the created image may be inconsistent with the actual OS. We recommend that the OS of the destination CVM be the same as that of the source server. For example, to migrate a CentOS 7 source server, select a CentOS 7 CVM as the destination. |
Linux source server | 1. Check and install Virtio. For more information, see Checking Virtio Drivers in Linux. 2. Run the which rsync command to check whether Rsync is installed, and if not, install it as instructed in How do I install Rsync?.3. Check whether SELinux is enabled, and if yes, disable it as instructed in How do I disable SELinux?. 4. After a migration request is made to the Tencent Cloud API, the API will use the current UNIX time to check the generated token. You need to make sure that the current system time is correct. |
./go2tencentcloud_x64 --no-console --check
to automatically check the source server.Client.Extra.IgnoreCheck
to true
in the client.json file.go2tencentcloud.zip
to the source server and run the following command to enter the corresponding directory.go2tencentcloud.zip
and enter the directory.unzip go2tencentcloud.zip
cd go2tencentcloud
go2tencentcloud-linux.zip
and enter the directory.unzip go2tencentcloud-linux.zip
cd go2tencentcloud-linux
go2tencentcloud
directory will not be migrated. Do not place the files to be migrated in this directory.user.json
file, configure the destination CVM for the migration.
Configure the required parameters based on the description of parameters in the user.json file.client.json
file, configure the migration mode and other parameters.
Configure Client.ToolMode
in the client.json
file to true
, that is, select the migration via tool. If necessary, configure other parameters based on the description of Parameters in the client.json file.sudo ./go2tencentcloud_x64
Client.ToolMode
in the client.json to true
, you need to add the parameter --no-console
when running the tool, as shown below:sudo ./go2tencentcloud_x64 --no-console
go2tencentcloud.zip
to the source server and run the following command to enter the corresponding directory.go2tencentcloud.zip
and enter the directory.unzip go2tencentcloud.zip
cd go2tencentcloud
go2tencentcloud-linux.zip
and enter the directory.unzip go2tencentcloud-linux.zip
cd go2tencentcloud-linux
go2tencentcloud
directory will not be migrated. Do not place the files to be migrated in this directory.user.json
file, configure the destination CVM for the migration.
Configure the required parameters based on the description of Parameters in the user.json file.client.json
file, configure the migration mode and other parameters.Client.ToolMode
value in the client.json
file to true
, that is, select the migration via tool.Client.Net.Mode
in the client.json
file to 1
, that is, select the Private network migration mode: Scenario 1 to migrate. If necessary, configure other parameters based on the description of Parameters in the client.json file.sudo ./go2tencentcloud_x64
Client.ToolMode
in the client.json to true
, you need to add the parameter --no-console
when running the tool, as shown below:sudo ./go2tencentcloud_x64 --no-console
Stage 1 is finished and please run next stage at source machine.
is prompted, stage 1 has been completed, as shown below:
sudo ./go2tencentcloud_x64
Client.ToolMode
in the client.json to true
, you need to add the parameter --no-console
when running the tool, as shown below:sudo ./go2tencentcloud_x64 --no-console
Stage 2 is finished and please run next stage at gateway machine.
is prompted, stage 2 has been completed, as shown below:
sudo ./go2tencentcloud_x64
Client.ToolMode
in the client.json to true
, you need to add the parameter --no-console
when running the tool, as shown below:sudo ./go2tencentcloud_x64 --no-console
Migrate successfully
is prompted, the entire migration task has been completed, as shown below:
go2tencentcloud.zip
to the source server and run the following command to enter the corresponding directory.go2tencentcloud.zip
and enter the directory.unzip go2tencentcloud.zip
cd go2tencentcloud
go2tencentcloud-linux.zip
and enter the directory.unzip go2tencentcloud-linux.zip
cd go2tencentcloud-linux
go2tencentcloud
directory will not be migrated. Do not place the files to be migrated in this directory.user.json
file, configure the destination CVM for the migration.
Configure the required parameters based on the description of parameters in the user.json file.client.json
file, configure the migration mode and other parameters.Client.ToolMode
value in the client.json
file to true
, that is, select the migration via tool.Client.Net.Mode
in the client.json
file to 2
, that is, select the [Private network migration mode: Scenario 2](https://www.tencentcloud.com/ document/product/213/44340#.E6.94.AF.E6.8C.81.E7.9A.84.E8.BF.81.E7.A7.BB.E6.A8.A1.E5.BC.8F ) to migrate. If necessary, configure other parameters based on the description of Parameters in the client.json file.sudo ./go2tencentcloud_x64
Client.ToolMode
in the client.json to true
, you need to add the parameter --no-console
when running the tool, as shown below:sudo ./go2tencentcloud_x64 --no-console
go2tencentcloud.zip
to the source server and run the following command to enter the corresponding directory.go2tencentcloud.zip
and enter the directory.unzip go2tencentcloud.zip
cd go2tencentcloud
go2tencentcloud-linux.zip
and enter the directory.unzip go2tencentcloud-linux.zip
cd go2tencentcloud-linux
go2tencentcloud
directory will not be migrated. Do not place the files to be migrated in this directory.user.json
file, configure the destination CVM for the migration.
Configure the required parameters based on the description of Parameters in the user.json file.client.json
file, configure the migration mode and other parameters.Client.ToolMode
value in the client.json
file to true
, that is, select the migration via tool.Client.Net.Mode
in the client.json
file to 3
, that is, select the Private network migration mode: Scenario 3 to migrate.Client.Net.Proxy.Ip
and Client.Net.Proxy.Port
in the client.json
file to the IP address and port of the network proxy. If your network proxy needs to be verified, enter the username and password of the network proxy in Client.Net.Proxy.User
and Client.Net.Proxy.Password
. If not necessary, leave the two items empty.
If necessary, configure other parameters based on the description of Parameters in the client.json file.sudo ./go2tencentcloud_x64
Client.ToolMode
in the client.json to true
, you need to add the parameter --no-console
when running the tool, as shown below:sudo ./go2tencentcloud_x64 --no-console
Was this page helpful?