In plain English, Amazon Elastic Block Store (EBS) is a Virtual Hard drive. Ā It provides persistent storage by maintaining HA-High availability and FT-Fault Tolerance.
We can multipleĀ Amazon Elastic Block Store volumes to single instance but we can not attache singleĀ Amazon Elastic Block Store volume to more than one instance.
In this tutorial, we will create Amazon Elastic Block Store(EBS) Volume, attach it to Amazon Instance.
Go to aws.amazon.com
Ā Click on My Account, and select AWS Management Console from the drop down menu.
Ā Sign in with AWS credentials.
Ā
Ā AWS Management Console, Click on EC2 in Compute Section.
Click on the Volumes Link as shown in below screenshot.
Verify the state of an existing Volume. To create a new volume, click on Create Volume.
It will open a small dialogue box where you need to enter following values:
General Purpose (SSD) volumes that has capability to burst to 3000 IOPS per volumewith baseline of 3 IOPS/GiB. It delivers up to 20000 IOPS
Size of the EBS volume (GiB)- 1 GiB to 1 TB
Number of I/O operations per second that the volume can support. .
Provisioned IOPS (SSD) volumes – up to 30 IOPS per GiB
General Purpose (SSD) volumes – under 1000 GiB, 3 IOPS per GiB with bursts up to 3000 IOPS.
General Purpose (SSD) volumes – above 1000 GiB, 3 per GiB up to 10000 IOPS
Availability Zone where we want to create the EBS volume. The volume can be attached to amazon instances in the same Availability Zone.
Snapshot for Backup and to create a new volume
Provide relevant values and click on Create. Verify the “Creating” state.
Wait till the state of newly created volume becomes “Available” in the AWS Management Console.
Ā Select the newly created volume and click on Action. Click on Attach Volume in AWS Management Console.
Ā Select the Instance.
Ā
Ā
Click on the Attach.
Now, we have successfully attached a newly created volume to Amazon Instance.
Ā
Next question should be, how to dettach Volume from the EC2 instance?
Ā
Simple… Select the instance and click on Actions. Click on Detach Volume.
Ā
It will open a dialogue box. Click on Yes Detach.
Verify the Volume after couple of minutes. It will be in Available state.
Ā
How to take a snapshot of a Amazon Elastic Block Store(EBS) Volume?
Ā
Select a Volume and click on Actions. Click on Create Snapshot. Provide Name and Description and click on Create.
It will give Notification of Snapshot creation. Click on Close.Ā
Ā
Verify the status of newly created Snapshot.
Verify the Snapshot created in the Snapshot Section.
Ā
Done!