Amazon EBS provides highly available, reliable, durable, block-level storage volumes that can be attached to a running instance
EBS as a primary storage device is recommended for data that requires frequent and granular updates for e.g. running a database or filesystems
An EBS volume behaves like a raw, unformatted, external block device that can be attached to a single EC2 instance at a time
EBS volume persists independently from the running life of an instance.
An EBS volume can be attached to any instance within the same Availability Zone, and can be used like any other physical hard drive
2. Mahesh TR
• Amazon EBS provides highly available, reliable, durable, block-level storage volumes
that can be attached to a running instance
• EBS as a primary storage device is recommended for data that requires frequent and
granular updates for e.g. running a database or filesystems
• An EBS volume behaves like a raw, unformatted, external block device that can be
attached to a single EC2 instance at a time
• EBS volume persists independently from the running life of an instance.
• An EBS volume can be attached to any instance within the same Availability Zone,
and can be used like any other physical hard drive.
EBS Overview
3. Mahesh TR
• EBS volumes allows encryption using the Amazon EBS encryption feature. All data stored at rest, disk I/O,
and snapshots created from the volume are encrypted.
• EBS volumes can be backed up by creating a snapshot of the volume, which is stored in Amazon S3. EBS
volumes can be created from a snapshot can be attached to an another instance within the same region
• EBS volumes are created in a specific Availability Zone, and can then be attached to any instances in that
same Availability Zone. To make a volume available outside of the Availability Zone, create a snapshot and
restore that snapshot to a new volume anywhere in that region
• Snapshots can also be copied to other regions and then restored to new volumes, making it easier to
leverage multiple AWS regions for geographical expansion, data center migration, and disaster recovery.
EBS Overview
4. Mahesh TR
Elastic Block Storage (EBS)
•AWS EBS Volume Types
• AWS provides the following EBS volume types, which differ in performance
characteristics and price which can be tailored for storage performance and cost to the
needs of the applications:
• General Purpose SSD Volumes (gp2)
• Provisioned IOPS SSD Volumes (io1)
• Magnetic Volumes (standard)
7. Mahesh TR
Elastic Block Storage (EBS)
•General Purpose SSD Volumes (gp2)
• General Purpose SSD volumes offer cost-effective storage that is ideal for a broad range
of workloads.
• General Purpose SSD volumes deliver single-digit millisecond latencies
• General Purpose SSD volumes can range in size from 1 GiB to 16 TiB.
• GP2 provides a baseline performance of 3 IOPS/GiB
8. Mahesh TR
Provisioned IOPS SSD Volumes
• Provisioned IOPS SSD volumes are designed to meet the needs of I/O intensive workloads, particularly
database workloads, that are sensitive to storage performance and consistency in random access I/O
throughput.
• Provisioned IOPS SSD volume can range in size from 4 GiB to 16 TiB
• Provisioned IOPS SSD volume can be provision up to 20,000 IOPS per volume. The ratio of IOPS provisioned
to the volume size requested can be a maximum of 30; for example, a volume with 3,000 IOPS must be at
least 100 GiB.
• Provisioned IOPS SSD volumes can be striped together in a RAID configuration for larger size and greater
performance over 20000 IOPS
9. Mahesh TR
Magnetic Volumes (standard)
• Magnetic volumes provide the lowest cost per gigabyte of all EBS volume types. Magnetic volumes are backed by
magnetic drives and are ideal for workloads performing sequential reads, workloads where data is accessed
infrequently, and scenarios where the lowest storage cost is important.
• Magnetic volumes can range in size from1 GiB to 1 TiB
• These volumes deliver approximately 100 IOPS on average, with burst capability of up to hundreds of IOPS
• Magnetic volumes can be striped together in a RAID configuration for larger size and greater performance.
10. Mahesh TR
EBS volume Creation, deletion, detachment
• EBS volume can be created either
• Creating New volumes
• Restore volume from Snapshots
• EBS volume deletion would wipe out its data and the volume can’t be attached to any
instance. However, it can be backed up before deletion using EBS snapshots
• EBS volumes can be detached from an instance explicitly or by terminating the instance
• EBS root volumes can be detached by stopping the instance
11. Mahesh TR
• EBS provides the ability to create snapshots (backups) of any EBS volume and write a copy of the data in the
volume to Amazon S3, where it is stored redundantly in multiple Availability Zones
• Snapshots can be used to create new volumes, increase the size of the volumes or replicate data across
Availability Zones
• Snapshots can be created from EBS volumes periodically and are point-in-time snapshots.
• Snapshots are incremental and only store the blocks on the device that changed since the last snapshot was
taken
• When a snapshot is deleted only the data exclusive to that snapshot is removed.
• Deleting previous snapshots of a volume do not affect your ability to restore volumes from later snapshots
of that volume.
EBS Snapshot Creation & Deletion
12. Mahesh TR
Benefits
• Data Availability
• EBS volume is automatically replicated in an Availability Zone to prevent data loss due to failure
of any single hardware component.
• Data Persistence
• EBS volume persists independently of the running life of an EC2 instance
• EBS volume persists when an instance is stopped and started or rebooted
• Root EBS volume is deleted, by default, on Instance termination but can be modified by changing
the DeleteOnTermination flag
• Data Encryption
• EBS volumes can be encrypted by EBS encryption feature