EBS Volume Won't Detach

1

Can't detach two ebs volumes that show in-use but don't list any attachment info.

Trying to force unmount doesnt work with error:

Error detaching volumes
vol-0f17470baa63006ff: Volume 'vol-0f17470baa63006ff' is in the 'available' state.
vol-0c5b6786dfff82b02: Volume 'vol-0c5b6786dfff82b02' is in the 'available' state.

TMegee
asked 4 years ago1580 views
5 Answers
1

As indicated in my original post I've already tried detaching the volumes manually and received the indicated error. It also fails with the same error from the CLI

$ aws ec2 describe-volumes --volume-ids vol-0f17470baa63006ff
{
    "Volumes": [
        {
            "AvailabilityZone": "us-east-1a", 
            "Attachments": [], 
            "Encrypted": false, 
            "VolumeType": "gp2", 
            "VolumeId": "vol-0f17470baa63006ff", 
            "State": "in-use", 
            "Iops": 100, 
            "SnapshotId": "snap-05eb12ba85dc30baa", 
            "CreateTime": "2020-04-21T15:55:36.853Z", 
            "MultiAttachEnabled": false, 
            "Size": 9
        }
    ]
}

$ aws ec2 describe-volumes --volume-ids vol-0c5b6786dfff82b02
{
    "Volumes": [
        {
            "AvailabilityZone": "us-east-1a", 
            "Attachments": [], 
            "Encrypted": false, 
            "VolumeType": "gp2", 
            "VolumeId": "vol-0c5b6786dfff82b02", 
            "State": "in-use", 
            "Iops": 100, 
            "SnapshotId": "snap-05eb12ba85dc30baa", 
            "CreateTime": "2020-04-21T15:53:13.137Z", 
            "MultiAttachEnabled": false, 
            "Size": 8
        }
    ]
}

$ aws ec2 detach-volume --volume-id vol-0f17470baa63006ff --force

An error occurred (IncorrectState) when calling the DetachVolume operation: Volume 'vol-0f17470baa63006ff' is in the 'available' state.

$ aws ec2 detach-volume --volume-id vol-0c5b6786dfff82b02 --force

An error occurred (IncorrectState) when calling the DetachVolume operation: Volume 'vol-0c5b6786dfff82b02' is in the 'available' state.
TMegee
answered 4 years ago
  • I'm having the same problem. Amazon told me that they won't do anything unless I pay then $29/month for support.

0

Looks like they're finally showing as available and I was able to delete them. Thanks.

TMegee
answered 4 years ago
0

Hi,

Thank you for confirming that the issue has been solved.

Regards,
awstomas

AWS
answered 4 years ago
-1

Hello TMegee,

I am sorry to hear about the issue.

Can you please try to detach the volumes manually using EC2 Console \[1] or using AWS CLI \[2] (if you have not tried this already)?

Links:
[1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html
[2] https://docs.aws.amazon.com/cli/latest/reference/ec2/detach-volume.html

Regards,
awstomas

AWS
answered 4 years ago
-1

Hello TMegee,

I can see that the EBS volumes are still reporting as attached but they are not associated with any resources. I am checking this internally and I will let you know as soon as I have updates.

Thank you,
VasosAWS

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions