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/ Dedicated Distributed Storage Service/ User Guide (Paris and Amsterdam Regions)/ FAQs/ What Are the Precautions for Detaching a Disk from an ECS?

What Are the Precautions for Detaching a Disk from an ECS?

Updated on 2022-02-21 GMT+08:00

Scenarios

A disk attached to an ECS can function as a system disk or data disk.

  • Disks mounted on /dev/sda or /dev/vda function as system disks. Currently, system disks must be detached offline. In this case, you must stop the ECS before detaching a system disk.
  • Disks mounted on other mount points functions as data disks. In addition to offline detachment, a data disk can also be detached online if the server OS supports online detachment. In this case, you do not need to stop the running ECS.

This FAQ describes how to detach a disk from a running ECS.

Constraints

  • The disk to be detached must be mounted on a mount point other than /dev/sda or /dev/vda.

    Disks mounted on /dev/sda or /dev/vda are system disks and cannot be detached from running ECSs.

  • Before detaching a disk from a running Windows ECS, make sure that VMTtools have been installed on the ECS and that the tools are running properly.
  • Before detaching a disk from a running Windows ECS, ensure that no program is reading data from or writing data to the disk. Otherwise, data will be lost.
  • SCSI disks cannot be detached from running Windows ECSs.
  • Before detaching a disk from a running Linux ECS, you must log in to the ECS and run the umount command to cancel the association between the disk and the file system. In addition, ensure that no program is reading data from or writing data to the disk. Otherwise, the disk will fail to be detached.

OSs Supporting Disk Detachment from a Running ECS

OSs supporting disk detachment from a running ECS include two parts:
  • For the first part, see "Formats and OSs Supported for External Image Files" in Image Management Service User Guide.
  • For the second part, see Table 1.
    Table 1 OSs supporting disk detachment from a running ECS

    OS

    Version

    CentOS

    7.3 64bit

    7.2 64bit

    6.8 64bit

    6.7 64bit

    Debian

    8.6.0 64bit

    8.5.0 64bit

    Fedora

    25 64bit

    24 64bit

    SUSE

    SUSE Linux Enterprise Server 12 SP2 64bit

    SUSE Linux Enterprise Server 12 SP1 64bit

    SUSE Linux Enterprise Server 11 SP4 64bit

    SUSE Linux Enterprise Server 12 64bit

    OpenSUSE

    42.2 64bit

    42.1 64bit

    Oracle Linux Server release

    7.3 64bit

    7.2 64bit

    6.8 64bit

    6.7 64bit

    Ubuntu Server

    16.04 64bit

    14.04 64bit

    14.04.4 64bit

    Windows (SCSI disks cannot be detached from a running ECS.)

    Windows Server 2008 R2 Enterprise 64bit

    Windows Server 2012 R2 Standard 64bit

    Windows Server 2016 R2 Standard 64bit

    Redhat Linux Enterprise

    7.3 64bit

    6.8 64bit

NOTE:

Online detachment is not supported by the ECSs running OSs not listed in the preceding table. For such ECSs, stop the ECSs before detaching disks from them to prevent any possible problems from occurring.

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