By using AWS re:Post, you agree to the Terms of Use

EBS Volume Won't Detach

0

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.

asked 2 years ago256 views
5 Answers
0

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

answered 2 years ago
0

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.
answered 2 years ago
0

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 2 years ago
0

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

answered 2 years ago
0

Hi,

Thank you for confirming that the issue has been solved.

Regards,
awstomas

answered 2 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