How to increase root volume in AWS

EBS stands for elastic block storage and it is called persistence storage. Its a type of storage which is directly attached to EC2 Instance permanently .

In this blog, we are going to increase root volume size of centos. Lets get started

Step 1:- Login to Aws Management Console and navigate to Elastic Block storage on left and then click on the volume

Step 2:- Now click on Action and modify

Click on “Modify

As you check the size increased

Step 3:- Now login to Ec2 Instance

with the below command extend the volume size

sudo growpart /dev/xvda 1
sudo resize2fs /dev/xvda1

Again Check the size

 df -h

Congratulations…. you follow all the steps and increased EBS volume.