What is lvm in linux
Last updated: April 1, 2026
Key Facts
- LVM sits between physical disks and filesystems, providing abstraction layer
- Uses three-tier hierarchy: Physical Volumes (PV), Volume Groups (VG), and Logical Volumes (LV)
- Allows online resizing of logical volumes without unmounting filesystems
- Supports snapshots for backups and testing without duplicating data
- Essential for enterprise servers and complex storage configurations
What is LVM?
LVM (Logical Volume Manager) is a device mapper framework in Linux that provides a layer of abstraction between your physical storage devices and the filesystems that use them. Instead of directly partitioning disks, LVM allows you to create logical volumes that can span multiple physical drives and be resized dynamically.
How LVM Works
LVM operates through three layers: Physical Volumes (PV) are actual hard drives or partitions, Volume Groups (VG) combine multiple physical volumes into pools, and Logical Volumes (LV) are virtual partitions created from volume groups. This three-tier system provides unprecedented flexibility in storage management.
Key Advantages
- Resize logical volumes on-the-fly without downtime or unmounting
- Add new physical disks and expand existing volumes seamlessly
- Create snapshots for backups while the system continues running
- Manage storage across multiple physical drives as single entity
- Migrate data between drives without stopping applications
LVM Components
The lvm2 package in Linux distributions provides all necessary tools. Key commands include pvcreate for creating physical volumes, vgcreate for volume groups, and lvcreate for logical volumes. The lvresize and lvextend commands manage volume sizes after creation.
Common Use Cases
LVM is widely used in server environments where storage needs grow unpredictably, in virtualization platforms like KVM and Xen, and in enterprise data centers where uptime is critical. Desktop users benefit from LVM when they need flexible storage without repartitioning.
Related Questions
How do I create an LVM partition in Linux?
Create a physical volume with pvcreate, create a volume group with vgcreate, then create a logical volume with lvcreate. Format the logical volume and mount it like any regular partition.
What are the advantages of LVM over traditional partitioning?
LVM allows dynamic resizing without data loss, spans multiple drives, supports snapshots, and provides better storage flexibility. Traditional partitioning requires unmounting and repartitioning to resize.
Can I use LVM with my existing Linux installation?
You can convert existing partitions to LVM, but it typically requires backing up data first. Many distributions offer LVM during initial installation as an easier option.
More What Is in Daily Life
Also in Daily Life
More "What Is" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- Logical Volume Manager - WikipediaCC-BY-SA-4.0
- LVM Man PageOpen Source
- Linux Kernel Device Mapper DocumentationGPL-2.0