기존 Amazon Elastic Block Store(Amazon EBS) 볼륨을 Amazon Elastic Compute Cloud(Amazon EC2) 인스턴스에 연결하려 했습니다. 하지만 실패했고 "vol-### is already attached to an instance" 메시지를 받았습니다.
간략한 설명
일부 Amazon EC2 인스턴스 유형에서는 높은 Amazon EBS 성능을 위해 AWS SRD(확장 가능하고 신뢰할 수 있는 데이터그램)를 사용해야 합니다. 다음은 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 인스턴스 유형