Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Matters needing attention to uninstall cloud disk and uninstall cloud disk under Linux operating system

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

What this article shares with you is the notes on uninstalling cloud disks and uninstalling cloud disks under the Linux operating system. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Without saying much, let's take a look at it.

Uninstall cloud disk

When a postpaid cloud disk is used as a data disk, you can uninstall it. However, when the cloud disk is used as a system disk, you cannot uninstall the system disk.

When uninstalling a cloud disk, you need to pay attention to the following:

You can only uninstall a postpaid cloud disk whose status is in use and whose disk attribute is data disk.

Local storage cannot be uninstalled.

Under the Windows operating system, you need to be aware of the following:

In order to ensure data integrity, it is recommended that you suspend reading and writing to all file systems on the disk, otherwise unfinished reading and writing data will be lost.

Before uninstalling the cloud disk on the ECS console, you must connect to the instance remotely and perform offline operations on the disk in disk management.

Under the Linux operating system, you need to be aware of the following:

Before uninstalling the cloud disk on the ECS console, you must connect to the instance remotely and run the umount command to unmount the disk partition.

If you have set the disk partition to be mounted automatically when starting the instance in the / etc/fstab file, you must delete the mount information of the disk partition in the / etc/fstab file before uninstalling the cloud disk, otherwise you will not be able to connect to the instance after the instance is restarted.

You can uninstall the cloud disk in different ways as needed, as shown in the following table.

Uninstall the cloud disk on the instance management page

You can uninstall one or more cloud disks mounted on an instance on the instance management page.

prerequisite

The cloud disk has been mounted to the instance and the status is in use.

If you are uninstalling a cloud disk on the Linux instance and the disk partition mount information has been written in the / etc/fstab file, you must first delete this configuration information.

Operation steps

Uninstall the cloud disk on the instance management page and follow the steps below:

Connect to the instance remotely and unmount the disk or partition within the instance. Depending on the operating system, you need to perform different actions, as shown in the following table.

Log in to the ECS Management console.

In the left navigation bar, click the instance.

Select the region.

Find the instance you want to operate, click the instance ID, and go to the instance management page.

In the left navigation bar, click the disk for this instance.

Locate the cloud disk that needs to be uninstalled, and in the operation bar, select more > Uninstall.

Cloud disks that support uninstallation must have the following attributes:

The disk status must be in use.

Uninstallable must be supported.

The disk property must be a data disk.

In the pop-up dialog box, click to confirm the uninstall.

(optional) if you need to uninstall multiple cloud disks, repeat steps 7 and 8.

When the status of the cloud disk changes to be mounted, it means that you have successfully unmounted the cloud disk.

Uninstall the cloud disk on the cloud disk management page

You can uninstall a cloud disk from the instance on the cloud disk management page.

prerequisite

The cloud disk has been mounted to the instance and the status is in use.

If you are uninstalling a cloud disk on the Linux instance and the disk partition mount information has been written in the / etc/fstab file, you must first delete this configuration information.

Operation steps

Uninstall the cloud disk on the cloud disk management page and follow the steps below:

Connect to the instance remotely and unmount the disk or partition within the instance. Depending on the operating system, you need to perform different actions, as shown in the following table.

Log in to the ECS Management console.

In the left navigation bar, select Storage > Cloud disk.

Select the region.

Locate the cloud disk that needs to be uninstalled, and in the operation bar, select more > Uninstall.

Cloud disks that support uninstallation must have the following attributes:

The disk status must be in use.

Uninstallable must be supported.

The disk property must be a data disk.

In the pop-up dialog box, click to confirm the uninstall.

When the status of the cloud disk changes to be mounted, it means that you have successfully unmounted the cloud disk.

Related API

DetachDisk

Subsequent operation

If you no longer need the cloud disk, you can release the cloud disk.

These are the precautions for uninstalling cloud disks and uninstalling cloud disks under the Linux operating system. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report