mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-01 21:12:12 +08:00
6b26273441
Update to ibus-1.5.4 Update to sawfish-1.10 Update libxml2 testsuite version to 20130923 git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11878 af4574ff-66df-0310-9fd7-8a98e5e911e0
304 lines
8.8 KiB
XML
304 lines
8.8 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY lvm2-download-http " ">
|
|
<!ENTITY lvm2-download-ftp "ftp://sources.redhat.com/pub/lvm2/LVM2.&lvm2-version;.tgz">
|
|
<!ENTITY lvm2-md5sum "cfce545d87abf42ae4c9e0aae704619e">
|
|
<!ENTITY lvm2-size "1.3 MB">
|
|
<!ENTITY lvm2-buildsize "21 MB">
|
|
<!ENTITY lvm2-time "0.3 SBU">
|
|
]>
|
|
|
|
<sect1 id="lvm2" xreflabel="LVM2-&lvm2-version;">
|
|
<?dbhtml filename="lvm2.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>LVM2-&lvm2-version;</title>
|
|
|
|
<indexterm zone="lvm2">
|
|
<primary sortas="a-LVM2">LVM2</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to LVM2</title>
|
|
|
|
<para>
|
|
The <application>LVM2</application> 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.
|
|
</para>
|
|
|
|
&lfs74_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&lvm2-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&lvm2-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &lvm2-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &lvm2-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &lvm2-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &lvm2-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">LVM2 Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend='mdadm'/> (for checks) and
|
|
<xref linkend='xfsprogs'/> (for checks)
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/lvm2"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="kernel" id="lvm2-kernel">
|
|
<title>Kernel Configuration</title>
|
|
|
|
<para>
|
|
Enable the following option in the kernel configuration
|
|
and recompile the kernel:
|
|
</para>
|
|
|
|
<note><para>
|
|
There are several other Device Mapper options in the kernel beyond those
|
|
listed below. In order to get reasonable results if running the
|
|
regression tests, all must be enabled either internally or as a module.
|
|
</para></note>
|
|
|
|
<screen><literal>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) </literal></screen>
|
|
|
|
<indexterm zone="lvm2 lvm2-kernel">
|
|
<primary sortas="d-lvm2">lvm2</primary>
|
|
</indexterm>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of LVM2</title>
|
|
|
|
<para>
|
|
Install <application>LVM2</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
--exec-prefix= \
|
|
--with-confdir=/etc \
|
|
--enable-applib \
|
|
--enable-cmdlib \
|
|
--enable-pkgconfig \
|
|
--enable-udev_sync &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
The check command must be run as the <systemitem
|
|
class="username">root</systemitem> user. Also the tests are known to
|
|
hang if at least one partition on a hard drive is not set up as a Linux
|
|
LVM partition (type 8e00). To test the results, issue: <command>make
|
|
check</command> as the <systemitem class="username">root</systemitem>
|
|
user.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<option>--enable-applib</option>: This switch enables
|
|
building of the shared application library.
|
|
</para>
|
|
|
|
<para>
|
|
<option>--enable-cmdlib</option>: This switch enables
|
|
building of the shared command library. It is required
|
|
when building the event daemon.
|
|
</para>
|
|
|
|
<para>
|
|
<option>--enable-pkgconfig</option>: This switch enables
|
|
installation of <command>pkg-config</command> support files.
|
|
</para>
|
|
|
|
<para>
|
|
<option>--enable-udev_sync</option>: This switch enables
|
|
synchronisation with <application>Udev</application> processing.
|
|
</para>
|
|
|
|
<para>
|
|
<option>--enable-dmeventd</option>: This switch enables
|
|
building of the <application>Device Mapper</application>
|
|
event daemon.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
dmsetup, fsadm, lvm, lvmconf, lvmdump, vgimportclone. There
|
|
are also numerous symbolic links to lvm that implement
|
|
specific functionality.
|
|
</seg>
|
|
<seg>
|
|
libdevmapper.so, liblvm2app.so and liblvm2cmd.so
|
|
</seg>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="dmsetup">
|
|
<term><command>dmsetup</command></term>
|
|
<listitem>
|
|
<para>
|
|
is a low level logical volume management tool.
|
|
</para>
|
|
<indexterm zone="lvm2 dmsetup">
|
|
<primary sortas="b-dmsetup">dmsetup</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="fsadm">
|
|
<term><command>fsadm</command></term>
|
|
<listitem>
|
|
<para>
|
|
is an utility used to resize or check filesystem on a device.
|
|
</para>
|
|
<indexterm zone="lvm2 fsadm">
|
|
<primary sortas="b-fsadm">fsadm</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="lvm">
|
|
<term><command>lvm</command></term>
|
|
<listitem>
|
|
<para>
|
|
provides the command-line tools for <application>LVM2</application>.
|
|
Commands are implemented via sympolic links to this program to
|
|
manage physical devices (pv*), volume groups (vg*) and logical
|
|
volumes (lv*).
|
|
</para>
|
|
<indexterm zone="lvm2 lvm">
|
|
<primary sortas="b-lvm">lvm</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="lvmconf">
|
|
<term><command>lvmconf</command></term>
|
|
<listitem>
|
|
<para>
|
|
is a script that modifies the locking configuration in
|
|
the <application>LVM2</application> configuration file.
|
|
</para>
|
|
<indexterm zone="lvm2 lvmconf">
|
|
<primary sortas="b-lvmconf">lvmconf</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="lvmdump">
|
|
<term><command>lvmdump</command></term>
|
|
<listitem>
|
|
<para>
|
|
is a tool used to dump various information concerning
|
|
<application>LVM2</application>.
|
|
</para>
|
|
<indexterm zone="lvm2 lvmdump">
|
|
<primary sortas="b-lvmdump">lvmdump</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="vgimportclone">
|
|
<term><command>vgimportclone</command></term>
|
|
<listitem>
|
|
<para>
|
|
is used to import a duplicated VG (e.g. hardware snapshot).
|
|
</para>
|
|
<indexterm zone="lvm2 vgimportclone">
|
|
<primary sortas="b-vgimportclone">vgimportclone</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="libdevmapper">
|
|
<term><filename class='libraryfile'>libdevmapper.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains the <application>Device Mapper</application> API
|
|
functions.
|
|
</para>
|
|
<indexterm zone="lvm2 libdevmapper">
|
|
<primary sortas="c-libdevmapper">libdevmapper.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|