Halaman ini belum tersedia dalam bahasa lokal Anda. Kami berusaha keras untuk menambahkan lebih banyak versi bahasa. Terima kasih atas dukungan Anda.

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
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
Help Center/ Image Management Service/ Best Practices/ Migrating Service Data Across Accounts (Data Disks)

Migrating Service Data Across Accounts (Data Disks)

Updated on 2024-06-12 GMT+08:00

Scenarios

Generally, service data is stored on data disks. To migrate the data across accounts, you need to create data disk images and share them with the target account. This section uses Linux as an example to describe how to migrate service data (only data disks) across accounts in the same region.

Cross-Account Service Data Migration (Data Disks)

To migrate service data stored on a data disk across accounts, create an image from the data disk, share the image with the target account. The target account accepts the shared image and attaches the new data disk created from the shared image to an existing or new ECS.

Figure 1 Migration process
  1. Create a data disk image
  2. Share the image with the target account
  3. Accept the shared image
  4. Create a data disk or an ECS

Step 1: Create a Data Disk Image

Assume that qianyi.txt is stored on the data disk of your ECS and you want to migrate the file to another account.

  1. Log in to the management console and switch to the CN-Hong Kong region.
  2. Under Service List, choose Compute > Image Management Service.

    The Image Management Service page is displayed.

  3. In the upper right corner, click Create Image.

    The Create Image page is displayed.

  4. Set parameters.
    Figure 2 Creating a data disk image
    • Type: Select Create Image.
    • Image Type: Select Data disk image.
    • Source: Select ECS and then select the data disk ecs-disk-image-test-volume data disk.
    • Name: Enter a name for the data disk image, for example, disk-image-test.
    • Enterprise Project: Select default.
  5. Click Next.
  6. Confirm the settings, read and agree to the agreement, and click Submit.
  7. The system redirects to the private image list. Wait for several minutes and check whether the data disk image is successfully created.
    Figure 3 Viewing private images

Step 2: Share the Image with the Target Account

Share the data disk image created in Step 1: Create a Data Disk Image with the target account. Before the image sharing, obtain the project ID of the target account. (You can obtain the project ID from My Credentials. For details, see Figure 4.)

Figure 4 Viewing the project ID or account ID
  1. Locate the row that contains the disk-image-test private image. Choose More > Share in the Operation column.

    The Share Image dialog box is displayed.

  2. In the Share Image dialog box, enter the project ID of the target account.
  3. Click OK.

Step 3: Accept the Shared Image

Accept the shared data disk image.

  1. Log in to the management console using the account the image is shared with and switch to the CN-Hong Kong region.
  2. Under Service List, choose Compute > Image Management Service. Then, click the Images Shared with Me tab.
  3. Select disk-image-test and click Accept.
    Figure 5 Accepting a shared image

    After the image is accepted, it is displayed in the shared image list.

Step 4: Create a Data Disk or an ECS

Use the shared image to create a new data disk and attach it to an existing ECS. Alternatively, create an ECS with a data disk created from the shared image. Then, check whether the service data is successfully migrated.

  • Create a new data disk and attach it to an existing ECS.
    1. Locate the row that contains the shared image disk-image-test, and click Create Data Disk in the Operation column.
      Figure 6 Creating a data disk

      The page for purchasing EVS disks is displayed.

    2. Configure the billing mode and disk specifications as needed. The AZ must be the same as that of the ECS to which the data disk will be attached. Click Next.
    3. Return to the EVS disk list. Wait for several minutes until the EVS disk is created successfully.
    4. Locate the row that contains the new EVS disk and click Attach in the Operation column to attach the data disk to the ECS.
    5. Log in to the ECS and check whether the service data is successfully migrated.

      Run the fdisk -l command. The command output shows that the new data disk has been partitioned.

      Mount the new partition to a directory of the ECS and check the qianyi.txt file. The file content is properly printed, which means that the service data migration is successful.

  • Create an ECS with a data disk attached.
    1. Under Service List, choose Compute > Elastic Cloud Server.
    2. In the upper right corner, click Buy ECS.

      The page for purchasing ECSs is displayed.

    3. Configure the billing mode, AZ, and specifications as needed and add a data disk which will be created from the shared data disk image. Complete the ECS creation as instructed.
      Figure 7 Adding a data disk
    4. Wait for several minutes and check whether the new ECS is displayed in the ECS list.
    5. Log in to the new ECS and check whether the service data is successfully migrated.

      Run the fdisk -l command. The command output shows that the new data disk has been partitioned. Mount the new partition to a directory of the ECS and check the qianyi.txt file. The file content is properly printed, which means that the service data migration is successful.

Kami menggunakan cookie untuk meningkatkan kualitas situs kami dan pengalaman Anda. Dengan melanjutkan penelusuran di situs kami berarti Anda menerima kebijakan cookie kami. Cari tahu selengkapnya

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback