Search: in
Logical volume management
Logical volume management in Encyclopedia Encyclopedia
  Tutorials     Encyclopedia     Videos     Books     Software     DVDs  

Logical volume management

In computer storage, logical volume management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes. In particular, a volume manager can concatenate, stripe together or otherwise combine partitions into larger virtual ones that administrators can re-size or move, potentially without interrupting system use.

Volume management represents just one of many forms of storage virtualization; its implementation takes place in a layer in the device-driver stack of an OS (as opposed to within storage devices or in a network).



Linux Logical Volume Manager (LVM) v1
Linux Logical Volume Manager (LVM) v1

Most volume-manager implementations share the same basic design. They start with physical volumes (PVs), which can be either hard disks, hard disk partitions, or Logical Unit Numbers (LUNs) of an external storage device. Volume management treats PVs as sequences of chunks called physical extents (PEs). Some volume managers (such as that in HP-UX and Linux) have PEs of a uniform size; others (such as that in Veritas) have variably-sized PEs that can be split and merged at will.

Normally, PEs simply map one-to-one to logical extents (LEs). With mirroring, multiple PEs map to each LE. These PEs are drawn from a physical volume group (PVG), a set of same-sized PVs which act similarly to hard disks in a RAID1 array. PVGs are usually laid out so that they reside on different disks and/or data buses for maximum redundancy.

The system pools LEs into a volume (VG). The pooled LEs can then be concatenated together into virtual disk partitions called logical volumes or LVs. Systems can use LVs as raw block devices just like disk partitions: creating mountable file systems on them, or using them as swap storage.

Striped LVs allocate each successive LE from a different PV; depending on the size of the LE, this can improve performance on large sequential reads by bringing to bear the combined read-throughput of multiple PVs.

Administrators can grow LVs (by concatenating more LEs) or shrink them (by returning LEs to the pool). The concatenated LEs do not have to be contiguous. This allows LVs to grow without having to move already-allocated LEs. Some volume managers allow the re-sizing of LVs in either direction while online. Changing the size of the LV does not necessarily change the size of a filesystem on it; it merely changes the size of its containing space. A file system that can be resized online is recommended in that it allows the system to adjust its storage on-the-fly without interrupting applications.

PVs and LVs cannot be shared between or span different VGs (although some volume managers may allow moving them at will between VGs on the same host). This allows administrators conveniently to bring VGs online, to take them offline or to move them between host systems as a single administrative unit.

VGs can grow their storage pool by absorbing new PVs or shrink by retracting from PVs. This may involve moving already-allocated LEs out of the PV. Most volume managers can perform this movement online; if the underlying hardware is hot-pluggable this allows engineers to upgrade or replace storage without system downtime.


Some volume managers also implement snapshots by applying copy-on-write to each LE. In this scheme, the volume manager will copy the LE to a copy-on-write table just before it is written to. This preserves an old version of the LV the snapshot which systems can later reconstruct by overlaying the copy-on-write table atop the current LV. Read-write snapshots are branching snapshots because they implicitly allow diverging versions of an LV.

Snapshots can be useful for backing up self-consistent versions of volatile data like table files from a busy database, or for rolling back large changes (such as an operating system upgrade) in a single operation. Some Linux-based Live CD systems also use snapshots to simulate read-write access on a read-only compact disc.


Vendor Introduced in Volume manager Allocate anywhere[1] Snapshots RAID 0 RAID 1 RAID 5 RAID 10 Notes
IBM AIX 3.0 (1989) Logical Volume Manager [2] [3] Refers to PEs as PPs (physical partitions), and to LEs as LPs (logical partitions). Does not have a copy-on-write snapshot mechanism; creates snapshots by freezing one volume of a mirror pair.
Hewlett-Packard HP-UX 9.0 HP Logical Volume Manager
FreeBSD Vinum Volume Manager FreeBSD from version 7.0 supports ZFS volume Manager (with some limitations): ZFS - FreeBSD Wiki
NetBSD Logical Volume Manager NetBSD from version 6.0 supports ZFS volume Manager and its own re-implementation of Linux LVM. Re-implementation is based on a BSD licensed device-mapper driver and uses a port of Linux lvm tools as the userspace part of lvm. The version of ZFS included in NetBSD 6.0 is in development. There is no need to support RAID5 in LVM because of NetBSD superior Raidframe subsystem.
Linux 2.2 Logical Volume Manager
Linux 2.4 Enterprise Volume Management System
Linux 2.6 Logical Volume Manager
Silicon Graphics IRIX or Linux XVM Volume Manager
Sun Microsystems SunOS Solaris Volume Manager (was Solstice DiskSuite). Refers to PVs as volumes (which can be combined with RAID0, RAID1 or RAID5 primitives into larger volumes), to LVs as soft partitions (which are contiguous extents placeable anywhere on volumes, but which cannot span multiple volumes), and to VGs as disk sets.
Sun Microsystems Solaris 10 ZFS
Veritas[4] Cross-OS Veritas Volume Manager (VxVM) Refers to LVs as volumes, to VGs as disk groups; has variably-sized PEs called subdisks and LEs called plexes.
Microsoft Windows 2000 and later NT-based operating systems Logical Disk Manager [5] Does not have a concept of PEs or LEs; can only RAID0, RAID1, RAID5 or concatenate disk partitions into larger volumes; file systems must span whole volumes.
Windows 8 Storage Spaces[6] Higher-level logic than RAID1 and RAID5 - multiple storage spaces span multiple disks of different size, storage spaces are resilient from physical failure with either mirroring (at least 2 disks) or striped parity (at least 3 disks), disk management and data recovery is fully automatic
Apple Mac OS X Lion Core Storage [7] Currently, it is only used in Lion's implementation of FileVault, in order to allow for full disk encryption.
Snapshots are handled by Time Machine; Software-based RAID is provided by AppleRAID. Both are separate from Core Storage.


  • The levels of indirection that volume managers introduce can complicate the boot process and make disaster recovery difficult, especially when the base operating-system and other essential tools are themselves on an LV.
  • Logical volumes can suffer from external fragmentation when the underlying storage devices do not allocate their PEs contiguously. This can reduce I/O performance on slow-seeking media (such as magnetic disks), which have to seek over the gaps between extents during large sequential reads or writes. Volume managers which use fixed-size PEs, however, typically make PEs relatively large (a default of 4 MB on the Linux LVM, for example) in order to amortize the cost of these seeks.



  • .
  • .
  • .
  • .
  • .
  • .
  • .

External links

cs:Logical Volume Management de:Logical Volume Manager fr:Gestion par volumes logiques it:Gestore logico dei volumi he:Logical volume management ja: pl:LVM ru:LVM simple:Logical volume management fi:Looginen taltiohallinta uk: zh:

Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article

Search for Logical volume management in Tutorials
Search for Logical volume management in Encyclopedia
Search for Logical volume management in Videos
Search for Logical volume management in Books
Search for Logical volume management in Software
Search for Logical volume management in DVDs
Search for Logical volume management in Store


Logical volume management in Encyclopedia
Logical_volume_management top Logical_volume_management

Home - Add TutorGig to Your Site - Disclaimer

©2011-2013 All Rights Reserved. Privacy Statement