Expanding the ubuntu-lv Logical Volume in ubuntu-vg on Ubuntu
LVM (Logical Volume Manager) is a core component in Linux for flexible disk space management. In Ubuntu, LVM is integrated into the default installation, enabling dynamic resizing, creation, or deletion of logical volumes without reformatting physical disks. It also enhances data resilience—spreading data across multiple physical drives reduces risks from single - drive failures, and snapshot capabilities let you backup data before modifications.
To expand the ubuntu - lv logical volume (under ubuntu - vg), follow these steps:
-
Check LVM Volume Details Use
lvdisplayto view current logical volume configurations:sudo lvdisplay -
Extend the Logical Volume The
lvextendcommand resizes the logical volume. The-rflag auto - resizes the filesystem, and-l +100%FREEuses all remaining free space:sudo lvextend -r -l +100%FREE /dev/ubuntu - vg/ubuntu - lv -
Verify the New Size After expansion, confirm the updated size with:
sudo lvdisplay /dev/ubuntu - vg/ubuntu - lvLook for the
LV SizeandLV Namefields to ensure the resize succeeded.
The process duration depends on the volume size and hardware performance. Once complete, /dev/ubuntu - vg/ubuntu - lv will use all available free space.