Skeddly

Welcome, Guest Login

Support Center

Growing EBS Volumes

Last Updated: Oct 28, 2013 01:15PM EDT

It is not possible to change the size of an existing EBS volume. However, you can simulate the "growing" of an EBS volume by creating a copy of it that's bigger than the original size.

It is not possible to resize an EBS volume smaller. New EBS volumes created from snapshots must be atleast as big as the snapshot size.

To grow your EBS volume, you need to perform the following steps:

Grow the Volume

  1. Stop the instance attached to your EBS volume. This will ensure that all data has completely been written to the volume.
  2. Record somewhere the device that the volume is attached to your instance as. For example, /dev/sda1. This information is available in the AWS Management Console, on the volumes page, under the "Attachment Information" column.
  3. Create a snapshot of the volume and wait for the snapshot to complete.
  4. Create a new volume based on your snapshot. Make sure to specify the new (larger) size of the volume. Wait for the new volume's status to be "available".
  5. Detach the old volume from the instance.
  6. Attach the new volume to the instance. Use the same device name that you saved in step #2.
  7. Restart your instance. If required, re-associate your Elastic IP address.

At this point, if you connect to your instance (either using Remote Desktop for Windows, or SSH for Linux), you'll notice that the operating system still thinks the volume is the original size. You need to tell the operating system to expand the partition to use the new space.

Resize the Partition

If you are using Windows, you can use the Disk Manager to expand the size of the existing partition to include the new unallocated space. An alternative (if your flavour of Windows allows), is to use the command line tool 'diskpart'.

If you are using Linux, then you can use the 'resize2fs' command.

Once you have confirmed that your instance is running correctly using the new volume, you can delete the old volume.

Notes

  • Your new volume will not be set to automatically delete when your instance terminates. If you want to restore this flag, you will need to use the API or command line tools to execute the ModifyInstanceAttribute call.
  • Our testing did include growing the boot volume for both Linux (Amazon Linux) and Windows (Windows Server 2008 R2).
  • If the volume you are growing is not the boot volume of your instance, it's not strictly required to stop your instance. Instead, you can:
    1. Stop any processes accessing the volume
    2. Unmount the volume from the operating system
    3. Detach the volume from the instance
    4. Create the snapshot
    5. Create the new volume
    6. Attach the new volume to the instance
    7. Mount the new volume in the operating system
    8. Restart any required processes
    However, stopping the instance is simpler and works for all cases (boot volume or secondary volume).

Skeddly can grow your volume for you automatically. Only resizing of the partition needs to be done manually. Create An Action

References

Contact Us

support@skeddly.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete