Logical volume management

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 otherwise combine partitions into larger virtual ones that can be resized or moved, possibly while it is being used.

Volume management is one of many forms of storage virtualization, the one implemented as a layer in the OS disk driver stack.

Design

Most volume manager implementations share the same basic design and start with physical volumes (PVs), which can be hard disk partitions, RAID devices or a SAN. PVs are split into chunks called physical extents (PEs). Some volume managers (such as that in HP-UX and Linux) will have PEs of a uniform size; others (such as that in Veritas) will have variably-sized PEs that can be split and merged at will.

Normally, PEs are simply mapped one-to-one to logical extents (LEs). With mirroring, multiple PEs are mapped onto 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 LEs are pooled into a volume group (VG). The pooled LEs can then be concatenated together into virtual disk partitions called logical volumes or LVs. LVs are usable as raw block devices just as disk partitions are: mountable file systems can be created on them, or they can be used as swap storage.

On striped LVs, each successive LE is allocated 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.

The LVs can be grown or shrunk by concatenating more LEs from or returning them to the pool. The concatenated LEs do not have to be contiguous. This allows LVs to be grown without having to move already-allocated LEs. Some volume managers allow LVs to be resized 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 because 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 them to be moved at will between VGs on the same host). This allows VGs to be conveniently brought online, taken offline or moved 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; this allows storage (if the underlying hardware is hot-pluggable) to be upgraded or replaced without system downtime.

napshots

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 can later be reconstructed by overlaying the copy-on-write table atop the current LV. Snapshots which are read-write 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 in one swoop, such as an operating system upgrade. Some Linux-based Live CD systems also use snapshots to simulate read-write access on a read-only compact disc.

Implementations

Disadvantages

* 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 internal fragmentation when their PEs are not allocated contiguously on underlying storage. 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 4MB on the Linux LVM, for example) in order to amortize the cost of these seeks.

Notes

References

*.
*.
*.
*.
*.
*.
*


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • 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

  • 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… …   Wikipedia

  • 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 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 disk — A logical disk is a device that provides an area of usable storage capacity on one or more physical disk drive components in a computer system. Other terms that are used to mean the same thing are partition, logical volume, and in some cases a… …   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

  • Solaris Volume Manager — (SVM; formerly known as Online: DiskSuite, and later Solstice DiskSuite) is a software package for creating, modifying and controlling RAID 0 (concatenation and stripe) volumes, RAID 1 (mirror) volumes, RAID 0+1 volumes, RAID 1+0 volumes, RAID 5… …   Wikipedia

  • Automatic Storage Management — is a feature provided in Oracle 10g (since rev1) that aims to simplify the database files management. To do so, ASM provides file system and volume management capabilities directly inside the Oracle database kernel, allowing volumes and disks… …   Wikipedia

  • 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

  • Oracle Automatic Storage Management Cluster File System — Das Oracle Automatic Storage Management Cluster File System oder kurz ASM Cluster File System (ACFS), ist ein Cluster Dateisystem der Firma Oracle, das mit dem Oracle Datenbanksystem Version 11g Release 2 veröffentlicht wurde.[1] ASM steht für… …   Deutsch Wikipedia

Share the article and excerpts

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