We have 2 volumes can't detach and delete

0

We have 2 volumes(vol-63046619 and vol-2c076556) which need to be deleted. However, we can't delete them. They are not attached to any ec2 instances. The below are the command we tried.

$ aws ec2 describe-volumes --region us-east-1 --volume-id vol-63046619 { "Volumes": [ { "AvailabilityZone": "us-east-1d", "Attachments": [], "Tags": [ { "Value": "", "Key": "Name" } ], "Encrypted": false, "VolumeType": "standard", "VolumeId": "vol-63046619", "State": "in-use", "SnapshotId": "snap-xxxxxxx", "CreateTime": "2012-10-01T20:29:01.000Z", "MultiAttachEnabled": false, "Size": 8 } ] }

$ aws ec2 delete-volume --region us-east-1 --volume-id vol-63046619

An error occurred (IncorrectState) when calling the DeleteVolume operation: The volume 'vol-63046619' is 'in-use'

$ aws ec2 detach-volume --region us-east-1 --volume-id vol-63046619

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

$ aws ec2 describe-volumes --region us-east-1 --volume-id vol-2c076556 { "Volumes": [ { "AvailabilityZone": "us-east-1d", "Attachments": [], "Tags": [ { "Value": "xxxxxxxxxxxxx", "Key": "aws:cloudformation:stack-name" }, { "Value": "", "Key": "Name" }, { "Value": "xxxxxxxx", "Key": "aws:cloudformation:logical-id" }, { "Value": "arn:aws:cloudformation:us-east-1:xxxxxxxxxxxxx:stack/xxxxxxxxxx/xxxxxx-xxxx-xxxx-xxxx-xxxx", "Key": "aws:cloudformation:stack-id" } ], "Encrypted": false, "VolumeType": "standard", "VolumeId": "vol-2c076556", "State": "in-use", "SnapshotId": "", "CreateTime": "2012-10-01T20:28:41.000Z", "MultiAttachEnabled": false, "Size": 5 } ] }

$ aws ec2 delete-volume --region us-east-1 --volume-id vol-2c076556

An error occurred (IncorrectState) when calling the DeleteVolume operation: The volume 'vol-2c076556' is 'in-use'

$ aws ec2 detach-volume --region us-east-1 --volume-id vol-2c076556

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

$

We tried detach and force detach from the console too. But it just stuck and doesn't help this case.

已提问 2 年前305 查看次数
1 回答
0

Please raise a support case for this issue. The support team has the tools to help you and can interact with the AWS services in ways that we (here on re:Post) cannot.

profile pictureAWS
专家
已回答 2 年前
  • My plan is basic and I believe there is no way I can create support ticket because of the plan. Please let me know if I am wrong.

  • I assume you mean "Developer" support level. According to our support webpage you can raise a case although the response time will be a little slower than on the higher plans.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则