Updated on 2024-07-17 GMT+08:00

Migration with Dual-Write

Scenarios

This section describes how to migrate data using OMS and dual-write. This practice ensures zero service interruption.

The migration process is as follows:

  1. Before migration, configure your services to write data to both the source and destination buckets. This is to ensure that incremental data is written to both buckets.
  2. Perform a full migration of source data with OMS. During the migration, OMS automatically identifies objects with the same name at the source and destination and overwrites those at the destination based on configured policy. For details about overwriting policies, see How Does Migration Affect Data in the Destination Bucket?
  3. After the full migration and service verification are complete, switch services to Huawei Cloud and stop writing data to the source bucket.

OMS makes API calls to the object storage service on the source platform during the migration. These API calls may generate fees on the source platform and you will be responsible for those fees based on those source platform billing structures.

Prerequisites

  • You have registered a HUAWEI ID and enabled Huawei Cloud services.
  • You have obtained the AK/SK pairs and required permissions for the source and destination platform accounts.
    • The source platform account needs the permissions for:
      • Listing buckets
      • Obtaining bucket locations
      • Listing objects
      • Obtaining object metadata
      • Obtaining object content

      For details about how to obtain these permissions, see Source Permissions.

    • The destination platform account needs the permissions for:
      • Listing buckets
      • Obtaining bucket locations
      • Listing objects
      • Obtaining object metadata
      • Obtaining object content
      • Listing uploaded parts
      • Restoring archive objects

      For details about how to obtain these permissions, see Destination Permissions.

  • You have created at least one bucket on OBS.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region.
  3. Click Service List. Under Migration, click Object Storage Migration Service.

    The Object Storage Migration Service page is displayed.

  4. Create a migration task or migration task group to migrate the source data.

  5. After the migration and service verification, switch services to Huawei Cloud and stop writing data to the source bucket.