Linux LVM Management with GUI: A Sysadmin Guide

Managing LVM Drives with a Graphical User Interface
Previously, we explored LVM utilization through command-line operations. However, users may prefer a more visually intuitive approach. This article details how to administer LVM drives using a graphical user interface (GUI).
Leveraging GUI Tools for LVM Administration
While the command line offers powerful control, a GUI can simplify complex tasks. Several tools are available for managing Logical Volume Management with a point-and-click interface.
These tools abstract the underlying commands, making LVM accessible to a wider range of users. They often provide a clearer representation of your storage configuration.
Benefits of Using a GUI
- Ease of Use: Graphical interfaces are generally more approachable for beginners.
- Visualization: GUIs often display a visual map of your volumes and groups.
- Reduced Errors: The interface can help prevent typos and incorrect commands.
HowTo Geek provides a comprehensive guide to utilizing these GUI-based solutions for LVM management. It offers step-by-step instructions for performing common operations.
The article, illustrated with an image by marfis, demonstrates how to achieve the same functionality as command-line tools, but within a more user-friendly environment.
Ultimately, the choice between command-line and GUI depends on individual preference and technical expertise. Both methods are effective for managing logical volumes.
Understanding LVM Administration with Graphical Tools
The Logical Volume Manager, or LVM, has been previously discussed on HTG, along with the benefits of its implementation. Given LVM’s increasing prevalence, particularly with major distributions like CentOS and Ubuntu now defaulting to LVM installations – notably Ubuntu 12.10 – encountering it is becoming more common.
Consequently, you may find yourself needing to administer an LVM setup, perhaps to expand the capacity of a volume. A user-friendly graphical interface can significantly simplify this process.
Why Use a Graphical Interface for LVM?
Administrating LVM through the command line is powerful, but can be complex. A graphical tool offers a more intuitive way to visualize and manage your storage configuration.
This is especially helpful for tasks like creating, resizing, and deleting logical volumes, as well as managing physical volumes and volume groups.
Benefits of a GUI
- Simplified Management: Easier to understand and interact with LVM components.
- Reduced Errors: Visual representation minimizes the risk of misconfiguration.
- Increased Efficiency: Faster completion of common LVM tasks.
With the growing adoption of LVM, having a convenient graphical interface for its administration is becoming increasingly valuable.
Installing a Graphical LVM Tool
Several graphical tools are available for managing LVM. The specific installation process will vary depending on your Linux distribution.
However, many distributions offer LVM management tools within their system settings or package managers. Exploring your distribution’s documentation will provide specific instructions.
Once installed, the graphical tool will provide a visual representation of your LVM setup, allowing you to easily perform administrative tasks.
Conclusion
As LVM becomes a standard component of many Linux distributions, familiarity with its administration is essential. Utilizing a graphical interface can greatly enhance the management experience.
By leveraging these tools, you can efficiently and effectively manage your storage resources, ensuring optimal performance and scalability.
Installing the LVM GUI Utility
The tool utilized for this process is "system-config-lvm" originating from Red Hat. Having been repackaged for Ubuntu, the primary distinction lies in the installation procedure.
CentOS Installation
Installation of the package can be accomplished via the command-line interface (CLI) by executing the following command in a terminal:
yum install system-config-lvm
Following installation, the utility can be launched with administrative privileges by typing its name preceded by 'sudo':
sudo system-config-lvm
Alternatively, the package can be installed through the graphical package manager. Navigate to "System" -> "Administration" -> "Add/Remove Software" to begin.

Utilize the filter box to search for "LVM", locating the "system-config-lvm" utility at the bottom of the results.

Select the corresponding checkbox and proceed through the installation prompts ("Next -> Next -> Finish") to accept the installation and its dependencies. Upon completion (this applies to both CLI and GUI methods), the program will be accessible under "System" -> "Administration" -> "Logical Volume Management".

Click the icon to launch the program. At this juncture, you may proceed to the "Using" section below.
Ubuntu Installation
Recent Ubuntu versions (12.10 at the time of writing) include LVM as a core component. This is advantageous, as older releases required installing approximately 180MB of additional LVM components alongside the "system-config-lvm" utility. This increased the time needed for use cases involving live CDs. Furthermore, a manual command was previously necessary to ensure full functionality, specifically filesystem resizing.
Open the "Ubuntu Software Center" and search for "LVM".

Select the "Logical Volume Management" entry and then click "More Info".

As the LVM utility originates from the Linux "Universe" repository, you must first enable this repository by clicking "Use This Source". Allow the package manager to update (this may take some time) before proceeding with the installation. Then, click "Install".

If you are using a version of Ubuntu prior to 12.10, you will need to execute the following command in a shell to enable the utility’s filesystem resizing capability:
vgchange -ay
The program can then be launched by clicking its icon.
Leveraging a Graphical Interface for LVM Management
If you have consulted our guide on "What is Logical Volume Management and How Do You Enable It in Ubuntu?", you likely observed that all LVM configuration was performed via the command line. This program offers an alternative, allowing you to accomplish all setup tasks required to create an LVM from the ground up using a graphical user interface.
For demonstration purposes, we will focus on a common scenario: expanding the available disk space for an existing volume, rather than a complete LVM setup.
Additional space for a volume can originate from various sources. Perhaps a hard drive has been physically added to the system, or the disk allocated to a virtual machine has been increased. Regardless of the source, the process of incorporating this space into a volume remains largely consistent.
- Initialize the newly available space for LVM utilization.
- Incorporate the new space into the Physical Volume (PV).
- Allocate the new space within the PV to the Logical Volume (LV).
- Enlarge the size of a specific Logical Volume.
- Extend the filesystem residing on the LV.
Preparing the New Space
In this instance, we will simulate the addition of a new hard drive to the system and prepare it for LVM usage.
Within the interface, expand the "Uninitialized Entities" tree menu. Locate the new space – in our case, "/dev/sdb" – and select it.

After selection, click the "Initialize Entity" button.

Confirm your understanding that all data on the disk will be erased by clicking "Yes".
It's important to note that, for simplicity, we have not partitioned the disk in this example. However, the program advises partitioning for optimal results.
Adding the New Space to the Physical Volume
With the new space initialized, it can now be added to an existing Volume Group.

Clicking "Add to existing Volume Group" will display a list of detected groups on the system. In our example, we are adding to the Volume Group used by Ubuntu during installation with the LVM option enabled, which was named "Ubuntu" by the installer.

Select the desired Volume Group, if it isn't already selected, and click "Add".
Allocating the New Space to the Logical Volume
After adding the new space to the PV, you will observe the "Unused Space" as part of the Logical Volume Group, as illustrated below.

Increasing the Logical Volume Size
To utilize the new space within a Logical Volume, expand the "Logical View" tree menu and select the volume you intend to enlarge. In our case, we will modify the "root" volume.

Once the Logical Volume is selected, click "Edit Properties".

The "Edit Logical Volume" window provides options to adjust the volume size using a slider or the "Use remaining" button.
Expanding the Filesystem on the Logical Volume
If the system fully supports LVM, as is the case with CentOS and Ubuntu 12.10, clicking "OK" will also automatically increase the size of the filesystem residing within the Logical Volume. This is a convenient feature.
The intention of this guide is to transform what was once a complex and daunting procedure into a straightforward and manageable task.
While a command line interface excels in reproducibility, a graphical interface enhances understanding and usability. (Aviad Raviv 2009)