我正在尝试将 Amazon Elastic Block Store(Amazon EBS)io2 Block Express 卷附加到我的 Amazon Elastic Compute Cloud(Amazon EC2)实例。卷处于“可用”状态,但我收到以下错误:
“An error occurred (VolumeInUse) when calling the AttachVolume operation: vol-xxxx is already attached to an instance”(调用 AttachVolume 操作时出现错误(VolumeInUse):vol-xxxx 已附加到实例)。
解决方法
当您尝试将 io2 Block Express 卷附加到不支持该卷类型的 EC2 实例类型时,您会收到此错误。要解决此问题,请检查您附加该卷的 EC2 实例类型是否支持 io2 Block Express 卷。
以下实例类型支持 io2 Block Express 卷:
- c6in
- c7g
- m6in
- m6idn
- r5b
- r6in
- r6idn
- trn1
- x2idn
- x2iedn
有关更多信息,请参见 io2 Block Express 卷。