- What's New
-
Service Overview
- DSS Infographics
- What Is DSS?
- Region and AZ
- Storage Pool Types and Performance
- Storage Pool Capacity Description
- DSS Disks
- DSS Three-Copy Redundancy
- Device Types and Usage Instructions
- Shared Disks and Usage Instructions
- Disk Encryption
- Disk Backup
- DSS and Other Services
- Billing
- Permissions
- Constraints
- Change History
-
Getting Started
- Operation Procedure
- Step 1: Apply for a Storage Pool
- Step 2: Create a Disk
- Step 3: Attach a Disk
-
Step 4: Initialize a Data Disk
- Introduction to Data Disk Initialization Scenarios and Partition Styles
- Initializing a Data Disk in Windows (Windows Server 2008)
- Initializing a Data Disk in Windows (Windows Server 2016)
- Initializing a Data Disk in Linux (fdisk)
- Initializing a Data Disk in Linux (parted)
- Initializing a Data Disk Greater Than 2 TB in Windows (Windows Server 2008)
- Initializing a Data Disk Greater Than 2 TB in Windows (Windows Server 2012)
- Initializing a Data Disk Greater Than 2 TB in Linux (parted)
- Change History
-
User Guide
- Permissions Management
- Storage Pool Management
-
Disk Management
- Detaching a Disk
- Attaching an Existing Disk
- Deleting a Disk
-
Expanding the Capacity of a Disk
- Introduction to Expansion Scenarios
- Expanding an In-use Disk
- Expanding an Available Disk
- Extending Partitions and File Systems on Windows
- Extending Partitions and File Systems on Linux (fdisk)
- Extending Partitions and File Systems on Linux (parted)
- Extending Partitions and File Systems of a SCSI Data Disk on Linux (fdisk)
- Extending Partitions and File Systems of a System Disk on Linux (fdisk)
- Managing Encrypted Disks
- Managing Shared Disks
- Managing Backups
- Change History
- API Reference
-
FAQs
- What Are the Risks of Not Expanding the Storage Pool Capacity?
- How Many Statuses Does a Storage Pool Have?
- How Many Statuses Does a Disk Have?
- Troubleshooting and Impacts on the DSS Usage
- Can I Attach a Disk to Multiple Servers?
- Will Data in the DSS Disk Be Lost When the DSS Disk Is Detached?
- What Should I Do If an Error Occurs on My DSS Disk?
- How Can I Test DSS Disk Performance?
- What Are the Restrictions on Attaching a Disk to an ECS?
- What Are the Precautions for Detaching a Disk from an ECS?
- Why My Disk Cannot Be Attached to a Server?
- Can the Disk Space Usage Be Reduced If I Delete Files on a Server?
- Videos
- Glossary
-
More Documents
-
User Guide (Paris and Amsterdam Regions)
- Introduction
-
Quick Start
- Operation Procedure
- Step 1: Apply for a Storage Pool
- Step 2: Create a Disk
- Step 3: Attach a Disk
-
Initialize a Data Disk
- Introduction to Data Disk Initialization Scenarios and Partition Styles
- Initializing a Data Disk in Windows (Windows Server 2008)
- Initializing a Data Disk in Windows (Windows Server 2016)
- Initializing a Data Disk in Linux (fdisk)
- Initializing a Data Disk in Linux (parted)
- Initializing a Data Disk Greater Than 2 TB in Windows (Windows Server 2008)
- Initializing a Data Disk Greater Than 2 TB in Windows (Windows Server 2012)
- Initializing a Data Disk Greater Than 2 TB in Linux (parted)
- Obtaining the Domain Name
- Obtaining the Region
-
Management
- Storage Pool Management
-
Disk Management
- Detaching a Disk
- Deleting a Disk
-
Expanding the Capacity of a Disk
- Introduction to Expansion Scenarios
- Expanding an In-use Disk
- Expanding an Available Disk
- Performing Post-Expansion Operations for a Windows Disk
- Performing Post-Expansion Operations for a Disk in Linux (fdisk)
- Performing Post-Expansion Operations for a Disk in Linux (parted)
- Performing Post-Expansion Operations for a SCSI Data Disk in Linux (fdisk)
- Performing Post-Expansion Operations for a System Disk in Linux (fdisk)
- Managing an Encrypted Disk
- Managing a Shared Disk
- Managing a Backup
-
FAQs
- What Are the Risks of Not Expanding the Storage Pool Capacity?
- How Many Statuses Does a Storage Pool Have?
- How Many Statuses Does a Disk Have?
- Troubleshooting and Impacts on the DSS Usage
- Can I Attach a Disk to Multiple Servers?
- Will Data in the DSS Disk Be Lost When the DSS Disk Is Detached?
- What Should I Do If an Error Occurs on My DSS Disk?
- What Are the Restrictions on Attaching a Disk to an ECS?
- What Are the Precautions for Detaching a Disk from an ECS?
- Why My Disk Cannot Be Attached to a Server?
- Change History
-
User Guide (Paris and Amsterdam Regions)
- General Reference
Copied.
What Are the Precautions for Detaching a Disk from an ECS?
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
- 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
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot