Increase LVM space in VirtualBox

Problem Definition

Getting out of disk space error on your VirtualBox VM where your guest Linux OS is using LVM with Dynamic disk allocation, and you are wondering why this error when available space is 30 GB and used space is only 4 GB.


  • Login to your vm and run ‘df -h’
    if your output is nearby –>

    then run below 2 steps
  • sudo lvextend -L +2G /dev/mapper/ubuntu--vg-ubuntu--lv
  • sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
    df -h