Picking the wrong Elastic Block Store volume quietly taxes every workload on an EC2 instance: too slow, and databases stall; too fast, and you pay for performance nobody uses. Understanding EBS volume types is therefore a core AWS cost and performance skill, not a detail to leave on defaults.
This guide compares gp3, gp2, io2, st1, and sc1 volumes, explains IOPS and throughput in plain terms, shows how to create and modify volumes, and gives a decision framework for common workloads.

The EBS Volume Types at a Glance
EBS volumes fall into two families. SSD-backed volumes serve latency-sensitive, random I/O workloads, while HDD-backed volumes serve sequential, throughput-oriented workloads at lower cost:
- gp3 (General Purpose SSD): the default choice. Baseline 3,000 IOPS and 125 MB/s throughput, independently scalable to 16,000 IOPS and 1,000 MB/s. Best for boot volumes, web servers, and small to medium databases.
- gp2 (General Purpose SSD): the older generation, with IOPS tied to volume size through burst credits. Still common on existing instances, but gp3 is cheaper and more predictable for new volumes.
- io2 (Provisioned IOPS SSD): up to 64,000 IOPS and sub-millisecond latency, with 99.999% durability. Built for large, I/O-hungry databases such as Oracle, SQL Server, and SAP HANA.
- io2 Block Express: the highest tier, up to 256,000 IOPS, for the most demanding database workloads.
- st1 (Throughput Optimized HDD): up to 500 MB/s for large sequential reads such as log processing and big data jobs.
- sc1 (Cold HDD): the cheapest option, for infrequently accessed data such as archives.
Prerequisites
- An AWS account with an EC2 instance running in a region of your choice.
- AWS CLI v2 installed and configured (
aws --version), or access to the AWS Console. - Basic familiarity with EC2 instances and the AWS Console.
IOPS, Throughput, and Latency in Plain Terms
Three numbers describe a volume’s performance. IOPS counts input/output operations per second and matters for random access patterns such as database queries. Throughput measures megabytes per second and matters for sequential patterns such as streaming large files. Latency is the delay per operation, and it is why SSD volumes feel faster even when their throughput looks similar to HDD volumes on paper.
The key insight for gp3 is decoupling: with gp2, buying more IOPS meant buying a bigger volume. With gp3, you provision IOPS and throughput independently of size, so a small 100 GB volume can still get 10,000 IOPS when a database needs it, without paying for terabytes of unused space. That flexibility is why comparing EBS volume types matters before you commit to a size.
Step 1: Create a gp3 Volume and Attach It
Create a volume in the same Availability Zone as your instance:
aws ec2 create-volume \
--availability-zone us-east-1a \
--size 100 \
--volume-type gp3 \
--iops 5000 \
--throughput 250 \
--tag-specifications 'ResourceType=volume,Tags=[{Key=Name,Value=app-data}]'
Attach it to the instance, noting the device name:
aws ec2 attach-volume \
--volume-id vol-0123456789abcdef0 \
--instance-id i-0123456789abcdef0 \
--device /dev/sdf
Then format and mount it on the instance itself:
sudo mkfs -t xfs /dev/nvme1n1
sudo mkdir -p /data
sudo mount /dev/nvme1n1 /data
df -h /data
On Nitro-based instances, device names appear as NVMe names such as /dev/nvme1n1 rather than the /dev/sdf you requested. Check lsblk to confirm the mapping before formatting anything.
Step 2: Modify a Volume Without Downtime
One of EBS’s best features is live modification: you can change type, size, IOPS, and throughput while the volume is attached and in use.
aws ec2 modify-volume \
--volume-id vol-0123456789abcdef0 \
--volume-type gp3 \
--iops 10000 \
--throughput 500
Monitor the modification until it reports completed:
aws ec2 describe-volumes-modifications \
--volume-ids vol-0123456789abcdef0
After growing a volume, extend the filesystem to use the new space with sudo xfs_growfs /data for XFS or sudo resize2fs /dev/nvme1n1 for ext4. Skipping this step is the most common reason a resize appears to do nothing.
Step 3: Choose the Right Volume Type per Workload
- Boot volumes and general servers: gp3 with defaults. Cheap, fast enough, and easy to tune later.
- Transactional databases (MySQL, PostgreSQL): gp3 with provisioned IOPS matched to peak query load, or io2 when latency guarantees are contractual.
- Data warehouses and analytics: io2 for hot data, st1 for sequential scan-heavy jobs.
- Log processing and big data: st1, which delivers high throughput at roughly half the price of gp3 for sequential access.
- Backups and archives: sc1, or better, move the data to S3 Glacier for long-term retention.
As a rule of thumb, start with gp3 everywhere, measure with CloudWatch metrics (VolumeReadOps, VolumeWriteOps, VolumeQueueLength), and upgrade only the volumes whose metrics prove they need it.
Troubleshooting EBS Performance Problems
Volume queue length stays high
A sustained queue length above one per provisioned thousand IOPS means the volume is saturated. Increase IOPS, or check whether the instance itself is EBS-bandwidth limited, which no volume upgrade can fix.
Bursty performance on gp2
gp2 volumes earn IOPS credits and exhaust them under sustained load, causing sudden slowdowns. Migrating to gp3 removes burst behavior entirely and usually costs less.
Volume stuck in “creating” or “attaching”
Confirm the volume and instance share an Availability Zone; cross-zone attachment is impossible. Also verify the instance is running, since stopped instances cannot accept attachments in some configurations.
Conclusion
For most workloads the decision is simple: gp3 by default, io2 for demanding databases, st1 for sequential throughput jobs, and sc1 for cold data. Learning the EBS volume types lineup once saves repeated guesswork every time you launch an instance. Provision IOPS and throughput independently on gp3, modify volumes live instead of rebuilding instances, and let CloudWatch metrics, not guesses, drive upgrades. For the instance side of the equation, see our guide to EC2 Auto Scaling Groups and CloudWatch Logs Insights for EC2. The official Amazon EBS volume types documentation lists current limits and pricing details.