当我第一次尝试连接卷时,为什么我的 EBS 卷无法连接到 EC2 实例?

2 分钟阅读
0

我尝试将一个现有的 Amazon Elastic Block Store (Amazon EBS) 卷连接到我的 Amazon Elastic Compute Cloud (Amazon EC2) 实例。但是尝试失败了,并且我收到了以下消息:“vol-### is already attached to an instance”(vol-### 已经连接到实例)。

简短描述

某些 Amazon EC2 实例类型需要使用 AWS 可扩展的可靠数据报 (SRD) 来实现 Amazon EBS 的高性能。以下是支持 SRD 的 EC2 实例类型:

  • C6a
  • C6in
  • C7g
  • Inf2
  • M6a
  • M6in
  • M6idn
  • M7g
  • R5b
  • R6a
  • R6in
  • R6idn
  • R7g
  • Trn1
  • Trn1n
  • X2idn
  • X2iedn

解决方法

当您首次将现有 Amazon EBS 卷连接到需要 SRD 的实例类型时,Amazon EBS 会自动修改现有卷。然后,Amazon EBS 会将该卷移至支持 SRD 的基础架构。对于一个卷,一次只能进行一项修改操作。如果您在系统修改卷时尝试连接该卷,Amazon EBS 将无法将该卷移至支持 SRD 的基础架构。

当现有 EBS 卷无法连接到支持 SRD 的实例时,系统会向您的 AWS Health Dashboard 发送一个通知。查看该通知,以了解导致移至支持 SRD 的基础架构延迟的活动的详细信息。该活动可能需要长达 48 小时才能完成。等到原始卷修改完成,然后再次将 Amazon EBS 卷连接到支持 SRD 的实例。

如果您必须访问 Amazon EBS 卷中的数据,请将该卷连接到通知中列出的实例类型以外的其他实例类型。修改完成后,将 Amazon EBS 卷连接到支持 SRD 的实例。

通知示例

**注意:**以下示例使用 R5b.8xLarge 实例类型。

如果您启动了现有修改,则会收到以下通知:

"r5b.8xlarge is an SRD capable instance.In order to give you the benefit of the performance of an r5b.8xlarge instance, we have to move your volume to SRD capable infrastructure with the modifyVolume process.We are unable to perform the modification operation at this time because your volume is already undergoing modification.You can track the progress of the current modification with the describe-volume-modifications API.Once the modification is completed you can attach the volume to the instance r5b.8xlarge.If you urgently need to access data from this volume, please attach it to any instance family other than C6a, C6in, C7g, Inf2, M6a, M6in, M6idn, M7g, R5b, R6a, R6in, R6idn, R7g, Trn1, Trn1n, X2idn, and X2iedn.”

如果 Amazon EBS 启动了现有修改,则会收到以下通知:

"r5b.8xlarge is an SRD capable instance.In order to give you the benefit of the performance of an r5b.8xlarge instance, we have to move your volume to SRD capable infrastructure with the modifyVolume process.We are unable to perform the modification operation at this time because of an operational activity being performed by EBS on the server hosting your volume.Your volume is in a healthy and fully redundant state.We will send an update as soon as the operational activity is complete.You can then attach the volume to the instance r5b.8xlarge.This operational activity may last for up to 48 hrs.If you urgently need to access data from this volume, please attach it to any instance family other than C6a, C6in, C7g, Inf2, M6a, M6in, M6idn, M7g, R5b, R6a, R6in, R6idn, R7g, Trn1, Trn1n, X2idn, and X2iedn."

相关信息

在追求性能的过程中,建立网络的方法不止一种

Amazon EC2 实例类型

AWS 官方
AWS 官方已更新 4 个月前