How to extend EC2 root partition in LVM

In this tutorial, I am using the CentOS 6 (but also applicable on other Linux distro) that has ext4 partition lv_rootmounted as / and lv_swap as swap from the volume group VolGroup (which is default), we pretend that we are running out of space in lv_root(/) and volume group (VolGroup) doesn’t have any free space. We added a new volume with 150 GB space. Now, we need to assign this 150 GB space to volume group and then extend lv_root(/). Continue reading “How to extend EC2 root partition in LVM”