Got it

error message: This operation is not allowed because the disk has been attached to a VM

Created: Apr 28, 2022 07:18:23Latest reply: Apr 28, 2022 10:38:34 136 2 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello, everyone!

When I want to delete a cloud disk, the following error message is displayed:

This operation is not allowed because the disk has been attached to a VM.

Can I Delete a Disk Attached to a VM? What kind of disks can be deleted?

Any solutions will be appreciated!


  • x
  • convention:

Featured Answers
olive.zhao
Admin Created Apr 28, 2022 07:23:53

Hello, friend!

A disk that has been attached to an instance cannot be deleted.

In addition, the restrictions on deleting EVS disks are as follows:

  • If a disk has snapshots, the disk can be deleted only when the snapshot status is Available or Error.

  • You can delete a disk only when the disk status is AvailableErrorRestoration failed, or Rollback failed, and no ECS snapshot has been created for the ECS where the disk resides.

  • Disks configured with a DR service (CSDR, CSHA, or VHA) cannot be deleted.

  • If a disk is created using vAPP, the disk cannot be deleted.

  • If an EVS disk has a snapshot, the EVS disk can be soft deleted only when the snapshot is in the Available or Error state.

  • When an EVS disk is permanently deleted, all snapshots of the EVS disk are also deleted.

  • A shared disk to be deleted must have been detached from all instances.

  • If the ECS to which an EVS disk belongs has not been created, the EVS disk cannot be deleted.

  • Local disks can be used as data disks or system disks for an ECS. When a local disk is used as the system disk or a data disk, its life cycle starts and ends with the ECS, and cannot be manually detached or deleted.

Hope this helps!


View more
  • x
  • convention:

All Answers
olive.zhao
olive.zhao Admin Created Apr 28, 2022 07:23:53

Hello, friend!

A disk that has been attached to an instance cannot be deleted.

In addition, the restrictions on deleting EVS disks are as follows:

  • If a disk has snapshots, the disk can be deleted only when the snapshot status is Available or Error.

  • You can delete a disk only when the disk status is AvailableErrorRestoration failed, or Rollback failed, and no ECS snapshot has been created for the ECS where the disk resides.

  • Disks configured with a DR service (CSDR, CSHA, or VHA) cannot be deleted.

  • If a disk is created using vAPP, the disk cannot be deleted.

  • If an EVS disk has a snapshot, the EVS disk can be soft deleted only when the snapshot is in the Available or Error state.

  • When an EVS disk is permanently deleted, all snapshots of the EVS disk are also deleted.

  • A shared disk to be deleted must have been detached from all instances.

  • If the ECS to which an EVS disk belongs has not been created, the EVS disk cannot be deleted.

  • Local disks can be used as data disks or system disks for an ECS. When a local disk is used as the system disk or a data disk, its life cycle starts and ends with the ECS, and cannot be manually detached or deleted.

Hope this helps!


View more
  • x
  • convention:

sekhar_khanal
sekhar_khanal Created Apr 28, 2022 10:38:34

Are you trying to delete and EVS disk ?
If so first of all you need to detach the disk with VM(Virtual Machine)
only then you can easily delete the cloud disk.
Hope this will help!
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.