Logical Volume Management, or LVM, is a technology for managing storage devices that gives users the ability to aggregate and abstract the physical configuration of individual storage devices for simpler and more adaptable administration. The current iteration, LVM2, can be used to group existing storage devices into groups and allocate logical units from the combined space as necessary using the device mapper Linux kernel framework. We mentioned below are the ways to Extend Logical Volumes on Ubuntu Server.

Ways to Extend Logical Volumes on Ubuntu Server

Collect information about current LVM settings and names

In keeping with the example we used above, we must take note of the following crucial details: The “ubuntu-vg” Volume Group on our server contains the “ubuntu-lv” Logical Volume. With this knowledge, we can move forward with expanding our disk.

Create new Physical Volume (PV)

You must attach/insert the new disc whether your Ubuntu 20.04 installation is on a dedicated server made of bare metal or a virtual machine. Once you’ve done that, we need to configure it within the LVM file system that already exists.

Add the new Physical Volume (PV) to our Existing Logical Volume (LV)

We won’t upgrade our current logical volume by adding our new PV (/dev/vdb). We have noted “ubuntu-lv” as the logical volume name and “ubuntu-vg” as the volume group name from the first commands in this tutorial.

Final Words

So here we conclude our article on how to Extend Logical Volumes on Ubuntu Server. IT engineers have long struggled with maintaining disc partitions and running out of disc space. Fortunately, Linux makes an effort to address this issue utilizing logical volumes. Logical volumes are the default way to manage your server’s disc space on Ubuntu Server. Unfortunately, not all of the disc space is utilized when using these volumes, leaving you to wonder where the rest of your disc space went.

How to Extend Logical Volumes on Ubuntu Server - 85How to Extend Logical Volumes on Ubuntu Server - 38How to Extend Logical Volumes on Ubuntu Server - 12How to Extend Logical Volumes on Ubuntu Server - 44