DevOps | Cloud | Amazon EBS | Live Volume Modifications
Today we will be showing here the new feature and its details about Amazon EBS Volume resizing with live modification features. This is a completely new feature to extend the EBS volume with changes. You will be going to see EBS Volume size extending using with a graphical user interface and also AWSCLI. Check the below Video for more details.
Amazon Elastic Block Store (Amazon EBS) Live Volume Modifications
Amazon (AWS) recently announced “EBS Live Volume Modifications with Elastic Volumes”, with this new feature its quite easy to change the volume types, size. The old way we followed was NOT online. i.e. “Detach Volume -> take Snapshot -> Create new Volume with required Type/Size -> Attach new Volume” was time consuming.
Benefits of EBS Live Volume Modifications
o Online Process.
o Quite easy, few clicks if using AWS Management Console or 02 commands if using AWS CLI.
Limitations of EBS Live Volume Modifications
o Volume size can be only increased, not reduced.
Volume Modification States “Modifying -> Optimizing -> Completed”
Steps :
Using AWS Management Console
o Select the EBS volume to want to modify.
o Click on Actions
o Click Modify Volume.
o Select new Volume Type, Size, and IOPS (if applicable).
o Click Modify.
Using AWS CLI
“modify-volume” command is available awscli version 1.11.48 onwards. So if an awscli version is old, need to upgrade it first.
To Upgrade the awscli version you can do with below command:
# pip install –upgrade awscli
Now Increase the EBS Volume size using with the below command.
# aws ec2 modify-volume –volume-id “volume-id” –size <value> –volume-type <value> –iops <value>
Note – Iops are only applicable for “io1” volume.
Now, a user can resize the filesystems inside the Operating System. using with the below commands
PV Resizing with the below command:
# pvresize “PV-Name” Ex: pvresize /dev/xvdb
For LV Resizing you can use this command:
# lvresize -l +100%FREE “LV-Name” Ex: lvresize -l +100%FREE /dev/mapper/ebsvg–ebslv