Skip to content

How do I increase the EBS root volume of my EC2 Windows instance?

2 minute read
0

I ran out of space on my Amazon Elastic Compute Cloud (EC2) Windows instance. I want to increase the Amazon Elastic Block Store (Amazon EBS) volume of my Windows instance.

Resolution

Note: If you receive errors when you run AWS Command Line Interface (AWS CLI) commands, then see Troubleshooting errors for the AWS CLI. Also, make sure that you're using the most recent AWS CLI version.

Increase the size of your Amazon EBS volume

You can use either the Amazon EC2 console or the AWS CLI to increase your EBS volume size.

Use the Amazon EC2 console 

Note: You don't need to stop your instance.

Complete the following steps:

  1. Open the Amazon EC2 console.
  2. In the navigation pane, choose Instances, and then select your instance.
  3. Choose the Storage tab, and then select your volume.
  4. In the Volumes pane, select the check box for the volume that you want to increase.
  5. For Actions, choose Modify volume.
  6. For Volume details, enter the size and IOPS based on the volume type.
  7. Choose Modify, and then choose Modify again.

To monitor the progress of the volume modification, check the status under Volume state. Refresh the Volumes pane to view progress updates. After the volume modification completes, you can extend the file system of the EBS volume.

Use the AWS CLI

Run the modify-volume command:

aws ec2 modify-volume --region RegionName --volume-id VolumeId --size NewSize --volume-type NewType --iops NewIops

Note: Replace RegionName with the AWS Region of your EBS volume.

To check the progress of your volume modification, run the describe-volumes-modifications command:

aws ec2 describe-volumes-modifications --volume VolumeId --region RegionName

Extend the file system space of your EBS volume

Note: Before you extend a file system, it's a best practice to create a snapshot of the volume. You can use the snapshot to roll back your changes. 

Use the Remote Desktop Protocol (RDP) to connect to your EC2 Windows instance. Then, use either Disk Management or Windows PowerShell to extend the EBS volume's file system space.

Related information

Request Amazon EBS volume modifications

Requirements for Amazon EBS volume modifications