Requirements when modifying volumes
The following requirements and limitations apply when you modify an Amazon EBS volume. To learn more about the general requirements for EBS volumes, see Constraints on the size and configuration of an EBS volume.
Supported instance types
Elastic Volumes are supported on the following instances:
-
The following previous-generation instances: C1, C3, G2, I2, M1, M3, and R3
If your instance type does not support Elastic Volumes, see Modify an EBS volume if Elastic Volumes is not supported.
Requirements for Windows volumes
By default, Windows initializes volumes with a Master Boot Record (MBR) partition table. Because MBR supports only volumes smaller than 2 TiB (2,048 GiB), Windows prevents you from resizing MBR volumes beyond this limit. In such a case, the Extend Volume option is disabled in the Windows Disk Management utility. If you use the Amazon Web Services Management Console or Amazon CLI to create an MBR-partitioned volume that exceeds the size limit, Windows cannot detect or use the additional space. For requirements affecting Linux volumes, see Requirements for Linux volumes in the Amazon EC2 User Guide for Linux Instances.
To overcome this limitation, you can create a new, larger volume with a GUID partition table (GPT) and copy over the data from the original MBR volume.
To create a GPT volume
-
Create a new, empty volume of the desired size in the Availability Zone of the EC2 instance and attach it to your instance.
Note
The new volume must not be a volume restored from a snapshot.
-
Log in to your Windows system and open Disk Management (diskmgmt.exe).
-
Open the context (right-click) menu for the new disk and choose Online.
-
In the Initialize Disk window, select the new disk and choose GPT (GUID Partition Table), OK.
-
When initialization is complete, copy the data from the original volume to the new volume, using a tool such as robocopy or teracopy.
-
In Disk Management, change the drive letters to appropriate values and take the old volume offline.
-
In the Amazon EC2 console, detach the old volume from the instance, reboot the instance to verify that it functions properly, and delete the old volume.
Limitations
-
There are limits to the maximum aggregated storage that can be requested across volume modifications. For more information, see Amazon EBS service quotas in the Amazon Web Services General Reference.
-
After modifying a volume, you must wait at least six hours and ensure that the volume is in the
in-use
oravailable
state before you can modify the same volume. This is sometimes referred to as a cooldown period. -
If the volume was attached before November 3, 2016 23:40 UTC, you must initialize Elastic Volumes support. For more information, see Initializing Elastic Volumes Support.
-
If you encounter an error message while attempting to modify an EBS volume, or if you are modifying an EBS volume attached to a previous-generation instance type, take one of the following steps:
-
For a non-root volume, detach the volume from the instance, apply the modifications, and then re-attach the volume.
-
For a root volume, stop the instance, apply the modifications, and then restart the instance.
-
-
Modification time is increased for volumes that are not fully initialized. For more information see Initialize Amazon EBS volumes.
-
The new volume size can't exceed the supported capacity of its file system and partitioning scheme. For more information, see Constraints on the size and configuration of an EBS volume.
-
If you modify the volume type of a volume, the size and performance must be within the limits of the target volume type. For more information, see Amazon EBS volume types
-
You can't decrease the size of an EBS volume. However, you can create a smaller volume and then migrate your data to it using an application-level tool such as robocopy.
-
After provisioning over 32,000 IOPS on an existing
io1
orio2
volume, you might need to detach and re-attach the volume, or restart the instance to see the full performance improvements. -
For
io2
volumes, you can't increase the size beyond16
TiB or the IOPS beyond64,000
while the volume is attached to an instance type that does not supportio2
Block Express volumes. For more information, see io2 Block Express volumes. -
You can't modify the volume type of Multi-Attach enabled
io2
volumes. -
You can't modify the volume type, size, or Provisioned IOPS of Multi-Attach enabled
io1
volumes. -
A root volume of type
io1
,io2
,gp2
,gp3
, orstandard
can't be modified to anst1
orsc1
volume, even if it is detached from the instance. While
m3.medium
instances fully support volume modification,m3.large
,m3.xlarge
, andm3.2xlarge
instances might not support all volume modification features.