14+ years building on WordPress / Replies in under 5 hours
PHP 2 min read · Updated July 2026

A Guide to Resizing EBS Volumes on AWS EC2 Instances

AK
Ajay Khandal
WordPress Developer
TL;DR

You can increase an EBS volume's size on an EC2 instance without deleting or recreating it: take a snapshot as a backup, modify the volume size through the AWS console, CLI, or SDK, then connect to the instance and resize the file system to actually use the new space. Skipping the file system resize step is the most common mistake, since the volume will show the larger size in AWS while the OS still sees the old capacity. This is a server-maintenance task, not something handled through WordPress itself.

To change the size of an existing EBS volume on an EC2 instance without deleting it, you can follow these steps:

  • Create a Snapshot of the Existing Volume: Before you can resize the volume, it’s a best practice to create a snapshot of your existing EBS volume as a backup. You can do this through the AWS Management Console by going to the “Elastic Block Store” section and selecting your volume. Then, click “Actions” and choose “Create Snapshot.”
  • Modify the Volume Size: You can increase the size of the EBS volume using the AWS Management Console, AWS CLI, or AWS SDKs. Here are the steps to do it through the AWS Management Console:
  • In the AWS Management Console, go to the “Elastic Block Store” section.
  • Select your EBS volume that you want to resize.
  • Click the “Actions” button and choose “Modify Volume.”
  • In the “Modify Volume” dialog, increase the “Size” field to your desired size.
  • Click “Modify” to apply the changes.
  • Connect to Your EC2 Instance: To make use of the increased volume size, connect to your EC2 instance via SSH or your preferred method.
  • Resize the File System: Depending on your operating system and file system type, you may need to resize the file system to utilize the newly allocated space. For example, on a Linux system with an ext4 file system, you can use the resize2fs command:
  • sudo resize2fs /dev/xvdf
  • Verify the Disk Size: To verify that the disk size has been increased, you can use commands like df or lsblk to check the available space.
  • By following these steps, you can successfully change the size of an old EBS volume attached to your EC2 instance without deleting the volume. Make sure to back up your data and snapshots before making any changes to your volumes for data protection.

Looking to round out your WordPress knowledge? Learn more about how to fix a 500 Internal Server Error in WordPress. Learn more about how Composer manages WordPress plugin and theme dependencies.

AK

Written by Ajay Khandal

WordPress Developer — building, fixing and speeding up WordPress sites.

Work with me →