Incremental migration allows you to migrate incremental data from a source server to Alibaba Cloud at a specified interval. Incremental migration minimizes service disruptions and service delivery periods. This topic describes the best practices for incremental migration.
- Incremental migration is supported by SMC client V2.0.0 and later. Therefore, we recommend that you use SMC client V2.0.0 and later to import the information of the migration source.
- The information of the server is imported to the SMC console. For more information, see Step 1: Import the information of a migration source.
- Make sure that the SMC client is running during migration. If data transfer is interrupted, you can restart the client and the migration task to resume migration.
- Each incremental migration task creates an intermediate instance to facilitate the migration process. The intermediate instance incurs a small fee. For more information, see Pay-as-you-go. The intermediate instance is released only when the incremental migration task is in the Expired state or when the task is deleted.
(Optional) Step 1: Exclude dynamic data directories
To ensure stable migration, we recommend that you exclude dynamic data directories, such as data directories of large databases. Then, you can stop the services on the source server and start the migration task. Skip this step if you do not need to exclude dynamic data directories from migration.
To exclude dynamic data directories, perform the following steps. You do not need to stop services that are running on the source server.
- Log on to the source server.
- Configure the SMC client and exclude dynamic data directories.For more information, see Exclude files or directories from migration.
Step 2: Create and start an incremental migration task
You can perform the following steps to exclude dynamic data directories. You do not need to stop your services that are running on the source server.
- Log on to the SMC console.
- In the left-side navigation pane, click Migration Sources.
- Find the source server from which you want to migrate data. Click Create Migration Task in the Actions column.
- On the Create Migration Task page, turn on the Automatic Incremental Synchronization switch, and set the Synchronization Interval and Maximum Mirror Retention parameters. Set other parameters based on your needs and then click OK.
You can specify the following parameters. For more information, see the "Migration task parameters" table in the Step 2: Create and start a migration task topic.
The migration task immediately runs after it is created.
- Synchronization Interval: Specify the time interval between two consecutive incremental migration tasks. Minimum value: 1 hour. Maximum value: 7 days.
- Upperlimit of Reserved Images: Specify the maximum number of reserved images. Valid values: 1 to 10. Each incremental migration task generates new images. If the total number of generated image files exceeds the upper limit, the earliest unused images are deleted.
- Method to Run: Select a method to run the migration task. In this example, select Run Now.
- The first incremental migration task migrates all data except the excluded directories and files, and generates a full image. You can use this image to create an instance for verification.
- After the first incremental migration task is complete, SMC migrates incremental data
and generates images at specific points in time based on the specified synchronization interval.
Note The image generated for each incremental migration task is a full image of the source server at a specific time. The image includes the incremental data and all migrated data.In the image names that are generated during incremental migration,
CYCLE_Xindicates that the image is generated by the Xth incremental migration task. For example, if an image name contains CYCLE_2, it indicates that the image is generated by the second incremental migration task, as shown in the following figure.
Step 3: Stop the services on the source server and run an incremental migration task
After you stop the services on the source server, perform the following steps to skip the excluded data directories and run an incremental migration task again:
- Log on to the source server. Stop the services that run on the source server and skip the excluded data directories.
- In the SMC console, manually run the incremental migration task or wait for the task
to automatically run. To manually run the incremental migration task, perform the
- On the Migration Tasks page, find the incremental migration task.
- In the Actions column, click the More icon and choose Manual Incremental Migration.
- In the Start Migration Task message, click OK.
- If the migration task is in the Waiting state, the migration succeeded and you can obtain the image that was generated during the migration. This image contains all the data of the first full migration and each subsequent incremental migration of the source server.
- If the migration task is in the InError state, the migration has failed. You must check logs to fix the issue, and then restart the task. For information about common errors and solutions, see SMC FAQ.
What to do next
- Create an instance to verify the image by performing the following steps:
- On the Migration Tasks page, find the migration task and click Create Instance in the Actions column.
- On the Custom Launch tab, the Image section shows the latest full image. Configure other parameters based on your needs and purchase the instance. For more information, see Create an instance by using the wizard.
- Connect to the instance and check the system of the destination server. For more information, see How can I check my system after migrating a Windows server? or How can I check my system after migrating a Linux server?
- Stop the incremental migration task by performing the following steps:
Note You can pause an incremental migration task only when the task is in the Syncing or Waiting state.
- On the Migration Tasks page, find the migration task.
- In the Actions column, click the icon and select Pause.
- In the Stop Migration Task dialog box, click OK.
- Delete the incremental migration task
- On the Migration Tasks page, find the migration task.
- In the Actions column, click Delete.
- In the Delete Migration Tasks dialog box, click OK.