Why am I getting the error "VolumeInUse" when trying to attach an Amazon EBS io2 Block Express volume to my EC2 instance?

1 minute read
0

I'm trying to attach an Amazon Elastic Block Store (Amazon EBS) io2 Block Express volume to my Amazon Elastic Compute Cloud (Amazon EC2) instance. The volume is in the "available" state, but I get the following error: "An error occurred (VolumeInUse) when calling the AttachVolume operation: vol-xxxx is already attached to an instance".

Resolution

You receive this error when you try to attach an io2 Block Express volume to an EC2 instance type that doesn't support this volume type. To resolve this issue, check whether the EC2 instance type that you're attaching the volume to supports io2 Block Express volumes.

The following instance types support io2 Block Express volumes:

  • c6in
  • c7g
  • m6in
  • m6idn
  • r5b
  • r6in
  • r6idn
  • trn1
  • x2idn
  • x2iedn

For more information, see io2 Block Express volumes.


AWS OFFICIAL
AWS OFFICIALUpdated a year ago