我將現有的 Amazon Elastic Block Store (Amazon EBS) 磁碟區連接至我的 Amazon Elastic Compute Cloud (Amazon EC2) 執行個體。但是失敗了並且出現一則訊息,表示:"vol-xxx is already attached to an instance. (vol-xxx 已連接至執行個體。)"
簡短描述
特定 Amazon EC2 執行個體類型需要 Scalable Reliable Datagram (SRD),才能為您提供高效能 Amazon EBS 的優點。特定執行個體類型包括 C6in、C7g、M6in、M6idn、R5b、R6in、R6idn、Trn1、X2idn、和 X2iedn。SRD 是一種可靠、高性能、低延遲的網路傳輸通訊協定,專為 AWS 設計。
解決方案
當您第一次將現有的 Amazon EBS 磁碟區連接到需要 SRD 的執行個體類型時,Amazon EBS 會修改磁碟區。Amazon EBS 會將其移至具備 SRD 功能的基礎設施。相同磁碟區一次只能有一個修改作業。如果您的磁碟區在嘗試連接磁碟區期間進行修改,則嘗試將磁碟區移至支援 SRD 的基礎設施會失敗。
當現有的 EBS 磁碟區無法連接至支援 SRD 的執行個體 (C6in、C7g、M6in、M6idn、R5b、R6in、R6idn、Trn1、X2idn 和 X2iedn) 時,系統會將通知傳送到您帳戶的 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 C6in, C7g, M6in,
M6idn, R5b, R6in, R6idn, Trn1, 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 C6in, C7g, M6in, M6idn, R5b,
R6in, R6idn, Trn1, X2idn, and X2iedn.
要查看您的帳户 PHD 通知,請參閲您的帳户事件。
修改操作活動最長可能持續 48 小時。您可以等到原始磁碟區修改完成,然後再次將 EBS 磁碟區連接至支援 SRD 的執行個體。如果您需要存取 EBS 磁碟區中的資料,請將該磁碟區連接到 PHD 通知中列出的執行個體類型以外的執行個體類型。修改完成後,將 EBS 磁碟區連接到 R5b 執行個體。
相關資訊
為了取得效能,有多種方法來建置網路
Amazon EC2 執行個體類型