Logical Volume Manager (Linux)

Logical Volume Manager (Linux)

LVM is a logical volume manager for the Linux kernel: it manages disk drives and similar mass-storage devices, in particular large ones. The term "volume" refers to a disk drive or part thereof. It was originally written in 1998 by Heinz Mauelshagen, who based its design on that of the LVM in HP-UX.

The acronym "LVM" can also refer to the Logical Volume Management available in HP-UX and IBM AIX operating Systems.

The installers for the Arch Linux, Debian GNU/Linux, Fedora, Gentoo, MontaVista Linux, openSUSE, SLED, SLES, and Ubuntu distributions are LVM-aware and can install a bootable system with a root filesystem on a logical volume.

Features

The LVM can:

* Resize volume groups online by absorbing new physical volumes (PV) or ejecting existing ones.
* Resize logical volumes (LV) online by concatenating extents onto them or truncating extents from them.
* Create read-only snapshots of logical volumes (LVM1).
* Create read-write snapshots of logical volumes (LVM2).
* Stripe whole or parts of logical volumes across multiple PVs, in a fashion similar to RAID0.
* Mirror whole or parts of logical volumes, in a fashion similar to RAID1.
* Move online logical volumes between PVs.
* Split or merge volume groups "in situ" (as long as no logical volumes span the split). This can be useful when migrating whole logical volumes to or from offline storage.

The LVM will also work in a shared-storage cluster (where disks holding the PVs are shared between multiple host computers), but requires an additional daemon to propagate state changes between cluster nodes.

LVM does not:

* Provide parity-based redundancy across LVs, as with RAID4, RAID5 or RAID6. This functionality is instead provided by Linux metadisks, which can be used as LVM physical volumes.

Implementation

LVM keeps a metadata header at the start of every physical volume, each of which is uniquely identified by a UUID. Each PV's header is a complete copy of the entire volume group's layout, including the UUIDs of all other PV, the UUIDs of all logical volumes and an allocation map of PEs to LEs. This simplifies data recovery in the event of PV loss.

In the 2.6-series Linux kernels, the LVM is implemented in terms of the device mapper, a simple block-level scheme for creating virtual block devices and mapping their contents onto other block devices. This minimizes the amount of relatively hard-to-debug kernel code needed to implement the LVM. It also allows its I/O redirection services to be shared with other volume managers (such as EVMS). Any LVM-specific code is pushed out into its user-space tools, which merely manipulate these mappings and reconstruct their state from on-disk metadata upon each invocation.

To bring a volume group online, the "vgchange" tool:

# Searches for PVs in all available block devices.
# Parses the metadata header in each PV found.
# Computes the layouts of all visible volume groups.
# Loops over each logical volume in the volume group to be brought online and:
## Checks if the logical volume to be brought online has all its PVs visible.
## Creates a new, empty device mapping.
## Maps it (with the "linear" target) onto the data areas of the PVs the logical volume belongs to.

To move an online logical volume between PVs, the "pvmove" tool:

# Creates a new, empty device mapping for the destination.
# Applies the "mirror" target to the original and destination maps. The kernel will start the mirror in "degraded" mode and begin copying data from the original to the destination to bring it into sync.
# Replaces the original mapping with the destination when the mirror comes into sync, then destroys the original. These device mapper operations take place transparently, without applications or filesystems being aware that their underlying storage is moving.

Caveats

The current implementation does not support write barriers. This means that the guarantee against filesystem corruption offered by journaled file systems like ext3 and XFS is negated under some circumstances. [citation|url = http://lwn.net/Articles/283161|title = Barriers and journaling filesystems|date = 2008-05-22|accessdate = 2008-05-28|publisher = LWN]

References

*.
* (fundamental patent).

External links

* [http://sourceware.org/lvm2/ LVM2 Resource Page]
* [http://www.debuntu.org/how-to-install-ubuntu-over-lvm-filesystem How to install Ubuntu over LVM Filesystem - debuntu.org]


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Logical Volume Manager — Der Logical Volume Manager (LVM) ist eine hauptsächlich im Unix und Linux Umfeld verbreitete Abstraktionsebene zwischen Festplatten, Partitionen und Dateisystemen. Durch den LVM ist es möglich, dynamisch veränderbare Partitionen (Logical Volumes …   Deutsch Wikipedia

  • Logical Volume Manager — Esquema básico de LVM. LVM es una implementación de un administrador de volúmenes lógicos para el kernel Linux. Se escribió originalmente en 1998 por Heinz Mauelshagen, que se basó en el administrador de volúmenes de Veritas usado en sistemas HP… …   Wikipedia Español

  • Logical Disk Manager — The Logical Disk Manager (diskmgmt.msc) is an implementation of a logical volume manager for Microsoft Windows NT, developed by Microsoft and Veritas Software. It was introduced with the Windows 2000 operating system, and is supported in Windows… …   Wikipedia

  • Logical volume management — In computer storage, logical volume management or LVM is 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… …   Wikipedia

  • Logical volume management — Gestion par volumes logiques La gestion par volumes logiques (en anglais, logical volume management ou LVM) est une méthode et un logiciel de découpage, de concaténation et d utilisation des espaces de stockage d un serveur. Il permet de gérer,… …   Wikipédia en Français

  • Veritas Volume Manager — The Veritas Volume Manager, VVM or VxVM is a proprietary logical volume manager from Veritas (now part of Symantec). It is available for Windows, AIX, Solaris, Linux, and HP UX. A modified version is bundled with HP UX as its built in volume… …   Wikipedia

  • Solaris Volume Manager — (SVM; originalmente conocido como Online: DiskSuite, y luego como Solstice DiskSuite) es un paquete de software para crear, modificar y controlar volúmenes RAID 0 (concatenación y bandas), volúmenes RAID 1 (espejo), volúmenes RAID 0+1, volúmenes… …   Wikipedia Español

  • Linux kernel — Linux Linux kernel 3.0.0 booting Company / developer Linus Torvalds and thousands …   Wikipedia

  • Volume group — (VG) is the highest level abstraction used within the Logical Volume Manager (LVM). It gathers together a collection of Logical Volumes (LV) and Physical Volumes (PV) into one administrative unit.A volume group is a collection of physical (local… …   Wikipedia

  • Volume (computing) — In the context of computer operating systems, volume is the term used to describe a single accessible storage area with a single file system, typically (though not necessarily) resident on a single partition of a hard disk. Similarly, it refers… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”