Logical volume management
Logical volume management (LVM) is block-level storage virtualization that pools physical disks into flexible logical volumes, enabling online resizing, snapshots, striping, mirroring and easier storage administration.
Logical volume management (LVM) is a method of abstracting and allocating block storage so that administrators work with flexible logical units rather than fixed disk partitions. By grouping physical storage devices into pooled resources, LVM lets systems create, resize, combine and move logical volumes without the rigid constraints of traditional partitioning. This makes it easier to respond to changing storage needs, support hot expansion, and implement snapshot-based backups.
Core concepts and components
Most LVM implementations use a small set of layered objects:
- Physical volumes (PVs) — the actual disks or partitions that provide raw space.
- Volume groups (VGs) — pools of physical space assembled from one or more PVs.
- Logical volumes (LVs) — block devices carved from a VG that are presented to filesystems or virtual machines.
- Allocation units (extents), metadata, and optional technologies such as thin provisioning, snapshots, striping and mirroring.
History and development
The idea of separating logical storage from physical disks dates back to commercial volume managers used in enterprise Unix systems. Over time, open-source projects implemented similar facilities; modern Linux LVM (often called LVM2) and other systems like Windows Dynamic Disks or Storage Spaces follow the same general model. Feature sets have expanded to include thin provisioning, copy-on-write snapshots and integration with RAID or caching layers.
Uses and advantages
LVM is widely used for server and workstation storage because it supports:
- Online resizing of volumes and filesystems, enabling growth without downtime.
- Combining multiple physical devices into a single logical device to simplify management.
- Snapshots for consistent backups and testing.
- Performance and redundancy schemes through striping and mirroring when combined with RAID.
Limitations and important distinctions
While powerful, LVM is not a replacement for backups and carries trade-offs: it adds metadata that must be managed and can complicate recovery after disk failure. LVM operates at the block device layer, unlike filesystem-level tools; it can be used together with hardware or software RAID, or contrasted with integrated storage systems such as ZFS that combine volume management and filesystem features.
Good practice includes keeping metadata backups, monitoring free space in volume groups, aligning allocations for performance, and combining LVM with proper backup and redundancy strategies. When used appropriately, logical volume management greatly increases flexibility and efficiency in storage administration.
Questions and answers
Q: What is logical volume management?
A: Logical volume management is a method of allocating computer storage that allows for more flexibility than traditional partitioning.
Q: Why is logical volume management more flexible than traditional partitioning?
A: Logical volume management allows for the ability to grow partitions beyond the size of one physical disk, use striping, and combine partitions while they are being used.
Q: What is the benefit of using logical volume management?
A: Logical volume management makes it easier to adapt to changing storage needs of computer users.
Q: What is the purpose of logical volume management?
A: The purpose of logical volume management is to allocate computer storage space on mass storage devices like hard drives.
Q: Is logical volume management a form of virtualisation?
A: Yes, logical volume management is a form of virtualisation.
Q: How does logical volume management differ from traditional partitioning?
A: Logical volume management allows for more flexibility in allocating computer storage, while traditional partitioning is static and unchangeable.
Q: What are some ways logical volume management can be used?
A: Logical volume management can be used to grow partitions beyond the size of one physical disk, use striping, and combine partitions while they are being used.
Related articles
Author
AlegsaOnline.com Logical volume management Leandro Alegsa
URL: https://en.alegsaonline.com/art/58868
Sources
- redbooks.ibm.com : AIX Logical Volume Manager from A to Z: Introduction and Concepts
- tldp.org : Logical Volume Manager HOWTO