tencent cloud

Cloud Block Storage

User Guide
Announcements
Announcement of the Commercial Charges of Tencent Cloud CBS Snapshot
Announcement of the Commercial Charges of Tencent Cloud CBS Snapshot Cross-Region Replication
Product Introduction
Overview
Strengths
Scenarios
Regions and AZs
Cloud Disk Instances
Cloud Disk Snapshots
Access Management
Related Products
Predecessor
Service Regions and Service Providers
Billing
Billing Overview
Price Overview
Purchase Instructions
Renewal Guide
Overdue Payment
Getting Started
Step 1. Creating Cloud Disks
Step 2. Attaching Cloud Disks
Step 3. Initializing Cloud Disks
User Guide
Operation Overview
Usage Limits
Creating Cloud Disks
Attaching Cloud Disks
Initializing Cloud Disks
Expanding Cloud Disks
Detaching Cloud Disks
Terminating Cloud Disks
Viewing Cloud Disk Information
Adjusting Cloud Disk Types
Adjusting Cloud Disk Performance
Cloud Disk Data Protection Configuration
Cloud Disk Data Backup Point
Managing Snapshots
Monitoring and Alarms
Use Cases
Measuring Cloud Disk Performance
Building LVM Logic Volumes with Multiple Elastic Cloud Disks
Expanding MBR Cloud Disks to Greater Than 2 TB
Troubleshooting
Failed to Unmount Cloud Disks from Windows CVM Instances
Disk Not Mount upon Linux CVM Restart
API Documentation
History
Introduction
API Category
Making API Requests
Snapshot APIs
Cloud Disk APIs
Data Types
Error Codes
FAQs
Features
Billing
Performance FAQs
Snapshot
Usage
Cross-region Replication
CBS Service Level Agreement
Contact Us
Glossary

Detaching Cloud Disks

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2023-12-22 10:01:52

Overview

When you need to mount an elastic cloud disk that is a data disk on another CVM, you can unmount this elastic cloud disk from a CVM, and then mount it to other CVMs. Unmounting an elastic cloud disk does not erase data on this disk. Currently, unmounting of elastic cloud disks that are data disk is supported. You cannot unmount system disks or non-elastic cloud disks. To unmount a cloud disk, you must execute umount (Linux) or offline (Windows) operations. Otherwise, the elastic cloud disk may not be recognized by the CVM next time it is mounted.

Prerequisite

Before unmounting the data disk, make sure you understand the following prerequisites:
Windows
Linux
To prevent data loss, we recommend that you suspend read and write operations on all file systems of the disk. Otherwise, data that has not been read or written will be lost.
When detaching an elastic cloud disk, you must first set the disk to offline status. Otherwise, you may not be able to reattach the cloud disk unless you restart the CVM instance.
You must first log In to the instance, and perform a umount operation on the elastic cloud disk you want to unmount. If you directly force unmounting without executing the umount operation, the problem shown in the following figure may occur during shutdown and bootup:


If you create a logical volume (LV) in the CVM instance, detaching the disk directly in the console will cause part of the device data to remain in the CVM memory. If a CVM application attempts to traverse or access this device, a system error will occur. Therefore, you must first execute the following operations (this example assumes that the /dev/test/lv1 LV is created based on /dev/vdb1 and is attached to the /data directory): a. Execute the umount /data command to detach the disk from the corresponding mount point in the CVM instance. b. Execute the lvremove /dev/test/lv1 command to remove the LV. If there are multiple LVs, remove them one by one. c. Execute the vgremove test command to remove the VG. d. Execute the pvremove /dev/vdb1 command to remove the PV. e. Modify the /etc/fstab file to avoid the continuous mounting of the corresponding LV on next bootup.

Directions

Detaching cloud disks in the console
Detaching cloud disks via API
1. Log in to the CBS console.
2. You can use the following method to unmount a cloud disk: a. Detach one cloud disk: Select More > Detach on the row of the target cloud disk in Attached status. b. Batch detach cloud disks: Select multiple target cloud disks in Attached status and click Detach above the list.
3. In the Detach cloud disk pop-up window, confirm the warning and click OK.
You can use the DetachDisks API to unmount a cloud disk. For more information, see Unmounting cloud disks.

FAQs

If you cannot detach cloud disks from Windows CVM instances in the console, see Unable to Detach Cloud Disks from CVM Instances for Windows for troubleshooting.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백