Alessandro walks you through
expanding the root volume of
an EC2 instance running Windows

expand-ebs-root-volume-windows-alessandro

I have run out of space. How can I dynamically expand the Amazon Elastic Block Store (EBS) volumes of my Windows instances?

By default, you will have 30 GB gp2 (General Purpose SSD) Amazon EBS volume as a root volume when using an Amazon EC2 Windows Instance from an Amazon AMI.

Expand the root volume using the Amazon EC2 console

1.    Open the Amazon EC2 console and choose Instances from the navigation pane.

2.    Choose your instance, and choose the volume next to Block devices.

3.    Choose the EBS ID.

4.    Choose the volume, choose Actions, and select Modify Volume.

5.    Enter your desired volume in the Size field, choose Modify, and choose Yes.

6.    Refresh the console page. The expanded volume is immediately available for the OS. You can check this by choosing the Description tab, and choosing the information icon next to the State. This will show the Original Size and the Target Size.
Note:
Windows root volumes are the master boot record (MBR) by default, and they can be extended up to 2TB. See Amazon EBS Volume Types for other considerations.

7.    Open the RDP session for the instance, launch the Disk Management view by using the diskmgmt.msc command, choose Action, and choose Refresh.

8.    Open the context (right-click) menu, and choose Extend Volume.

9.    Accept the default options by choosing Next and then Finish.

10.   Perform these steps for any additional volumes.

Expand the root volume using the AWS CLI

You can also perform these steps by using the AWS Command Line Interface (CLI):

1.    Run a command similar to the following:

ec2-modify-volume-attribute --volume <volumeId> --size <newSize> --iops <newIops> --type <newType>

2.    Check the progress of your task using a command similar to the following:

ec2-describe-volumes --volume <volumeId>

3.    Similar to the Amazon EC2 console, the expanded volume is immediately available.

4.    Open the RDP session for the instance in the Disk Manager view by using the diskmgmt.msc command, choose Action, and choose Refresh.

5.    Open the context (right-click) menu, and choose Extend Volume.

6.    Confirm the task is complete by running a command similar to the following:

ec2-describe-volumes --volume <volumeId>

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2016-08-17