What Is Amazon EBS? Choosing and Recovering EC2 Disks
Amazon Elastic Block Store (EBS) is AWS block storage that you attach to an EC2 instance and use like a disk. It suits frequently changing data such as operating systems and databases, and a volume can outlive the instance that uses it. However, a volume belongs to a specific Availability Zone, and AWS does not back it up automatically. Choose the volume type, termination behavior, snapshots, and recovery process together. For the general model, see the [block storage guide](https://knowledge.linkspot.net/ko/articles/a33fc3fb-a7b7-4d13-a546-c338335ebfb9); for the difference from object storage, see the [object storage guide](https://knowledge.linkspot.net/ko/articles/5d180b88-0544-467a-bc97-aa027bb2039a).
Amazon Elastic Block Store (EBS) is AWS block storage that you attach to an EC2 instance and use like a disk. It suits frequently changing data such as operating systems and databases, and a volume can outlive the instance that uses it. However, a volume belongs to a specific Availability Zone, and AWS does not back it up automatically. Choose the volume type, termination behavior, snapshots, and recovery process together. For the general model, see the block storage guide; for the difference from object storage, see the object storage guide.
How does an EBS volume relate to an EC2 instance?
An EBS volume is a virtual disk that reads and writes data in blocks. Once attached, the operating system sees it as a disk device; you partition and format it, create a file system, and mount it. The root volume usually contains the operating system, while a separate data volume can hold database files or application data.
A volume can exist independently of a running instance, so you can preserve data when stopping or replacing an instance. Whether it survives instance termination depends on each volume’s DeleteOnTermination setting. The root volume is commonly deleted by default, while the default for additional volumes can depend on how they were attached. Check the actual setting before production use, and remember that preserved volumes continue to incur charges.
Each volume is created in an Availability Zone (AZ) and must be attached to an instance in that same AZ. To move data to an instance in another AZ, a common path is to create or copy a volume from a snapshot in the destination AZ. EBS is not one shared read/write volume automatically attached across all AZs in a Region. Multi-Attach supports multiple instances only for certain volume and instance configurations; it does not coordinate concurrent changes to a shared file system for you.
How should you choose a volume type?
Start with the workload’s I/O pattern: does it perform frequent small operations or stream large amounts of data? Consider whether latency, IOPS (input/output operations per second), or throughput (data transferred over time) matters most. SSD-backed volumes target frequent small reads and writes; HDD-backed volumes target large sequential workloads.
| Type | Common fit | What to consider |
|---|---|---|
gp3 general purpose SSD | Boot disks, development, general applications, medium-sized databases | A common starting point. You can adjust IOPS and throughput separately from capacity. |
gp2 previous-generation general purpose SSD | Existing volumes or compatibility needs | Compare current-generation behavior and cost before choosing it for a new design. |
io2 / io1 Provisioned IOPS SSD | I/O-intensive databases that need sustained IOPS | Check both provisioned volume IOPS and the EC2 instance’s EBS bandwidth limit. Capabilities and limits differ by type. |
st1 Throughput Optimized HDD | Log processing, data warehouses, large sequential scans | Not a boot volume; suited to throughput rather than small random I/O. |
sc1 Cold HDD | Large, infrequently accessed data where lower storage cost matters | Accept the performance trade-off; it cannot be used as a boot volume. |
This is a selection guide, not a performance guarantee. Actual results depend on volume type and size, instance type, request size, concurrency, and application behavior. For example, if small random database reads are slow, measure volume IOPS and instance bandwidth instead of assuming that a larger volume alone will solve the bottleneck. For sequential log scans, throughput may matter more than peak IOPS.
How do encryption and snapshots protect data?
EBS encryption protects data at rest and data moving between an attached instance and its volume. It uses AWS KMS keys for volumes and their snapshots. You can enable encryption by default for a Region or select encryption when creating a volume. An existing unencrypted volume cannot simply be switched to encrypted in place; a migration path typically creates a snapshot and then makes an encrypted volume from it. Encryption does not replace access control, and KMS key permissions still need to be managed.
A snapshot is a point-in-time backup that can be used to restore a new volume. The first snapshot captures blocks written at that point; later snapshots of the same volume store changed blocks incrementally. Snapshots live in AWS-managed S3 storage, but you do not browse them as files in an S3 bucket. AWS does not automatically back up EBS volumes. Plan a schedule, retention, account-level protection, and restore tests, either yourself or with tools such as AWS Backup or Data Lifecycle Manager.
Snapshot creation is asynchronous. It captures data written to the volume when the request is made, but not data that exists only in application or operating-system caches. A raw block copy taken while a file system or database is writing may not be application-consistent. When practical, pause writes or unmount the file system before starting a snapshot, and follow the database’s backup procedure. The source volume remains usable while a snapshot is pending, but verify completion and that the recovery path works.
A recovery plan includes more than creating a new volume: attach it, check or extend the file system, start the application, and validate the data. A volume restored from a snapshot may have higher I/O latency or lower performance until its blocks are initialized. If you need a predictable recovery time, evaluate volume initialization or Fast Snapshot Restore ahead of time, including its costs and Region or quota constraints. A snapshot by itself does not guarantee a restore time.
What should you check when changing size or performance?
For supported current-generation volumes and instances, Elastic Volumes can change capacity, type, IOPS, or throughput without detaching the volume. A change may take time; monitor its state and wait for completion before planning another modification. You can increase an existing volume’s size but cannot shrink it. To use a smaller disk, create a new volume and migrate data with a file-system or application-level tool.
After increasing EBS capacity, you must also extend the partition and file system inside the operating system to use the extra space. Changing only the AWS volume size may not make the added capacity visible to the guest OS. For important data, take a snapshot before the change, monitor the modification and OS-reported capacity, then check application I/O and status. Support can vary by instance generation, root-volume role, and target type, so check current AWS requirements.
Hypothetical example: Suppose an order database on EC2 reports low disk space. First check actual file-system usage and its growth, as well as database read/write latency. If capacity is the issue, make a snapshot and recovery plan, increase the volume, and extend the file system. If I/O wait is the issue, compare the volume type and IOPS/throughput with the instance’s bandwidth limit. Then test a restore to confirm the backup can support service recovery. This illustrates a decision process; it does not claim a measured performance improvement or test.
What should you verify before production use?
Confirm the volume and EC2 instance are in the same AZ and that the instance can support the selected performance.
Check `DeleteOnTermination` and volume tags; decide whether instance termination removes data and who tracks charges for preserved volumes.
Enable default EBS encryption when appropriate, and verify that operators and recovery staff have the required KMS key permissions.
Set a snapshot schedule and retention policy; test a recovery procedure that accounts for database consistency, recovery time, and target AZ.
Use CloudWatch metrics and volume status to distinguish a volume bottleneck from an instance or application bottleneck.
Amazon EBS is persistent block storage for EC2, suitable for operating systems and frequently updated data. Operational problems can arise if persistence is mistaken for backup, termination settings are overlooked, or application performance is judged from volume metrics alone. Choose a type for the workload’s I/O pattern and plan encryption, termination behavior, snapshots, and an actual restore as one workflow.
References
[Amazon EBS volume overview and attachment](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes.html)
[Amazon EBS volume types](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volume-types.html)
[Amazon EBS features, snapshots, and encryption](https://docs.aws.amazon.com/ebs/latest/userguide/EBSFeatures.html)
[Amazon EBS snapshots and backup responsibility](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-snapshots.html)
[Creating EBS snapshots and consistency considerations](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-creating-snapshot.html)
[Amazon EBS encryption](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html)
[Changing volume size and performance with Elastic Volumes](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-modify-volume.html)
[Initializing volumes restored from snapshots](https://docs.aws.amazon.com/ebs/latest/userguide/initalize-volume.html)