0% found this document useful (0 votes)
352 views15 pages

LVM

The document discusses the Logical Volume Manager (LVM) subsystem in Linux. LVM adds a layer to the kernel's I/O subsystem that provides a virtual view of disks. It allows administrators to work with "virtual disks" and "virtual partitions" that can be resized and moved online. LVM groups physical disks into volume groups and allocates storage from volume groups to logical volumes, which can be accessed like standard partitions. Commands are provided to manage physical volumes, volume groups, and logical volumes.

Uploaded by

Darren David
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
352 views15 pages

LVM

The document discusses the Logical Volume Manager (LVM) subsystem in Linux. LVM adds a layer to the kernel's I/O subsystem that provides a virtual view of disks. It allows administrators to work with "virtual disks" and "virtual partitions" that can be resized and moved online. LVM groups physical disks into volume groups and allocates storage from volume groups to logical volumes, which can be accessed like standard partitions. Commands are provided to manage physical volumes, volume groups, and logical volumes.

Uploaded by

Darren David
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 15

LVM

A Logical Volume Manager for Linux

Definition of the LVM


the Logical Volume Manager is a subsystem for on-line disk storage management it adds an additional layer to the i/o subsystem of the kernel to get a virtual view on disks LVM enables you to deal with virtual disks and virtual partitions being fully online resizable and movable

LVM Concept1

usage of physical disks, disk partitions, multiple or loop devices as PVs (Physical Volumes; basic allocation device) store metadata in so called VGDAs (Volume Group Descriptor Areas) on the PVs group PVs in VGs (Volume Groups; virtual disks)

LVM Concept2

allocate VG storage to LVs (Logical Volumes; virtual partitions); basic units called PEs (Physical Extents) are mapped to their LEs (Logical Extents). extend and reduce VGs and LVs online use LVs like disks, disk partitions etc. for filesystems, databases etc. access VGs and LVs via device special files named /dev/VolumeGroupName/*

LVM Concept3

build a command and a library layer to ease the integration of different or additional tools or graphical user interfaces

export and import VGs to bring them to or get them from different computer systems
support linear and striped (RAID0) LVs

support snapshot LVs

Storage Architecture
2

PVs

2 PVs

Storage Architecture
VG

with 2 PVs

PV

PV

VG

Storage Architecture
VG

with 2 PVs and 1 LV PV VG PV

LV

PV Commands

pvchange - changes PV attributes pvcreate - initializes VGDA on a PV pvdata pvmove - displays VGDA (debugging) - moves PEs/LEs between PVs pvdisplay - shows PV attributes

pvscan

- searches for PVs

VG Commands1

vgcfgbackup vgcfgrestore vgck vgcreate

- does a VGDA backup - restores VGDA to a PV - check VG - creates a new VG

vgchange - changes VG attributes

vgdisplay - shows VG attributes


vgexport - make VG unknown

VG Commands2

vgextend - extend a VG online vgimport - make a VG known vgmerge - merge two VGs vgmknodes - create device specials vgreduce - reduceVG online

vgremove - delete empty VG

VG Commands3

vgrename - rename an inactive VG vgscan vgsplit - search for VG(s) - split a VG into 2

LV Commands1

e2fsadm

- extend or reduce LV and a contained ext2 Dateisystem (resize2fs needed) - create a new LV - extend LV online

lvchange - change LV attributes


lvcreate lvextend lvdisplay - show LV attributes

LV Commands3

lvreduce

- reduce LV online

lvremove - delete inactive LV lvrename - rename an inactive LV lvscan - search for LVs

LVM Commands

lvmchange lvmdiskscan

- reset LVM in case of a test emergency - search for disks, disk partitions or multiple devices - collect LV read/write data

lvmsadc

lvmsar

- report of collected LV statistic data

lvmcreate_initrd - initial RAM disk support

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy