[8bc3edae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY lvm2-download-http " ">
|
---|
[16e1157] | 8 | <!ENTITY lvm2-download-ftp "ftp://sources.redhat.com/pub/lvm2/LVM2.&lvm2-version;.tgz">
|
---|
[f60cf4a] | 9 | <!ENTITY lvm2-md5sum "bd470a802046c807603618a443732ea7">
|
---|
| 10 | <!ENTITY lvm2-size "1.2 MB">
|
---|
[8bc3edae] | 11 | <!ENTITY lvm2-buildsize "15 MB">
|
---|
[f60cf4a] | 12 | <!ENTITY lvm2-time "0.4 SBU">
|
---|
[8bc3edae] | 13 | ]>
|
---|
| 14 |
|
---|
[f60cf4a] | 15 | <sect1 id="lvm2" xreflabel="lvm2-&lvm2-version;">
|
---|
[8bc3edae] | 16 | <?dbhtml filename="lvm2.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>lvm2-&lvm2-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="lvm2">
|
---|
| 26 | <primary sortas="a-lvm2">lvm2</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to lvm2</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>lvm2</application> package is a package that manages
|
---|
[f60cf4a] | 33 | logical partitions. It allows spanning of file systems across multiple
|
---|
[8bc3edae] | 34 | physical disks and disk partitions and provides for dynamic growing or shrinking
|
---|
| 35 | of logical partitions.</para>
|
---|
| 36 |
|
---|
[55b07cb] | 37 | &lfs71_checked;
|
---|
[8bc3edae] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
[f60cf4a] | 41 | <listitem>
|
---|
[8bc3edae] | 42 | <para>Download (HTTP): <ulink url="&lvm2-download-http;"/></para>
|
---|
[f60cf4a] | 43 | </listitem>
|
---|
[8bc3edae] | 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&lvm2-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &lvm2-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &lvm2-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &lvm2-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &lvm2-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
| 60 |
|
---|
| 61 | <para condition="html" role="usernotes">User Notes:
|
---|
| 62 | <ulink url="&blfs-wiki;/lvm2"/></para>
|
---|
| 63 |
|
---|
| 64 | </sect2>
|
---|
| 65 |
|
---|
[7e1df8f9] | 66 | <sect2 role="kernel" id='lvm2-kernel'>
|
---|
| 67 | <title>Kernel Configuration</title>
|
---|
| 68 |
|
---|
| 69 | <para>Enable the following option in the kernel configuration
|
---|
| 70 | and recompile the kernel:</para>
|
---|
| 71 |
|
---|
| 72 | <screen><literal>Device Drivers --->
|
---|
| 73 | Multiple devices driver support (RAID and LVM): Y
|
---|
| 74 | Device mapper support: Y or M
|
---|
| 75 | Crypt target support: (optional)
|
---|
| 76 | Snapshot target: (optional)
|
---|
| 77 | Mirror target: (optional) </literal></screen>
|
---|
| 78 |
|
---|
| 79 | <indexterm zone="lvm2 lvm2-kernel">
|
---|
| 80 | <primary sortas="d-lvm2">lvm2</primary>
|
---|
| 81 | </indexterm>
|
---|
| 82 |
|
---|
| 83 | </sect2>
|
---|
| 84 |
|
---|
[8bc3edae] | 85 | <sect2 role="installation">
|
---|
| 86 | <title>Installation of lvm2</title>
|
---|
| 87 |
|
---|
| 88 | <para>Install <application>lvm2</application> by running the following
|
---|
| 89 | commands:</para>
|
---|
| 90 |
|
---|
[f60cf4a] | 91 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 92 | --exec-prefix= \
|
---|
| 93 | --with-confdir=/etc \
|
---|
| 94 | --enable-applib \
|
---|
| 95 | --enable-cmdlib \
|
---|
| 96 | --enable-pkgconfig \
|
---|
| 97 | --enable-udev_sync &&
|
---|
[8bc3edae] | 98 | make</userinput></screen>
|
---|
| 99 |
|
---|
[f60cf4a] | 100 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[8bc3edae] | 101 |
|
---|
| 102 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 103 |
|
---|
| 104 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 105 |
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="commands">
|
---|
| 109 | <title>Command Explanations</title>
|
---|
| 110 |
|
---|
[f60cf4a] | 111 | <para><option>--enable-applib</option>: This parameter enables
|
---|
| 112 | building of the shared application library..</para>
|
---|
[8bc3edae] | 113 |
|
---|
[f60cf4a] | 114 | <para><option>--enable-cmdlib</option>: This parameter enables
|
---|
| 115 | building of the shared command library. It is required when
|
---|
| 116 | building the event daemon.</para>
|
---|
[8bc3edae] | 117 |
|
---|
[f60cf4a] | 118 | <para><option>--enable-pkgconfig</option>: This parameter enables
|
---|
| 119 | installation of pkgconfig support files.</para>
|
---|
[8bc3edae] | 120 |
|
---|
[f60cf4a] | 121 | <para><option>--enable-udev_sync</option>: This parameter enables
|
---|
| 122 | synchronisation with <application>Udev</application> processing.</para>
|
---|
[8bc3edae] | 123 |
|
---|
[f60cf4a] | 124 | <para><option>--enable-dmeventd</option>: This parameter enables
|
---|
| 125 | building of the device-mapper event daemon.</para>
|
---|
[8bc3edae] | 126 |
|
---|
| 127 | </sect2>
|
---|
| 128 |
|
---|
| 129 | <sect2 role="content">
|
---|
| 130 | <title>Contents</title>
|
---|
| 131 |
|
---|
| 132 | <segmentedlist>
|
---|
| 133 | <segtitle>Installed Programs</segtitle>
|
---|
| 134 | <segtitle>Installed Libraries</segtitle>
|
---|
| 135 | <segtitle>Installed Directories</segtitle>
|
---|
| 136 |
|
---|
| 137 | <seglistitem>
|
---|
| 138 | <seg>dmsetup, fsadm, lvm, lvmconf, lvndump, vgimportclone. There
|
---|
| 139 | are also numerous symbolic links to lvm to impement specific
|
---|
| 140 | functionality.</seg>
|
---|
| 141 | <seg>libdevmapper.so</seg>
|
---|
| 142 | <seg>None</seg>
|
---|
| 143 | </seglistitem>
|
---|
| 144 | </segmentedlist>
|
---|
| 145 |
|
---|
| 146 | <variablelist>
|
---|
| 147 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 148 | <?dbfo list-presentation="list"?>
|
---|
| 149 | <?dbhtml list-presentation="table"?>
|
---|
| 150 |
|
---|
| 151 | <varlistentry id="dmsetup">
|
---|
| 152 | <term><command>dmsetup</command></term>
|
---|
| 153 | <listitem>
|
---|
| 154 | <para>is a low level logical volume management tool.</para>
|
---|
| 155 | <indexterm zone="lvm2 dmsetup">
|
---|
| 156 | <primary sortas="b-dmsetup">dmsetup</primary>
|
---|
| 157 | </indexterm>
|
---|
| 158 | </listitem>
|
---|
| 159 | </varlistentry>
|
---|
| 160 |
|
---|
| 161 | <varlistentry id="fsadm">
|
---|
| 162 | <term><command>fsadm</command></term>
|
---|
| 163 | <listitem>
|
---|
| 164 | <para>is a utility to resize or check filesystem on a device.</para>
|
---|
| 165 | <indexterm zone="lvm2 fsadm">
|
---|
| 166 | <primary sortas="b-fsadm">fsadm</primary>
|
---|
| 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
| 170 |
|
---|
| 171 | <varlistentry id="lvm">
|
---|
| 172 | <term><command>lvm</command></term>
|
---|
| 173 | <listitem>
|
---|
| 174 | <para>provides the command-line tools for lvm2. Commands are
|
---|
| 175 | implemented via sympolic links to this program to manage physical
|
---|
| 176 | devices (pv*), volume groups (vg*), and logical volumes (lv*).</para>
|
---|
| 177 | <indexterm zone="lvm2 lvm">
|
---|
| 178 | <primary sortas="b-lvm">lvm</primary>
|
---|
| 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
| 183 | <varlistentry id="lvmconf">
|
---|
| 184 | <term><command>lvmconf</command></term>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>is a script that modifies the locking configuration in
|
---|
| 187 | an lvm configuration file.</para>
|
---|
| 188 | <indexterm zone="lvm2 lvmconf">
|
---|
| 189 | <primary sortas="b-lvmconf">lvmconf</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | <varlistentry id="lvmdump">
|
---|
| 195 | <term><command>lvmdump</command></term>
|
---|
| 196 | <listitem>
|
---|
| 197 | <para>is a tool to dump various information concerning lvm2.</para>
|
---|
| 198 | <indexterm zone="lvm2 lvmdump">
|
---|
| 199 | <primary sortas="b-lvmdump">lvmdump</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="vgimportclone">
|
---|
| 205 | <term><command>vgimportclone</command></term>
|
---|
| 206 | <listitem>
|
---|
| 207 | <para>is used to import a duplicated VG (e.g. hardware snapshot).</para>
|
---|
| 208 | <indexterm zone="lvm2 vgimportclone">
|
---|
| 209 | <primary sortas="b-vgimportclone">vgimportclone</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | <varlistentry id="libdevmapper">
|
---|
| 215 | <term><filename class='libraryfile'>libdevmapper.so</filename></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>contains the <application>device-mapper</application> API
|
---|
| 218 | functions.</para>
|
---|
| 219 | <indexterm zone="lvm2 libdevmapper">
|
---|
| 220 | <primary sortas="c-libdevmapper">libdevmapper.so</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | </variablelist>
|
---|
| 226 |
|
---|
| 227 | </sect2>
|
---|
| 228 |
|
---|
| 229 | </sect1>
|
---|