为什么我的 EBS 卷第一次无法连接到 EC2 实例?

2 分钟阅读
0

我将一个现有的 Amazon Elastic Block Store(Amazon EBS)卷连接到我的 Amazon Elastic Compute Cloud(Amazon EC2)实例。但操作失败了,显示一条错误消息:“vol-xxx 已经连接到实例。”

简短描述

特定的 Amazon EC2 实例类型需要可扩展的可靠数据报(SRD)才能让您享受 Amazon EBS 的高性能。支持 SRD 的实例包括以下类型:

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

SRD 是一种专为 AWS 设计的高可靠、高性能、低延迟网络传输协议。

解决方法

当您首次将现有 Amazon EBS 卷连接到需要 SRD 的实例类型时,Amazon EBS 会修改该卷。Amazon EBS 将其移至支持 SRD 的基础架构。对同一个卷,一次只能进行一项修改操作。如果您在尝试连接卷时,系统正在修改您的这个卷,则尝试将该卷移到支持 SRD 的基础架构的操作会失败。

当现有 EBS 卷无法连接到支持 SRD 的实例时,系统会向您账户的 Personal Health Dashboard(PHD)发送一个通知。此通知详细介绍了将 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 via 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 via 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 via 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.

要查看您账户的 PHD 通知,请参阅您的账户活动

修改操作最长可能持续 48 小时。您可以等到原始卷修改完成,然后再次将 EBS 卷连接到支持 SRD 的实例。

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

相关信息

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

Amazon EC2 实例类型

AWS 官方
AWS 官方已更新 1 年前