Updated on 2024-09-25 GMT+08:00

Stopping a Migration Task

After the source database and services are migrated to the destination database, you can stop the migration task. To prevent data from being overwritten after the source database and services are migrated to the destination database, operations on the source database should not be synchronized to the destination database. This section describes how to stop a migration task to achieve this goal.

You can stop a task in any of the following statuses:

  • Creating
  • Configuration
  • Pending start
  • Full migration
  • Full migration failed
  • Incremental migration
  • Incremental migration failed
  • Paused
  • Fault rectification
  • You are advised to stop the task before performing other operations, such as disconnecting the network between the source database and the replication instance. Otherwise, an alarm indicating that the source database cannot be connected will be generated.
  • For a task in the Configuration state, it cannot be stopped if it fails to be configured.
  • For a task in the Fault rectification state, it cannot be stopped if the fault is being rectified.
  • After a task is stopped, it cannot be resumed.
  • Migration tasks support only the pay-per-use billing. The billing stops after a task is stopped.

Prerequisites

  • You have logged in to the DRS console.
  • A migration task is in progress.

Stopping a Task

  1. On the Online Migration Management page, locate the task and click Stop in the Operation column.
  2. In the displayed dialog box, click Yes.

    • Generally, triggers and events will be synchronized when you stop the task.
    • If the task status is abnormal (for example, the task fails or the network is abnormal), DRS will select Forcibly stop task to preferentially stop the task to reduce the waiting time.
    • Forcibly stopping a task will release DRS resources and will not migrate triggers and events. You have to manually migrate triggers and events.
    • If you need to migrate triggers and events, restore the DRS task first. After the task status becomes normal, you can stop the task.

Stopping Tasks

  1. In the task list on the Data Migration Management page, select the tasks you want to stop.
  2. Click Batch Operations in the upper left corner and choose Stop.

    Figure 1 Batch Operations

  3. In the displayed dialog box, confirm the task information and click Yes.