Lesson 3 of 3 Amazon EBS

Changing Volumes in Place and Initialising Restored Volumes

This lesson explains how Elastic Volumes change EBS volumes while in use, and how volumes restored from snapshots behave differently until their data has been loaded.

Learning outcomes

After completing this lesson, you will be able to:

  • Modify size, type, IOPS and throughput with Elastic Volumes.
  • Explain lazy loading of restored volumes.
  • Use fast snapshot restore.

Elastic Volumes

Elastic Volumes let you increase size, change the volume type and adjust IOPS and throughput on an attached volume without detaching it or stopping the instance (aws ec2 modify-volume). The modification goes through the states modifying, optimizing and completed; the new performance becomes available progressively during optimisation. Volumes can only grow, never shrink; to reduce size, create a smaller volume and copy the data. Since January 2026 a volume can be modified up to four times in a rolling 24-hour period (previously a six-hour wait applied between modifications); each modification must reach the completed state before the next one starts, and a fifth request returns VolumeModificationRateExceeded. When size increases, extend the partition and file system inside the operating system, for example with growpart and xfs_growfs or resize2fs.

aws ec2 modify-volume --volume-id vol-0abc1234 --volume-type gp3 --iops 6000 --throughput 250 --size 600
aws ec2 describe-volumes-modifications --volume-ids vol-0abc1234 \
  --query 'VolumesModifications[0].[ModificationState,Progress]'
# inside the instance after the size increase
sudo growpart /dev/nvme1n1 1 && sudo xfs_growfs -d /data

The following diagram shows a modification moving through its states.

An Elastic Volumes modification. modify-volume changes size, type, IOPS or throughput on an attached volume without stopping the instance. The volume moves through modifying, optimizing and completed, with the new performance arriving during optimisation. Volumes can only grow, and since January 2026 up to four modifications are allowed in a rolling 24 hours, each completing before the next.
The sizes are illustrative. A larger volume is not usable until the file system is extended.
Put in order

Growing a volume

Exam skills 1.3.2

Put the steps for growing a volume in place in order.

Log in to try this activity Interactive activities are free with an account.

Snapshot initialisation and fast snapshot restore

EBS snapshots are stored in S3 (managed by AWS). A volume created from a snapshot is available immediately, but its blocks are loaded lazily from S3 the first time each is read, which adds significant latency to first access. For a database restored from a snapshot this can mean minutes or hours of poor performance. Three options address this: initialise the volume by reading every block (for example with fio or dd) before putting it into service; specify a volume initialisation rate when creating the volume so that EBS loads it at a predictable rate; or enable fast snapshot restore (FSR) on the snapshot in specific AZs, which creates volumes that deliver full performance immediately, at an hourly charge per snapshot per AZ.

The following table compares the options for restored volumes.

OptionEffectCost and effort
Lazy loading (default)First read of each block is slowNone
Manual initialisation (fio/dd)Full performance after the read completesTime to read the whole volume
Volume initialisation ratePredictable time until fully loadedCharged per GiB at the chosen rate
Fast snapshot restoreFull performance immediatelyHourly charge per snapshot per AZ

The following diagram compares a default restore with fast snapshot restore.

Volumes restored from snapshots. By default, blocks load lazily from S3 the first time each is read, so a restored database is slow until every block has been read. Fast snapshot restore, enabled per snapshot and Availability Zone, creates volumes that deliver full performance immediately, at an additional cost.
A volume initialisation rate, set when the volume is created, is the middle option: predictable loading without FSR's cost.
Scenario questions

Restored volume performance

Exam skills 1.3.2 · 2.3.2

Choose how to get full performance from volumes restored from snapshots.

Log in to try this activity Interactive activities are free with an account.
Worked example

Fast restores for an Auto Scaling group

An Auto Scaling group launches instances from an AMI whose data volume holds a 300 GiB reference dataset. New instances are slow for the first 40 minutes while blocks load, so scale-out does not relieve load quickly. Enabling fast snapshot restore for the AMI's data snapshot in the group's three AZs gives new instances full performance at launch. The team accepts the hourly FSR charge because scale-out events are frequent; for a one-off database restore, initialising the volume would be cheaper.

Check yourself

Can an EBS volume be made smaller with Elastic Volumes?

Show answer

No. Volumes can grow or change type and performance, but cannot shrink.

Exam Tips

Remember for the exam

  • Elastic Volumes change size, type, IOPS and throughput online; volumes cannot shrink.
  • Up to four modifications per volume in a rolling 24 hours, each completing before the next.
  • Extend the partition and file system after increasing size.
  • Restored volumes load lazily; use initialisation or fast snapshot restore for full performance.