Did you know that you can navigate the posts by swiping left and right?

Using gparted to resize extended or LVM partition

13 Mar 2017 . category: sysadmin . Comments
#sysadmin #gparted #LVM

In this post, I will show you how to use gparted to resize extended or LVM partition. Be a sysadmins, we have a lot of troubles relate to manage disk on linux. To make it easy, I often use Gparted which is a free partition editor for graphically managing your disk partitions.

First of all, we have to download gparted then insert and make first boot on CD. Below is an example, we are running out partition /dev/sda2 and want to extend unallocated volumn

Resize LVM partition


  1. Right click both /dev/sda2 and /dev/sda5 and choose “Deactivate”
  2. Resize the extended (/dev/sda2) partition
  3. Resize the LVM (/dev/sda5) partition
  4. Run below commands to expand LVM to all remaining free space:

lvextend –l +100%FREE [MOUNTPOINT]

then expand filesystem


sudo resize2fs [MOUNTPOINT]

Thanks


Me

Harry Nguyen is an awesome person. Abosolutely true!.