Unable to detach EBS Volume

0

I am trying to detach volume but getting the error Failed to detach volume. vol-0f05b57efdd510e9f: Unable to detach root volume 'vol-0f05b57efdd510e9f' from instance 'i-0ed45ee57f8c9b68c'

But instance is deleted. Before deleting i have umounted the volume.

region: us-us-east-1a Volume ID: vol-0f05b57efdd510e9f

Can you please delete it for me

질문됨 10달 전741회 조회
3개 답변
0
수락된 답변

Once the instance is marked as "Terminated" in AWS Console, go back to the view of the Volumes and refresh it. it doesn't update dynamically so sometimes the view that is presented is not quite current.

If the volume still can't be deleted then are you able to run these AWS CLI commands to verify the status of the EC2 instance and the EBS volume?

aws ec2 describe-instance-status --instance-id i-0ed45ee57f8c9b68c
aws ec2 describe-volumes --volume-ids vol-0f05b57efdd510e9f
profile picture
전문가
Steve_M
답변함 10달 전
profile pictureAWS
전문가
iBehr
검토됨 10달 전
0

Root volumes cannot be detached from an instance -- only additional volumes can be detached.

To delete a volume after terminating the instance, follow these steps.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html

profile pictureAWS
전문가
iBehr
답변함 10달 전
  • Hi iBehr Thanks for the reply But delete is grayedout Unable to delete also

  • Are you sure that the instance is terminated and not just stopped?

    Validate whether the Volume is marked as "In Use" in the Volume State columns of the Volumes section of the console.

  • If this answer solved your issue, please be sure to mark the answer as accepted. Thanks!

  • "Root volumes cannot be detached from an instance" - this is incorrect, the root volume can be detached from an instance that is in the "Stopped" state.

0

Hi IBehr Thanks for the reply Yes after some volume was showing available and was able to delete the volume

답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠