How to Create Elastic Block Storage(EBS) Volume on AWS
To Create Elastic Block Storage(EBS) Volume on AWS
Introduction:
The EBS is the Elastic Block Storage. The main purpose of EBS is Data Resistance. If you creating one EC2 Instance using Block storage and if you reboot or start/stop your EC2 machine, then data from EC2 machines will not be lost. We can use minimum storage of 1 GiB to 16 TiB. If you creating one EC2 machine using Instance Storage and if you reboot or start/stop your EC2 machine, then data from EC2 machines will be lost. This tutorial will cover creating EBS volume on AWS.
Types of EBS Volume:
General Purpose(SSD): It’s used for General purpose usage without specific requirements.
Provisioned IOPS(SSD): When you required really fast input and Outputs you can choose this.
Throughput Optimized (HDD): Magnetic drive optimized for quick throughput.
Cold HDD: Lowest cost HDD volumes for frequently access workloads.
Now we will create the EBS volumes on AWS.
First Open AWS console, This the console of AWS and click sign to enter your Account.
The instance is launch now click the view instance to view the instances
Here GIT is mandatory for take control of the instance using SSH
Here I will take control of the instance by using following command
ssh -I LinuxEBSdem.pem ec2-user@13.237.251.17
[ec2-user@ip-172-31-43-41 ~]$ lsblk
[ec2-user@ip-172-31-43-41 ~]$ sudo mkfs.ext4 /dev/svdb
[ec2-user@ip-172-31-43-41 ~]$ mkdir demo
[ec2-user@ip-172-31-43-41 ~]$ sudo touch test.txt
[ec2-user@ip-172-31-43-41 ~]$ sudo vim test.txt
[ec2-user@ip-172-31-43-41 ~]$ sudo mount /dev/svdb demo/
[ec2-user@ip-172-31-43-41 ~]$ lsblk
[ec2-user@ip-172-31-43-41 ~]$ sudo umount demo/
Now I will show how to attach the existing volume to the instance machine for that select the volume and click action bar and click attach volume option and select the instance name and select the device name here I am select the device name is xvdd and click attach
[ec2-user@ip-172-31-43-41 ~]$ lsblk