Category Archives: instalasi

resize the root LVM partition of Ubuntu

1. Memeriksa pemakaian partisi

lsblk --fs
fdisk -l
fdisk /dev/sda

2. Memeriksa Volume Group

vgs

3. Meningkatkan LVM

$ lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

The -l +100%FREE option tells lvextend to add all of the free space of the containing volume group to the logical volume.

4. Meningkatkan file system

resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

 

Sumber:

1. https://askubuntu.com/questions/1417938/ubuntu-does-not-use-full-disk-space-how-to-extend

2. https://nekodaemon.com/2022/02/26/How-to-resize-the-root-LVM-partition-of-Ubuntu/