[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">
|
---|
[b5e8375] | 9 | <!ENTITY lvm2-md5sum "9629cf5728544d7e637cafde1f73d777">
|
---|
[5552483f] | 10 | <!ENTITY lvm2-size "1.3 MB">
|
---|
| 11 | <!ENTITY lvm2-buildsize "22 MB">
|
---|
[b5e8375] | 12 | <!ENTITY lvm2-time "0.3 SBU">
|
---|
[8bc3edae] | 13 | ]>
|
---|
| 14 |
|
---|
[c627795] | 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 |
|
---|
[c627795] | 23 | <title>LVM2-&lvm2-version;</title>
|
---|
[8bc3edae] | 24 |
|
---|
| 25 | <indexterm zone="lvm2">
|
---|
[c627795] | 26 | <primary sortas="a-LVM2">LVM2</primary>
|
---|
[8bc3edae] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[c627795] | 30 | <title>Introduction to LVM2</title>
|
---|
[8bc3edae] | 31 |
|
---|
[c627795] | 32 | <para>
|
---|
| 33 | The <application>LVM2</application> package is a package that manages
|
---|
| 34 | logical partitions. It allows spanning of file systems across multiple
|
---|
| 35 | physical disks and disk partitions and provides for dynamic growing or
|
---|
| 36 | shrinking of logical partitions.
|
---|
| 37 | </para>
|
---|
[8bc3edae] | 38 |
|
---|
[b5e8375] | 39 | &lfs74_checked;
|
---|
[8bc3edae] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
[f60cf4a] | 43 | <listitem>
|
---|
[c627795] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&lvm2-download-http;"/>
|
---|
| 46 | </para>
|
---|
[f60cf4a] | 47 | </listitem>
|
---|
[8bc3edae] | 48 | <listitem>
|
---|
[c627795] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&lvm2-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[8bc3edae] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[c627795] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &lvm2-md5sum;
|
---|
| 56 | </para>
|
---|
[8bc3edae] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[c627795] | 59 | <para>
|
---|
| 60 | Download size: &lvm2-size;
|
---|
| 61 | </para>
|
---|
[8bc3edae] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[c627795] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &lvm2-buildsize;
|
---|
| 66 | </para>
|
---|
[8bc3edae] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[c627795] | 69 | <para>
|
---|
| 70 | Estimated build time: &lvm2-time;
|
---|
| 71 | </para>
|
---|
[8bc3edae] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[b5e8375] | 75 | <bridgehead renderas="sect3">LVM2 Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 78 | <para role="optional">
|
---|
| 79 | <xref linkend='mdadm'/> (for checks) and
|
---|
| 80 | <xref linkend='xfsprogs'/> (for checks)
|
---|
| 81 | </para>
|
---|
| 82 |
|
---|
[8bc3edae] | 83 | <para condition="html" role="usernotes">User Notes:
|
---|
[c627795] | 84 | <ulink url="&blfs-wiki;/lvm2"/>
|
---|
| 85 | </para>
|
---|
[8bc3edae] | 86 | </sect2>
|
---|
| 87 |
|
---|
[c627795] | 88 | <sect2 role="kernel" id="lvm2-kernel">
|
---|
[7e1df8f9] | 89 | <title>Kernel Configuration</title>
|
---|
| 90 |
|
---|
[c627795] | 91 | <para>
|
---|
| 92 | Enable the following option in the kernel configuration
|
---|
| 93 | and recompile the kernel:
|
---|
| 94 | </para>
|
---|
[7e1df8f9] | 95 |
|
---|
[b5e8375] | 96 | <note><para>
|
---|
| 97 | There are several other Device Mapper options in the kernel beyond those
|
---|
| 98 | listed below. In order to get reasonable results if running the
|
---|
| 99 | regression tests, all must be enabled either internally or as a module.
|
---|
| 100 | </para></note>
|
---|
| 101 |
|
---|
[7e1df8f9] | 102 | <screen><literal>Device Drivers --->
|
---|
| 103 | Multiple devices driver support (RAID and LVM): Y
|
---|
| 104 | Device mapper support: Y or M
|
---|
| 105 | Crypt target support: (optional)
|
---|
| 106 | Snapshot target: (optional)
|
---|
| 107 | Mirror target: (optional) </literal></screen>
|
---|
| 108 |
|
---|
| 109 | <indexterm zone="lvm2 lvm2-kernel">
|
---|
| 110 | <primary sortas="d-lvm2">lvm2</primary>
|
---|
| 111 | </indexterm>
|
---|
| 112 |
|
---|
| 113 | </sect2>
|
---|
| 114 |
|
---|
[8bc3edae] | 115 | <sect2 role="installation">
|
---|
[c627795] | 116 | <title>Installation of LVM2</title>
|
---|
[8bc3edae] | 117 |
|
---|
[c627795] | 118 | <para>
|
---|
| 119 | Install <application>LVM2</application> by running the following
|
---|
| 120 | commands:
|
---|
| 121 | </para>
|
---|
[8bc3edae] | 122 |
|
---|
[4591404] | 123 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 124 | --exec-prefix= \
|
---|
[f60cf4a] | 125 | --with-confdir=/etc \
|
---|
[4591404] | 126 | --enable-applib \
|
---|
| 127 | --enable-cmdlib \
|
---|
| 128 | --enable-pkgconfig \
|
---|
[f60cf4a] | 129 | --enable-udev_sync &&
|
---|
[8bc3edae] | 130 | make</userinput></screen>
|
---|
| 131 |
|
---|
[c627795] | 132 | <para>
|
---|
[b5e8375] | 133 | The check command must be run as the <systemitem
|
---|
| 134 | class="username">root</systemitem> user. Also the tests are known to
|
---|
| 135 | hang if at least one partition on a hard drive is not set up as a Linux
|
---|
| 136 | LVM partition (type 8e00). To test the results, issue: <command>make
|
---|
| 137 | check</command> as the <systemitem class="username">root</systemitem>
|
---|
| 138 | user.
|
---|
[c627795] | 139 | </para>
|
---|
[8bc3edae] | 140 |
|
---|
[c627795] | 141 | <para>
|
---|
| 142 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 143 | </para>
|
---|
[8bc3edae] | 144 |
|
---|
| 145 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 146 |
|
---|
| 147 | </sect2>
|
---|
| 148 |
|
---|
| 149 | <sect2 role="commands">
|
---|
| 150 | <title>Command Explanations</title>
|
---|
| 151 |
|
---|
[c627795] | 152 | <para>
|
---|
| 153 | <option>--enable-applib</option>: This switch enables
|
---|
| 154 | building of the shared application library.
|
---|
| 155 | </para>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
| 158 | <option>--enable-cmdlib</option>: This switch enables
|
---|
| 159 | building of the shared command library. It is required
|
---|
| 160 | when building the event daemon.
|
---|
| 161 | </para>
|
---|
| 162 |
|
---|
| 163 | <para>
|
---|
| 164 | <option>--enable-pkgconfig</option>: This switch enables
|
---|
| 165 | installation of <command>pkg-config</command> support files.
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <para>
|
---|
| 169 | <option>--enable-udev_sync</option>: This switch enables
|
---|
| 170 | synchronisation with <application>Udev</application> processing.
|
---|
| 171 | </para>
|
---|
| 172 |
|
---|
| 173 | <para>
|
---|
| 174 | <option>--enable-dmeventd</option>: This switch enables
|
---|
| 175 | building of the <application>Device Mapper</application>
|
---|
| 176 | event daemon.
|
---|
| 177 | </para>
|
---|
[8bc3edae] | 178 |
|
---|
| 179 | </sect2>
|
---|
| 180 |
|
---|
| 181 | <sect2 role="content">
|
---|
| 182 | <title>Contents</title>
|
---|
| 183 |
|
---|
| 184 | <segmentedlist>
|
---|
| 185 | <segtitle>Installed Programs</segtitle>
|
---|
| 186 | <segtitle>Installed Libraries</segtitle>
|
---|
[c3c56b2] | 187 | <segtitle>Installed Directories</segtitle>
|
---|
[8bc3edae] | 188 |
|
---|
| 189 | <seglistitem>
|
---|
[c627795] | 190 | <seg>
|
---|
| 191 | dmsetup, fsadm, lvm, lvmconf, lvmdump, vgimportclone. There
|
---|
| 192 | are also numerous symbolic links to lvm that implement
|
---|
| 193 | specific functionality.
|
---|
| 194 | </seg>
|
---|
| 195 | <seg>
|
---|
| 196 | libdevmapper.so, liblvm2app.so and liblvm2cmd.so
|
---|
| 197 | </seg>
|
---|
[c3c56b2] | 198 | <seg>
|
---|
| 199 | None
|
---|
| 200 | </seg>
|
---|
[8bc3edae] | 201 | </seglistitem>
|
---|
| 202 | </segmentedlist>
|
---|
| 203 |
|
---|
| 204 | <variablelist>
|
---|
| 205 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 206 | <?dbfo list-presentation="list"?>
|
---|
| 207 | <?dbhtml list-presentation="table"?>
|
---|
| 208 |
|
---|
| 209 | <varlistentry id="dmsetup">
|
---|
| 210 | <term><command>dmsetup</command></term>
|
---|
| 211 | <listitem>
|
---|
[c627795] | 212 | <para>
|
---|
| 213 | is a low level logical volume management tool.
|
---|
| 214 | </para>
|
---|
[8bc3edae] | 215 | <indexterm zone="lvm2 dmsetup">
|
---|
| 216 | <primary sortas="b-dmsetup">dmsetup</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="fsadm">
|
---|
| 222 | <term><command>fsadm</command></term>
|
---|
| 223 | <listitem>
|
---|
[c627795] | 224 | <para>
|
---|
| 225 | is an utility used to resize or check filesystem on a device.
|
---|
| 226 | </para>
|
---|
[8bc3edae] | 227 | <indexterm zone="lvm2 fsadm">
|
---|
| 228 | <primary sortas="b-fsadm">fsadm</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
| 233 | <varlistentry id="lvm">
|
---|
| 234 | <term><command>lvm</command></term>
|
---|
| 235 | <listitem>
|
---|
[c627795] | 236 | <para>
|
---|
| 237 | provides the command-line tools for <application>LVM2</application>.
|
---|
| 238 | Commands are implemented via sympolic links to this program to
|
---|
| 239 | manage physical devices (pv*), volume groups (vg*) and logical
|
---|
| 240 | volumes (lv*).
|
---|
| 241 | </para>
|
---|
[8bc3edae] | 242 | <indexterm zone="lvm2 lvm">
|
---|
| 243 | <primary sortas="b-lvm">lvm</primary>
|
---|
| 244 | </indexterm>
|
---|
| 245 | </listitem>
|
---|
| 246 | </varlistentry>
|
---|
| 247 |
|
---|
| 248 | <varlistentry id="lvmconf">
|
---|
| 249 | <term><command>lvmconf</command></term>
|
---|
| 250 | <listitem>
|
---|
[c627795] | 251 | <para>
|
---|
[0d7900a] | 252 | is a script that modifies the locking configuration in
|
---|
[c627795] | 253 | the <application>LVM2</application> configuration file.
|
---|
| 254 | </para>
|
---|
[8bc3edae] | 255 | <indexterm zone="lvm2 lvmconf">
|
---|
| 256 | <primary sortas="b-lvmconf">lvmconf</primary>
|
---|
| 257 | </indexterm>
|
---|
| 258 | </listitem>
|
---|
| 259 | </varlistentry>
|
---|
| 260 |
|
---|
| 261 | <varlistentry id="lvmdump">
|
---|
| 262 | <term><command>lvmdump</command></term>
|
---|
| 263 | <listitem>
|
---|
[c627795] | 264 | <para>
|
---|
| 265 | is a tool used to dump various information concerning
|
---|
| 266 | <application>LVM2</application>.
|
---|
| 267 | </para>
|
---|
[8bc3edae] | 268 | <indexterm zone="lvm2 lvmdump">
|
---|
| 269 | <primary sortas="b-lvmdump">lvmdump</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | <varlistentry id="vgimportclone">
|
---|
| 275 | <term><command>vgimportclone</command></term>
|
---|
| 276 | <listitem>
|
---|
[c627795] | 277 | <para>
|
---|
| 278 | is used to import a duplicated VG (e.g. hardware snapshot).
|
---|
| 279 | </para>
|
---|
[8bc3edae] | 280 | <indexterm zone="lvm2 vgimportclone">
|
---|
| 281 | <primary sortas="b-vgimportclone">vgimportclone</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
| 285 |
|
---|
| 286 | <varlistentry id="libdevmapper">
|
---|
| 287 | <term><filename class='libraryfile'>libdevmapper.so</filename></term>
|
---|
| 288 | <listitem>
|
---|
[c627795] | 289 | <para>
|
---|
| 290 | contains the <application>Device Mapper</application> API
|
---|
| 291 | functions.
|
---|
| 292 | </para>
|
---|
[8bc3edae] | 293 | <indexterm zone="lvm2 libdevmapper">
|
---|
| 294 | <primary sortas="c-libdevmapper">libdevmapper.so</primary>
|
---|
| 295 | </indexterm>
|
---|
| 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
| 298 |
|
---|
| 299 | </variablelist>
|
---|
| 300 |
|
---|
| 301 | </sect2>
|
---|
| 302 |
|
---|
| 303 | </sect1>
|
---|