Why volume stuck in the "Attaching" state?

0

I created an EC2 instance with a d3.8xlarge instance type. According to the AWS documentation ( https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/volume_limits.html#instance-type-volume-limits ), this instance type only supports mounting three volumes. However, I mounted four volumes A, B, C, and D. While A,B,C mounted successfully, the fourth volume D has been stuck in the "Attaching" state. If I detach one of the mounted volumes (A, B, or C), then volume D will mount successfully. I am wondering why AWS designed it this way. The documentation clearly states that the d3.8xlarge instance type only supports three volumes. So, why doesn't AWS throw an error when attempting to mount the fourth volume, instead of keeping it stuck in "Attaching" state? Is there a specific reason behind this design?

iVey
已提問 10 個月前檢視次數 319 次
1 個回答
-1

Check that the device name you specified when you attempted to attach the EBS volume isn't already in use. If the specified device name is already being used by the block device driver of the EC2 instance, the operation fails.

If you specify a device name that's not in use by Amazon EC2, but is used by the block device driver within the EC2 instance, the attachment of the Amazon EBS volume fails. Instead, the EBS volume is stuck in the attaching state. To know more about the reasons, Kindly refer the below Knowledge Centre article.

[+] https://repost.aws/knowledge-center/ebs-stuck-attaching

AWS
已回答 10 個月前
  • I have seen the link you posted before, but the content in the link does not answer my question. That's why I asked again. Thanks for your answer.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南