EBS ボリュームを初めて EC2 インスタンスにアタッチしようとしてエラーになるのはなぜですか?

所要時間2分
0

既存の Amazon Elastic Block Store (Amazon EBS) ボリュームを Amazon Elastic Compute Cloud (Amazon EC2) インスタンスにアタッチしました。「vol-xxx is already attached to an instance.」というメッセージが表示されて失敗しました。

簡単な説明

特定の Amazon EC2 インスタンスタイプでは、Amazon EBS の高パフォーマンスを実現するために Scalable Reliable Datagram (SRD) が必要です。SRD 対応インスタンスには、次のタイプが含まれます。

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

SRD は、AWS 専用に設計された、高パフォーマンスかつ低レイテンシーの信頼性に優れたネットワークトランスポートプロトコルです。

解決方法

SRD を必要とするインスタンスタイプに既存の Amazon EBS ボリュームを初めてアタッチすると、Amazon EBS によってボリュームが変更されます。Amazon EBS はこれを SRD 対応のインフラストラクチャに移動します。同じボリュームで同時に実行できる変更オペレーションは 1 つだけです。ボリュームのアタッチの試行中に、そのボリュームに対して変更が加えられた場合、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 インスタンスにアタッチします。

関連情報

パフォーマンスを探究すると、ネットワークの構築方法は 1 つには収まりません

Amazon EC2 のインスタンスタイプ

AWS公式
AWS公式更新しました 1年前
コメントはありません