• Image Management Service

ims
  1. Help Center
  2. Image Management Service
  3. User Guide
  4. Creating a Private Image
  5. Creating a Full-ECS Image Using an ECS

Creating a Full-ECS Image Using an ECS

Scenarios

You can use an ECS with data disks to create a full-ECS image. The created full-ECS image contains your service data and can be used to quickly provision ECSs with service data.

NOTE:
  • The ECS used to create the full-ECS image can be in running state.
  • After a full-ECS image is deleted, the associated CSBS backup will not be deleted. To delete the associated backup, go to the CSBS console.
  • For how to create ECSs using a full-ECS image, see Creating ECSs Using an Image.

Constraints

  • Before creating a full-ECS image, you must optimize the ECS as prompted. Otherwise, creating ECSs using the full-ECS image may fail.
  • An ECS used to create a full-ECS image must be in running or stopped state.
  • A Windows ECS used to create a full-ECS image cannot have a spanned volume.
  • A Linux ECS used to create a full-ECS image cannot have a volume group or a logical volume consisting of multiple physical volumes. Otherwise, data may be lost when you create ECSs using the full-ECS image.
  • If a full-ECS image is available in an AZ, it can be used to create ECSs only in this AZ.
  • If a full-ECS image is available in a region, the full-ECS image can be used to create ECSs only in this region.
  • The system disk cannot be detached from the ECS used to create a full-ECS image.
  • A full-ECS image cannot be shared with other tenants.
  • A full-ECS image cannot be published as a Marketplace image.
  • A full-ECS image cannot be exported or replicated.
  • For a Windows ECS used to create a full-ECS image, you must set the SAN policy of the ECS to OnlineAll. Otherwise, the EVS disks attached to the ECS may be offline.

    Windows has three types of SAN policies: OnlineAll, OfflineShared, and OfflineInternal.

    Table 1 SAN policies

    Type

    Description

    OnlineAll

    Indicates that all newly detected disks are automatically brought online.

    OfflineShared

    Indicates that all disks on sharable buses, such as iSCSI and FC, are left offline by default, while disks on non-sharable buses are kept online.

    OfflineInternal

    Indicates that all newly detected disks are left offline as default.

    1. Run the following command on DiskPart to query the current SAN policy of the ECS:

      diskpart

    2. Run the following command to view the SAN policy of the ECS:
      san
      • If the SAN policy is OnlineAll, run the exit command to exit DiskPart.
      • If the SAN policy is not OnlineAll, go to step 3.
    3. Run the following command to change the SAN policy to OnlineAll:

      san policy=onlineall

Procedure

  1. Log in to the management console.
  2. Under Computing, click Image Management Service.
  3. On the Image Management Service page, click Create Image.
  4. In the Image Type and Source area, select Full-ECS image for Type.
  5. Select ECS for Source and then select an ECS from the list.
    Figure 1 Creating a full-ECS image using an ECS
  6. In the Image Information area, set basic information, such as the image name and description.
  7. Click Create Now.
  8. Confirm the parameters and click Submit.
  9. Switch back to the Image Management Service page to view the image status.

    When the image status changes to Normal, the creation is successful.