lvm2-2.02.95

Introduction to lvm2

The lvm2 package is a package that manages logical partitions. It allows spanning of file systems across multiple physical disks and disk partitions and provides for dynamic growing or shrinking of logical partitions.

This package is known to build and work properly using an LFS-7.1 platform.

Package Information

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/lvm2

Kernel Configuration

Enable the following option in the kernel configuration and recompile the kernel:

Device Drivers --->
  Multiple devices driver support (RAID and LVM): Y
    Device mapper support: Y or M
    Crypt target support: (optional)
    Snapshot target: (optional)
    Mirror target: (optional) 

Installation of lvm2

Install lvm2 by running the following commands:

./configure --prefix=/usr \
            --exec-prefix= \
            --with-confdir=/etc \
            --enable-applib \
            --enable-cmdlib \
            --enable-pkgconfig \
            --enable-udev_sync &&
make

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

--enable-applib: This parameter enables building of the shared application library..

--enable-cmdlib: This parameter enables building of the shared command library. It is required when building the event daemon.

--enable-pkgconfig: This parameter enables installation of pkgconfig support files.

--enable-udev_sync: This parameter enables synchronisation with Udev processing.

--enable-dmeventd: This parameter enables building of the device-mapper event daemon.

Contents

Installed Programs: dmsetup, fsadm, lvm, lvmconf, lvndump, vgimportclone. There are also numerous symbolic links to lvm to impement specific functionality.
Installed Libraries: libdevmapper.so
Installed Directories: None

Short Descriptions

dmsetup

is a low level logical volume management tool.

fsadm

is a utility to resize or check filesystem on a device.

lvm

provides the command-line tools for lvm2. Commands are implemented via sympolic links to this program to manage physical devices (pv*), volume groups (vg*), and logical volumes (lv*).

lvmconf

is a script that modifies the locking configuration in an lvm configuration file.

lvmdump

is a tool to dump various information concerning lvm2.

vgimportclone

is used to import a duplicated VG (e.g. hardware snapshot).

libdevmapper.so

contains the device-mapper API functions.

Last updated on 2012-05-25 19:02:35 +0000