Attaching EBS Volume fails: Thinks it is attached to another instance but is not.

1

I created a volume from a snapshot. The Volume State is "Available". Nothing is listed under "Attached instances". I try to attach to an instance via the console - no issue selecting the instance. I get the message "volume is already attached to an instance".

Any thoughts on why it thinks it is attached?

질문됨 2년 전1012회 조회
3개 답변
1

I stopped the instance. The volume then attached with no problem. The error message of "volume is already attached to an instance" is apparently not identifying the actual issue to be resolved.

답변함 2년 전
  • After attachment, the instance will not start. Error in EC2 console is "Server.InternalError: Internal error on launch"

  • I tried making a new volume not using a snapshot and attaching it. It worked with no issues. Something about making the volume from a snapshot that is causing the issue.

0

I would raise a support ticket for this - it's not possible from this distance to see what might be happening.

profile pictureAWS
전문가
답변함 2년 전
  • I created a fresh volume, attached it, and did a copy from an existing instance that had the volume mounted. As I found a workaround, I'll not be pursuing this further since it was for a one time migration. If this was an issue I was having frequent issues with, I'd pursue it. If someone else has this same issue, I encourage them to follow up with AWS and a support ticket.

0

Hi, I think is important to understand why this is happening.

The filesystem can be mounted by a single server at the same time, if two servers mount the same filesystem corruption will happen, to have two EC2 instances mounting the same filesystem this needs to be a CFS (Cluster Filesystem), they are a few around but I will expand this in another thread.

The reference [1] is the official documentation that explains how long may take, this is just a reference time frame. Explains a few ways to work around the issue.

In short, AWS Drivers are to ensure the condition of EBS is mounted by a single instance are there to protect the data, having layers of protection to ensure NO two instances have the EBS mounted are the goal.

Reference: [1] https://aws.amazon.com/premiumsupport/knowledge-center/ebs-stuck-attaching/

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠