- Newest
- Most votes
- Most comments
If you try deleting the volume what error do you get?
I can't delete it. The delete option is grayed out.
From the command line:
D:\repos> aws ec2 describe-volumes
{
"Volumes": [
{
"AvailabilityZone": "us-east-1b",
"Attachments": [],
"Encrypted": false,
"VolumeType": "standard",
"VolumeId": "vol-cd8365a4",
"State": "in-use",
"SnapshotId": "",
"CreateTime": "2009-03-17T23:20:21.000Z",
"Size": 20
}
]
}
D:\repos> aws ec2 delete-volume --volume-id vol-cd8365a4
An error occurred (IncorrectState) when calling the DeleteVolume operation: The volume 'vol-cd8365a4' is 'in-use'
and if I try to detach or detach-force
D:\repos> aws ec2 detach-volume --volume-id vol-cd8365a4
An error occurred (IncorrectState) when calling the DetachVolume operation: Volume 'vol-cd8365a4' is in the 'available' state.
D:\repos> aws ec2 detach-volume --force --volume-id vol-cd8365a4
An error occurred (IncorrectState) when calling the DetachVolume operation: Volume 'vol-cd8365a4' is in the 'available' state.
D:\repos>
According to the previous screen, it shows that the volume appears to be IN USE. Which means it appears to be attached to something. You will only be able to remove it once its status is Available. So the volume appears to think it is attached to something even though it doesn't indicate it.
It does appear from the data you have provided that there is an issue with this volume. AWS provides support for this, but as you are aware you do have to pay extra for it.
- https://aws.amazon.com/premiumsupport/plans/ The one benefit is that you can just pay for one month worth of support and then revert it back to the free plan as AWS only requires that you pay for support for at least 30 days.
I would recommend opening a case with them and have them help you resolve this issue. I would also mention that you had to pay for support to fix an obvious issue with their service. If you get them to help, maybe post here what the issue was for others. Hope this helps.
In my state, if you "subscribe" for something online, you have the right "cancel" it on-line, without charge. And for the cost of one month of service, It would take years for this to pay for itself. I think I'd rather just keep pressing them to fix their bug, or contest the fee every month.
Hi there, Have you tried to create a new EC2 instance in that region/AZ, attach the stuck EBS volume to it and then from there detach it again and delete?
Not a bad idea! I need to do something to give this volme a "kick"
Does it show up as attached in the console?
If it does it should indicate what instance it is attached to.
No. It's not attached to anything. As I said, I have no instances running in this region, no stopped instances, and no snapshots.
Relevant content
- asked 4 years ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
You don't need to detach it because it is not attached anywhere. You can just simply delete the volume