Extend Linux Lvm(Short)

Mon, Jun 20, 2022 One-minute read

How to extend a Linux LVM

  1. Add more disk space to the VM

  2. Show info about the Volume Group and the Logical Volume

    sudo vgdisplay -v
    

    vgdisplay verbose

  3. Extend the volume by 10GB

    sudo lvextend -L+10G /dev/ubuntu-vg/ubuntu-lv
    

    Where the L+10G is the size in GB to increase the volume with

  4. Resize the Logical Volume

    sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
    

    resize2fs asd

  5. Done!