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
gefragt vor 4 Jahren1618 Aufrufe
5 Antworten
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
beantwortet vor 4 Jahren
  • 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
beantwortet vor 4 Jahren
0

Hi,

Thank you for confirming that the issue has been solved.

Regards,
awstomas

AWS
beantwortet vor 4 Jahren
-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
beantwortet vor 4 Jahren
-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

beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen