[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">
|
---|
[8ed30d52] | 9 | <!ENTITY lvm2-md5sum "b5b3540661fc70bf329b526c1cfbcf3a">
|
---|
| 10 | <!ENTITY lvm2-size "1.4 MB">
|
---|
| 11 | <!ENTITY lvm2-buildsize "24 MB (additional 2 MB to run the test suite)">
|
---|
| 12 | <!ENTITY lvm2-time "0.3 SBU (additional 3.6 SBU to run the test suite)">
|
---|
[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 |
|
---|
[6e2e278d] | 39 | &lfs75_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 |
|
---|
[7ed9aa5] | 123 | <screen><userinput><!-- already corrected upstream. Suppress sed for version 2.02.106
|
---|
| 124 | -->sed -i s/CPPFunction/rl_completion_func_t/ tools/lvm.c &&
|
---|
| 125 | ./configure --prefix=/usr \
|
---|
[4591404] | 126 | --exec-prefix= \
|
---|
[f60cf4a] | 127 | --with-confdir=/etc \
|
---|
[4591404] | 128 | --enable-applib \
|
---|
| 129 | --enable-cmdlib \
|
---|
| 130 | --enable-pkgconfig \
|
---|
[f60cf4a] | 131 | --enable-udev_sync &&
|
---|
[8bc3edae] | 132 | make</userinput></screen>
|
---|
| 133 |
|
---|
[c627795] | 134 | <para>
|
---|
[b5e8375] | 135 | The check command must be run as the <systemitem
|
---|
| 136 | class="username">root</systemitem> user. Also the tests are known to
|
---|
| 137 | hang if at least one partition on a hard drive is not set up as a Linux
|
---|
| 138 | LVM partition (type 8e00). To test the results, issue: <command>make
|
---|
| 139 | check</command> as the <systemitem class="username">root</systemitem>
|
---|
| 140 | user.
|
---|
[c627795] | 141 | </para>
|
---|
[8bc3edae] | 142 |
|
---|
[c627795] | 143 | <para>
|
---|
| 144 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 145 | </para>
|
---|
[8bc3edae] | 146 |
|
---|
| 147 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2 role="commands">
|
---|
| 152 | <title>Command Explanations</title>
|
---|
| 153 |
|
---|
[c627795] | 154 | <para>
|
---|
[7ed9aa5] | 155 | <!-- already corrected upstream. Suppress for version 2.02.106 -->
|
---|
| 156 | <command>sed -i s/CPPFunction/rl_completion_func_t/ tools/lvm.c</command>:
|
---|
| 157 | Corrects the use of a deprecated typedef.
|
---|
| 158 | </para>
|
---|
| 159 | <para>
|
---|
[2800af7] | 160 | <parameter>--enable-applib</parameter>: This switch enables
|
---|
[c627795] | 161 | building of the shared application library.
|
---|
| 162 | </para>
|
---|
| 163 |
|
---|
| 164 | <para>
|
---|
[2800af7] | 165 | <parameter>--enable-cmdlib</parameter>: This switch enables
|
---|
[c627795] | 166 | building of the shared command library. It is required
|
---|
| 167 | when building the event daemon.
|
---|
| 168 | </para>
|
---|
| 169 |
|
---|
| 170 | <para>
|
---|
[2800af7] | 171 | <parameter>--enable-pkgconfig</parameter>: This switch enables
|
---|
[c627795] | 172 | installation of <command>pkg-config</command> support files.
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
| 175 | <para>
|
---|
[2800af7] | 176 | <parameter>--enable-udev_sync</parameter>: This switch enables
|
---|
[c627795] | 177 | synchronisation with <application>Udev</application> processing.
|
---|
| 178 | </para>
|
---|
| 179 |
|
---|
| 180 | <para>
|
---|
| 181 | <option>--enable-dmeventd</option>: This switch enables
|
---|
| 182 | building of the <application>Device Mapper</application>
|
---|
| 183 | event daemon.
|
---|
| 184 | </para>
|
---|
[8bc3edae] | 185 |
|
---|
| 186 | </sect2>
|
---|
| 187 |
|
---|
| 188 | <sect2 role="content">
|
---|
| 189 | <title>Contents</title>
|
---|
| 190 |
|
---|
| 191 | <segmentedlist>
|
---|
| 192 | <segtitle>Installed Programs</segtitle>
|
---|
| 193 | <segtitle>Installed Libraries</segtitle>
|
---|
[c3c56b2] | 194 | <segtitle>Installed Directories</segtitle>
|
---|
[8bc3edae] | 195 |
|
---|
| 196 | <seglistitem>
|
---|
[c627795] | 197 | <seg>
|
---|
[8ed30d52] | 198 | blkdeactivate, dmeventd (optional), dmsetup, fsadm, lvm, lvmconf,
|
---|
| 199 | lvmdump, vgimportclone. There are also numerous symbolic links to
|
---|
| 200 | lvm that implement specific functionality.
|
---|
[c627795] | 201 | </seg>
|
---|
| 202 | <seg>
|
---|
[a037dab] | 203 | libdevmapper.so, liblvm2app.so and liblvm2cmd.so; optional:
|
---|
| 204 | libdevmapper-event.so, libdevmapper-event-lvm2.so,
|
---|
| 205 | libdevmapper-event-lvm2mirror.so, libdevmapper-event-lvm2snapshot.so,
|
---|
[8ed30d52] | 206 | libdevmapper-event-lvm2raid.so, libdevmapper-event-lvm2thin.so
|
---|
| 207 | and some under /lib/device-mapper
|
---|
[c627795] | 208 | </seg>
|
---|
[c3c56b2] | 209 | <seg>
|
---|
[a037dab] | 210 | /etc/lvm and
|
---|
| 211 | /lib/device-mapper (optional)
|
---|
[c3c56b2] | 212 | </seg>
|
---|
[8bc3edae] | 213 | </seglistitem>
|
---|
| 214 | </segmentedlist>
|
---|
| 215 |
|
---|
| 216 | <variablelist>
|
---|
| 217 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 218 | <?dbfo list-presentation="list"?>
|
---|
| 219 | <?dbhtml list-presentation="table"?>
|
---|
| 220 |
|
---|
[8ed30d52] | 221 | <varlistentry id="blkdeactivate">
|
---|
| 222 | <term><command>blkdeactivate</command></term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <para>
|
---|
| 225 | utility to deactivate block device.
|
---|
| 226 | </para>
|
---|
| 227 | <indexterm zone="lvm2 blkdeactivate">
|
---|
| 228 | <primary sortas="b-blkdeactivate">blkdeactivate</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
[a037dab] | 233 | <varlistentry id="dmeventd">
|
---|
| 234 | <term><command>dmeventd</command></term>
|
---|
| 235 | <listitem>
|
---|
| 236 | <para>
|
---|
| 237 | (optional) is the Device Mapper event daemon.
|
---|
| 238 | </para>
|
---|
| 239 | <indexterm zone="lvm2 dmeventd">
|
---|
| 240 | <primary sortas="b-dmeventd">dmeventd</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
[8bc3edae] | 245 | <varlistentry id="dmsetup">
|
---|
| 246 | <term><command>dmsetup</command></term>
|
---|
| 247 | <listitem>
|
---|
[c627795] | 248 | <para>
|
---|
| 249 | is a low level logical volume management tool.
|
---|
| 250 | </para>
|
---|
[8bc3edae] | 251 | <indexterm zone="lvm2 dmsetup">
|
---|
| 252 | <primary sortas="b-dmsetup">dmsetup</primary>
|
---|
| 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
| 256 |
|
---|
| 257 | <varlistentry id="fsadm">
|
---|
| 258 | <term><command>fsadm</command></term>
|
---|
| 259 | <listitem>
|
---|
[c627795] | 260 | <para>
|
---|
| 261 | is an utility used to resize or check filesystem on a device.
|
---|
| 262 | </para>
|
---|
[8bc3edae] | 263 | <indexterm zone="lvm2 fsadm">
|
---|
| 264 | <primary sortas="b-fsadm">fsadm</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="lvm">
|
---|
| 270 | <term><command>lvm</command></term>
|
---|
| 271 | <listitem>
|
---|
[c627795] | 272 | <para>
|
---|
| 273 | provides the command-line tools for <application>LVM2</application>.
|
---|
| 274 | Commands are implemented via sympolic links to this program to
|
---|
| 275 | manage physical devices (pv*), volume groups (vg*) and logical
|
---|
| 276 | volumes (lv*).
|
---|
| 277 | </para>
|
---|
[8bc3edae] | 278 | <indexterm zone="lvm2 lvm">
|
---|
| 279 | <primary sortas="b-lvm">lvm</primary>
|
---|
| 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
| 283 |
|
---|
| 284 | <varlistentry id="lvmconf">
|
---|
| 285 | <term><command>lvmconf</command></term>
|
---|
| 286 | <listitem>
|
---|
[c627795] | 287 | <para>
|
---|
[0d7900a] | 288 | is a script that modifies the locking configuration in
|
---|
[c627795] | 289 | the <application>LVM2</application> configuration file.
|
---|
| 290 | </para>
|
---|
[8bc3edae] | 291 | <indexterm zone="lvm2 lvmconf">
|
---|
| 292 | <primary sortas="b-lvmconf">lvmconf</primary>
|
---|
| 293 | </indexterm>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
| 297 | <varlistentry id="lvmdump">
|
---|
| 298 | <term><command>lvmdump</command></term>
|
---|
| 299 | <listitem>
|
---|
[c627795] | 300 | <para>
|
---|
| 301 | is a tool used to dump various information concerning
|
---|
| 302 | <application>LVM2</application>.
|
---|
| 303 | </para>
|
---|
[8bc3edae] | 304 | <indexterm zone="lvm2 lvmdump">
|
---|
| 305 | <primary sortas="b-lvmdump">lvmdump</primary>
|
---|
| 306 | </indexterm>
|
---|
| 307 | </listitem>
|
---|
| 308 | </varlistentry>
|
---|
| 309 |
|
---|
| 310 | <varlistentry id="vgimportclone">
|
---|
| 311 | <term><command>vgimportclone</command></term>
|
---|
| 312 | <listitem>
|
---|
[c627795] | 313 | <para>
|
---|
| 314 | is used to import a duplicated VG (e.g. hardware snapshot).
|
---|
| 315 | </para>
|
---|
[8bc3edae] | 316 | <indexterm zone="lvm2 vgimportclone">
|
---|
| 317 | <primary sortas="b-vgimportclone">vgimportclone</primary>
|
---|
| 318 | </indexterm>
|
---|
| 319 | </listitem>
|
---|
| 320 | </varlistentry>
|
---|
| 321 |
|
---|
| 322 | <varlistentry id="libdevmapper">
|
---|
| 323 | <term><filename class='libraryfile'>libdevmapper.so</filename></term>
|
---|
| 324 | <listitem>
|
---|
[c627795] | 325 | <para>
|
---|
| 326 | contains the <application>Device Mapper</application> API
|
---|
| 327 | functions.
|
---|
| 328 | </para>
|
---|
[8bc3edae] | 329 | <indexterm zone="lvm2 libdevmapper">
|
---|
| 330 | <primary sortas="c-libdevmapper">libdevmapper.so</primary>
|
---|
| 331 | </indexterm>
|
---|
| 332 | </listitem>
|
---|
| 333 | </varlistentry>
|
---|
| 334 |
|
---|
| 335 | </variablelist>
|
---|
| 336 |
|
---|
| 337 | </sect2>
|
---|
| 338 |
|
---|
| 339 | </sect1>
|
---|