Help Center> Image Management Service> User Guide> Creating a Private Image> Creating a Data Disk Image from an ECS

Creating a Data Disk Image from an ECS

Scenarios

A data disk image contains only your service data. You can save service data of an ECS data disk by creating a data disk image. Then, the data disk image can be used to create EVS disks to migrate the service data.

You are advised to use data disk images in the following scenarios:
  • Migrate service data on an ECS to another account.

    Create a data disk image from the data disk and share the image with the target account. Then you can use the data disk image under the account to create data disks, completing the service data migration.

  • Migrate service data on an ECS to another region.

    Create a data disk image from the data disk in the current region and replicate the image to the target region (for details, see Replicating Images Across Regions). Then you can use the data disk image in the target region to create data disks, completing the service data migration.

Background

The following figure shows the process of creating a data disk image from an ECS data disk.

Figure 1 Creating a data disk image and using it to create data disks

Prerequisites

A data disk has been attached to the ECS, and the ECS is running or stopped.

If no data disk is attached, attach one by referring to Attaching an EVS Disk to an ECS.

Procedure

  1. Log in to the management console.
  2. Under Computing, click Image Management Service.

    The IMS console is displayed.

  3. Click Create Image in the upper right corner.
  4. In the Image Type and Source area, select Data disk image for Type.
  5. Select ECS for Source and then select a data disk of the ECS.
    Figure 2 Creating a data disk image
  6. In the Image Information area, set Name, Tag, and Description, and select an enterprise project.

    If the data disk is not encrypted, the private image created from it is also not encrypted. The encryption attribute cannot be changed during image creation. After the image is created, you can change its encryption attribute based on Replicating Images Within a Region.

  7. Click Next.
  8. Confirm the parameters. Read and select the agreement, and click Submit.

    The private image list is displayed. Wait until the data disk image is created successfully.

Follow-up Operations

If you want to use the created data disk image to create an EVS disk and attach it to an ECS, you can perform either of the following operations:

  • Locate the row that contains the created data disk image and click Create Data Disk to create a data disk. Then attach the data disk to an ECS.
  • On the page for creating ECSs, click Create Disk from Data Disk Image and select the data disk image.

    A data disk image can be used to create a data disk only once. For example, in Figure 3, a data disk created from data disk image data_disk_image has been added to the ECS. No any other data disk created from this image can be added to the ECS.

    Figure 3 Adding a data disk to an ECS