Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Replicating Images Across Regions

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

Scenarios

An image is a regional resource. If you want to use a private image in another region, you can replicate it to the target region.

Cross-region image replication is required for system HA typically when your system is deployed in multiple regions. In most cases, ECSs are deployed in multiple regions (including regions outside China). If you want to clone an ECS across regions, you can replicate its image across the regions and then use the image to create the identical ECSs in the target region.
Figure 1 Typical cross-region replication

Background

  • Cross-region replication is applicable to cross-region server deployment or data backup. It is often used together with image sharing for cross-region, cross-account image replication. The following table describes image replication in different scenarios.

    Scenario

    Description

    Procedure

    Cross-region replication under the same account

    After the replication is complete, a new image is generated in the target region. The new image has an ID that is different from the source image ID.

    See this section.

    Cross-region, cross-account replication

    Replicate the image to the target region and share it with other accounts.

    See this section and Sharing Specified Images.

    Cross-account replication in the same region

    After the replication is complete, the image is shared with the target tenant. The target tenant can use the image (with the same ID as the source image) but the image owner is still the tenant who shared it.

    See Sharing Specified Images.

  • When a full-ECS image is replicated across regions, the associated CSBS or CBR backups will also be replicated. Therefore, you will be charged for these backups in the target region.
  • The time required for replicating an image across regions depends on the network speed, image size, and the number of concurrent tasks.
  • You can select multiple images for cross-region replication at a time. However, you are not allowed to select an ISO image, encrypted image, full-ECS image, frozen image, or the image that is being created.
  • An agency is required for cross-region image replication. This agency has the permissions of IMS Administrator, allowing you to perform operations on the projects in the destination region.

    For example, if you want to replicate an image from region A to region B, the agency must have the permissions of IMS Administrator in region B. For how to create an agency, see Create an Agency.

Constraints

  • For details, see What Are the Regions That Support Cross-Region Replication of System and Data Disk Images?
    Figure 2 Regions that support cross-region replication of system and data disk images
    NOTE:
    • indicates that cross-region replication of system and data disk images is supported.
    • × indicates that cross-region replication of system and data disk images is not supported. In this case, export the desired image and then import it to the target region.
    • - indicates that the source and destination regions are the same.
    • Region adjustment may affect cross-region image replication of users that are registered after the adjustment. The users that were registered before the adjustment are not affected. You can see on the console if cross-region can be performed for a given region.
    • Regions not listed in the figure above do not support cross-region replication of system or data disk images.
  • Cross-region replication of full-ECS images is only available for certain regions. You can see on the console if it is available for a given region.

    If a full-ECS image cannot be replicated to a different region, you can use it to create an ECS, use the ECS to create a system disk image and a data disk image, and replicate the images to the destination region.

    A full-ECS image created using an ECS backup can be replicated from the region where they reside to another region, but the replicated full-ECS image cannot be replicated across regions again.

  • You can replicate only private images across regions. If you want to replicate an image of another type (for example, a public image) across regions, you can use the image to create an ECS, use the ECS to create a private image, and then replicate the private image across regions.
    NOTE:

    A private image cannot be replicated across regions after it is published in KooGallery.

    If you use a KooGallery image to create an ECS and then use the ECS to create a private image, this private image cannot be replicated across regions.

  • To perform cross-region replication, IAM users must have the IAM ReadOnlyAccess permission and the IMS FullAccess permission in both the source and destination regions.
  • The size of each image to be replicated across regions cannot be larger than 128 GB.
  • You can replicate only five images across regions at a time.
  • ISO images and encrypted images cannot be replicated across regions.

Procedure

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

    The IMS console is displayed.

  3. Locate the row that contains the image to be replicated, click More in the Operation column, and select Replicate.
  4. In the displayed Replicate Image dialog box, set the following parameters.
    NOTE:

    If the current region does not support cross-region replication, set the parameters by referring to Replicating Images Within a Region.

    Figure 3 Replicating an image across regions
    • Replication Mode: Select Across Regions.
    • Name: Enter a name that is easy to identify. The image name is in the following format: copy_Name of the source region where the image is located_Source image name.
    • Destination Region: Select the region where you want to use the image.
    • Destination Project: Select a project in the destination region. After you select the destination region, the system automatically displays available projects.
    • Target Server Backup Vault: This parameter is available only for full-ECS images created using CBR backups. Select a vault for storing backups.

      If no CBR backup vault is available in the destination region, click Create Server Backup Vault to create one. Ensure that you select Replication for Protection Type. For other parameters, see Purchasing a Server Backup Vault. After the vault is created, click to refresh the page and select the vault from the drop-down list box.

    • IAM Agency: Select an IAM agency.
    • Description: This parameter is optional. Enter description of the replication.
    • Disclaimer: Read the disclaimer and select I have read and agree to the disclaimer.
  5. Click OK.

    Switch to the destination region. If the image status becomes Normal, the image replication is successful.

    NOTE:

    The time required for replicating an image across regions depends on the network speed, image size, and the number of concurrent tasks.

Create an Agency

  1. Log in to the management console.
  2. In the upper right corner of the page, click the username and select Identity and Access Management.
  3. In the navigation pane, choose Agencies.
  4. Click Create Agency.
  5. On the Create Agency page, set the following parameters:
    • Agency Name: Enter an agency name, such as ims_admin_agency.
      Figure 4 Creating an agency
    • Agency Type: Select Cloud service.
    • Cloud Service: This parameter is available only if you select Cloud service for Agency Type. Select Image Management Service (IMS) from the drop-down list.
    • Validity Period: Select Unlimited.
    • Description: This parameter is optional. You can enter Agency with IMS Administrator privileges.
  6. Click Next.
    • Select Region-specific projects for Scope and select one or more projects from the drop-down list.

      In cross-region image replication, the agency must have the IMS Administrator permissions for the destination region. For example, if you want to replicate an image from CN-Hong Kong to CN East-Shanghai2, the agency must have the IMS Administrator permissions for CN East-Shanghai2.

      CAUTION:

      Do not select All projects, or the created agency will be invalid.

    • Select IMS Administrator for Permissions.
    Figure 5 Granting permissions to an agency
  7. Click OK.
    Figure 6 New agency
    Figure 7 Permissions of the new agency

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback