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

Detaching an EVS Disk

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

Scenarios

Disk Function

Server Status

Scenarios

System disk

Only offline detachment is supported.

You can only detach a system disk when the server status is Stopped.

  • If the file system on your system disk is damaged and the server cannot be started, you can detach the system disk and attach it to another server as a data disk. After the file system is fixed, you can re-attach the disk to the original server as the system disk.
  • If you no longer need a system disk or want to replace it with a new one, you can detach it.

Data disk

Both online detachment and offline detachment are supported.

You can detach a data disk when the server status is Stopped or Running.

  • If you want to use a data disk on another server in the same region and AZ, you can detach it and then attach it to that server.
  • If a data disk is no longer required, you can detach it and then delete it.
NOTE:
  • For an attached system disk, the disk function is displayed as System disk, and the disk status is displayed as In-use in the disk list. After the system disk is detached, the disk function changes to Bootable disk, and the status changes to Available.
  • Bootable disks are the system disks detached from servers. A bootable disk can be re-attached to a server to be used as a system disk or data disk depending on the disk function selected.
  • For an attached data disk, the disk function is displayed as Data disk, and the disk status is displayed as In-use in the disk list. After the data disk is detached, the disk function remains unchanged, and the status changes to Available. For a shared disk, the status changes to Available only after it is detached from all its servers.
  • A detached disk will not be automatically deleted, and it will still be billed. To avoid unintended charges, you can delete or unsubscribe from it if it is no longer needed.

Notes and Constraints

  • After a system disk is detached, some operations cannot be performed on the original server and the system disk. The restrictions are as follows:
    • Server: starting the server, remote login, resetting the password, changing server billing mode, changing server specifications, changing the OS, reinstalling the OS, creating images, creating backups, adding disks, changing the security group, and changing the VPC
    • System disk: changing disk billing mode

Prerequisites

  • Before detaching an EVS disk from a running Windows server, ensure that no programs are reading data from or writing data to the disk. Otherwise, data will be lost.
  • Before detaching an EVS disk from a running Linux server, you must log in to the server and run the umount command to cancel the association between the disk and the file system, and ensure that no programs are reading data from or writing data to the disk. Otherwise, you will not be able to detach the disk.
  1. Log in to the console.
  2. Choose Compute > Elastic Cloud Server.

    The Elastic Cloud Server page is displayed.

  3. In the server list, locate the row that contains the server whose system disk is to be detached, click More in the Operation column, and choose Stop.

    When the server status changes to Stopped, the server has been stopped.

  4. Click the name of this server.

    The server details page is displayed.

  5. Click the Disks tab to view the system disk attached to the server.
  6. Locate the row that contains the system disk and click Detach.

    The Detach Disk dialog box is displayed.

  7. Click Yes to detach the disk.

    After the operation had succeeded, the detached system disk is no longer displayed under the Disks tab.

  8. (Optional) Re-attach the bootable disk to a server. You can use it as a system disk or data disk depending on the disk function you select.
  1. Log in to the console.
  2. Click in the upper left corner and choose Storage > Elastic Volume Service.

    The Elastic Volume Service page is displayed.

  3. Choose a way to detach the disk by determining whether you want to check the server information first.

    • If yes, perform the following procedure:
      1. In the disk list, click the name of the to-be-detached disk.

        The disk details page is displayed.

      2. Click the Servers tab to view the server where the disk has been attached.
      3. Click to select the server and click Detach Disk.

        The Detach Disk dialog box is displayed.

      4. Click Yes to detach the disk.
    • If no, perform the following procedure:
      1. In the disk list, locate the row that contains the target disk and choose More > Detach in the Operation column.

        The Detach Disk dialog box is displayed.

      2. Click Yes to detach the disk.

    In the disk list, the disk status is Detaching, indicating that the disk is being detached from the server.

    When the status changes to Available, the disk has been detached.

  1. Log in to the console.
  2. Choose Compute > Elastic Cloud Server.

    The Elastic Cloud Server page is displayed.

  3. In the server list, locate the row that contains the server whose system disk is to be detached, click More in the Operation column, and choose Stop.

    When the server status changes to Stopped, the server has been stopped.

  4. Click the name of this server.

    The server details page is displayed.

  5. Click the Disks tab to view the system disk attached to the server.
  6. Locate the row that contains the system disk and click Detach.

    The Detach Disk dialog box is displayed.

  7. Click Yes to detach the disk.

    After the operation had succeeded, the detached system disk is no longer displayed under the Disks tab.

  8. (Optional) Re-attach the bootable disk to a server. You can use it as a system disk or data disk depending on the disk function you select.
  1. Log in to the console.
  2. Click in the upper left corner and choose Storage > Elastic Volume Service.

    The Elastic Volume Service page is displayed.

  3. Choose a way to detach the disk by determining whether you want to check the server information first.

    • If yes, perform the following procedure:
      1. In the disk list, click the name of the to-be-detached disk.

        The disk details page is displayed.

      2. Click the Servers tab to view the server where the disk has been attached.
      3. Click to select the server and click Detach Disk.

        The Detach Disk dialog box is displayed.

      4. Click Yes to detach the disk.
    • If no, perform the following procedure:
      1. In the disk list, locate the row that contains the target disk and choose More > Detach in the Operation column.

        The Detach Disk dialog box is displayed.

      2. Click Yes to detach the disk.

    In the disk list, the disk status is Detaching, indicating that the disk is being detached from the server.

    When the status changes to Available, the disk has been detached.

Helpful Links

To check out more detachment FAQs, see Detachment.

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