Elastic Block Store - EBS:
--------------------------
--> EBS is a block based storage, Which supports perating system installation,
Software installation & Data storage
Types of Storages:
------------------
EBS offers the below types of storage
1. Solid State Drive - SSD
2. Hard Disk Drive - HDD
3. Previous Generation
--> In SSD type of storage the dominant performance is IOPS - Input & Output
operations per second
--> In HDD (Magentic) type of storage the dominant perfomance is Throughput MB/s
--> In EBS the storage disk is called as Volume
a. root Volume --> is the volume in which we install the OS
b. EBS Volume --> all additional drives/volumes are called EBS
volumes
--> There are different types of EBS volumes available which provide different
performance charactersitics for our usecase.
Types of EBS volumes:
---------------------
1. General Purpose SSD
- gp2
- gp3
2. Provisioned IOPS SSD
- io1
- io2
3. Throughput optimised HDD - st1
4. Cold HDD - sc1
5. Magentic - standard
Note:
--> EBS Volume scan be attached to single EC2 instance at a time.
--> EBS volumes can be attached to the EC2 instances in the same availability Zone.
General Purpose SSD - gp2:
--------------------------
1. Create an EBS volume with 1GB of gp2 type in us-east-1a AZ with a tag "1gb-gp2-
1a"
Durability : 99.8% - 99.9%
Min Size : 1 GB
Max Size : 16 TB
IOPS : Not customized
Max IOPS : upto 16000 IOPS
IOPS Ratio : [ 1:3, GB:IOPS] with min of 100
IOPS
Throughput : Not Applicable, upto 250Mb/s
Multi-Attach : Not Supported
Boot Volume : Yes
Free-Tier eligible : Yes, upto 30GB per month
general Purpose SSD - gp3:
--------------------------
2. Create an EBS volume with 2Gb of gp3 type in us-east-1b AZ with a tag "2gb-gp3-
1b"
Durability : 99.8% - 99.9%
Min Size : 1 GB
Max Size : 16 TB
IOPS : customizable
Max IOPS : 16000
IOPS Ratio : Upto [1:500, GB:IOPS], min of 3000
IOPS
Throughput : between 125MB/s -- 1000MB/s
Multi-Attach : Not Supported
Boot Volume : Yes
Free-Tier eligible : Yes, upto 30GB per month
Provisioned IOPS SSD - io1:
---------------------------
3. Create an EBS volume with 4Gb of io1 type in us-east-1c AZ with a tag "4gb-io1-
1c"
Durability : 99.8% - 99.9%
Min Size : 4 GB
Max Size : 16 TB
IOPS : Can be customized
Max IOPS : 64000
IOPS Ratio : upto [1:50, GB:IOPS], min of 100
IOPS
Throughput : Not Applicable, upto 1000 MB/s
Multi-Attach : Yes, conditions apply
Boot Volume : Yes
Free-Tier eligible : NO
Note: Volumes with greater than 32000 IOPS must be attached to a Nitro based
instance to achieve provisioned performance
Nitro Based Instance :
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-
instances
--> Multi-attach feature works with Nitro Systems only
Provisioned IOPS SSD - io2:
---------------------------
4. Create EBS volume of 5GB of io2 type in us-east-1a AZ with a tag "5gb-io2-1a"
Durability : 99.999%
Min Size : 4 GB
Max Size : 64 TB
IOPS : Can be customized
Max IOPS : 256000 IOPS
IOPS Ratio : upto [1:1000, GB:IOPS], min of 100
IOPS
Throughput : Not Applicable, upto 4000 MB/s
Multi-Attach : Yes, Supported
Boot Volume : Yes
Free-Tier eligible : NO
Note: Provisioned IOPS SSD (io2) volumes with a size greater than 16 TiB, IOPS
greater than 64,000, or IOPS:GiB ratio greater than 500:1 are supported only with
instance types that support io2 Block Express.
io2 Block Express volumes are supported with C6in, C7g, M6in, M6idn, R5b, R6in,
R6idn, Trn1, X2idn, and X2iedn instances.
Throughput Optimized HDD - st1:
-------------------------------
5. Create an EBS volume with 125GB of st1 type in us-east-1b AZ with a tag of
"125gb-st1-1b"
usecase: BigData, Log Processing
Durability : 99.8% - 99.9%
Min Size : 125 GB
Max Size : 16 TB
IOPS : Not Applicable, upto 500
IOPS
Throughput : Cannot be customized
Max Throughput : 500 MB/s
Throughput Ratio : [40:1, MB/s:TB], min of 5 MB/s
Multi-Attach : Not supported
Boot Volume : NO
Free-Tier eligible : NO
Cold HDD - sc1:
---------------
6. Create an EBS volume with 150GB of sc1 type in us-east-1c AZ with a tag of
"150gb-sc1-1c"
usecase: to maintain Infrequently accessed Data
Durability : 99.8% - 99.9%
Min Size : 125 GB
Max Size : 16 TB
IOPS : Not APplicable, upto 250
IOPS
Throughput : Not customizable
Max Throughput : 250 MB/s
Throughput Ratio : [12:1, MB/s:TB], min of 2 MB/s
Multi-Attach : Not Supported
Boot Volume : NO
Free-Tier eligible : NO
Magnetic-Standard:
------------------
--> Previous generation type of storage, which is not recommended.
7. Create EBS volume with 3GB size of Magentic type in us-east-1e AZ with a tag
"3gb-std-1e"
Min Size : 1 GB
Max Size : 1 TB
ThroughPut : Not Applicable, upto 40–90 MB/s
IOPS : Not Applicable, upto 40–200 IOPS
Multi-Attach : Not supported
Boot Volume : Yes
Free-Tier ELigible: Yes, upto 30GB per month
8. Create 3 EC2 instances as per the below requirement (Windows 2019)
SERVER1-A --> us-east-1a
SERVER2-B --> us-east-1b
SERVER3-A --> us-east-1a
9. Attach the EBS volume of 1GB "1gb-gp2-1a" to the EC2 instance "SERVER1-A"
Note: All new EBS volumes are conected as Offline Disks to the EC2 instances,
without a filesystem on the EBS volumes.
10. Login to the Server1-A EC2 instance and perform the below actions to use the
newly attached EBS volume.
a) Make the 1GB Volume ONline & Initialize
b) Create a file system with 1GB storage space
diskmgmt.msc --> to open the diskmanagement console
11. Create 5 files in 1GB drive from Server1-A
12. Keeping the "1gb-gp2-1a" volume attached to the SERVER1-A, attach another EBS
Volume "5gb-io2-1A"
a) Make the 5GB Volume ONline & Initialize
b) Create a file system with 1GB storage space
13. Detach the "1gb-gp2-1a" Volume from the SERVER1-A & Attach it to "SERVER3-A"
14. Login to "Server3-A" & perform the below steps
a) Make the 1GB drive Online.