[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">
|
---|
[22faf254] | 9 | <!ENTITY lvm2-md5sum "02487ab2a9e02d1ee76fe217183df28a">
|
---|
| 10 | <!ENTITY lvm2-size "1.5 MB">
|
---|
| 11 | <!ENTITY lvm2-buildsize "27 MB (additional 8 MB to run the test suite)">
|
---|
[99d528c] | 12 | <!ENTITY lvm2-time "0.4 SBU (additional 5.4 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 |
|
---|
[12cb8c2d] | 39 | &lfs76_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 |
|
---|
[6cfbed09] | 123 | <screen><userinput>./configure --prefix=/usr \
|
---|
[4591404] | 124 | --exec-prefix= \
|
---|
[f60cf4a] | 125 | --with-confdir=/etc \
|
---|
[4591404] | 126 | --enable-applib \
|
---|
| 127 | --enable-cmdlib \
|
---|
| 128 | --enable-pkgconfig \
|
---|
[a1b18af2] | 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>
|
---|
[2800af7] | 153 | <parameter>--enable-applib</parameter>: This switch enables
|
---|
[c627795] | 154 | building of the shared application library.
|
---|
| 155 | </para>
|
---|
| 156 |
|
---|
| 157 | <para>
|
---|
[2800af7] | 158 | <parameter>--enable-cmdlib</parameter>: This switch enables
|
---|
[c627795] | 159 | building of the shared command library. It is required
|
---|
| 160 | when building the event daemon.
|
---|
| 161 | </para>
|
---|
| 162 |
|
---|
| 163 | <para>
|
---|
[2800af7] | 164 | <parameter>--enable-pkgconfig</parameter>: This switch enables
|
---|
[c627795] | 165 | installation of <command>pkg-config</command> support files.
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <para>
|
---|
[2800af7] | 169 | <parameter>--enable-udev_sync</parameter>: This switch enables
|
---|
[c627795] | 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>
|
---|
[8ed30d52] | 191 | blkdeactivate, dmeventd (optional), dmsetup, fsadm, lvm, lvmconf,
|
---|
| 192 | lvmdump, vgimportclone. There are also numerous symbolic links to
|
---|
[99d528c] | 193 | lvm that implement specific functionality
|
---|
[c627795] | 194 | </seg>
|
---|
| 195 | <seg>
|
---|
[a037dab] | 196 | libdevmapper.so, liblvm2app.so and liblvm2cmd.so; optional:
|
---|
| 197 | libdevmapper-event.so, libdevmapper-event-lvm2.so,
|
---|
| 198 | libdevmapper-event-lvm2mirror.so, libdevmapper-event-lvm2snapshot.so,
|
---|
[99d528c] | 199 | libdevmapper-event-lvm2raid.so, and libdevmapper-event-lvm2thin.so
|
---|
[c627795] | 200 | </seg>
|
---|
[c3c56b2] | 201 | <seg>
|
---|
[a037dab] | 202 | /etc/lvm and
|
---|
| 203 | /lib/device-mapper (optional)
|
---|
[c3c56b2] | 204 | </seg>
|
---|
[8bc3edae] | 205 | </seglistitem>
|
---|
| 206 | </segmentedlist>
|
---|
| 207 |
|
---|
| 208 | <variablelist>
|
---|
| 209 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 210 | <?dbfo list-presentation="list"?>
|
---|
[61b95ac4] | 211 |
|
---|
| 212 | <?dbhtml list-presentation="table"?>
|
---|
[8bc3edae] | 213 |
|
---|
[8ed30d52] | 214 | <varlistentry id="blkdeactivate">
|
---|
| 215 | <term><command>blkdeactivate</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>
|
---|
| 218 | utility to deactivate block device.
|
---|
| 219 | </para>
|
---|
| 220 | <indexterm zone="lvm2 blkdeactivate">
|
---|
| 221 | <primary sortas="b-blkdeactivate">blkdeactivate</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
[a037dab] | 226 | <varlistentry id="dmeventd">
|
---|
| 227 | <term><command>dmeventd</command></term>
|
---|
| 228 | <listitem>
|
---|
| 229 | <para>
|
---|
| 230 | (optional) is the Device Mapper event daemon.
|
---|
| 231 | </para>
|
---|
| 232 | <indexterm zone="lvm2 dmeventd">
|
---|
| 233 | <primary sortas="b-dmeventd">dmeventd</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
| 237 |
|
---|
[8bc3edae] | 238 | <varlistentry id="dmsetup">
|
---|
| 239 | <term><command>dmsetup</command></term>
|
---|
| 240 | <listitem>
|
---|
[c627795] | 241 | <para>
|
---|
| 242 | is a low level logical volume management tool.
|
---|
| 243 | </para>
|
---|
[8bc3edae] | 244 | <indexterm zone="lvm2 dmsetup">
|
---|
| 245 | <primary sortas="b-dmsetup">dmsetup</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
| 250 | <varlistentry id="fsadm">
|
---|
| 251 | <term><command>fsadm</command></term>
|
---|
| 252 | <listitem>
|
---|
[c627795] | 253 | <para>
|
---|
| 254 | is an utility used to resize or check filesystem on a device.
|
---|
| 255 | </para>
|
---|
[8bc3edae] | 256 | <indexterm zone="lvm2 fsadm">
|
---|
| 257 | <primary sortas="b-fsadm">fsadm</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
| 262 | <varlistentry id="lvm">
|
---|
| 263 | <term><command>lvm</command></term>
|
---|
| 264 | <listitem>
|
---|
[c627795] | 265 | <para>
|
---|
| 266 | provides the command-line tools for <application>LVM2</application>.
|
---|
| 267 | Commands are implemented via sympolic links to this program to
|
---|
| 268 | manage physical devices (pv*), volume groups (vg*) and logical
|
---|
| 269 | volumes (lv*).
|
---|
| 270 | </para>
|
---|
[8bc3edae] | 271 | <indexterm zone="lvm2 lvm">
|
---|
| 272 | <primary sortas="b-lvm">lvm</primary>
|
---|
| 273 | </indexterm>
|
---|
| 274 | </listitem>
|
---|
| 275 | </varlistentry>
|
---|
| 276 |
|
---|
| 277 | <varlistentry id="lvmconf">
|
---|
| 278 | <term><command>lvmconf</command></term>
|
---|
| 279 | <listitem>
|
---|
[c627795] | 280 | <para>
|
---|
[0d7900a] | 281 | is a script that modifies the locking configuration in
|
---|
[c627795] | 282 | the <application>LVM2</application> configuration file.
|
---|
| 283 | </para>
|
---|
[8bc3edae] | 284 | <indexterm zone="lvm2 lvmconf">
|
---|
| 285 | <primary sortas="b-lvmconf">lvmconf</primary>
|
---|
| 286 | </indexterm>
|
---|
| 287 | </listitem>
|
---|
| 288 | </varlistentry>
|
---|
| 289 |
|
---|
| 290 | <varlistentry id="lvmdump">
|
---|
| 291 | <term><command>lvmdump</command></term>
|
---|
| 292 | <listitem>
|
---|
[c627795] | 293 | <para>
|
---|
| 294 | is a tool used to dump various information concerning
|
---|
| 295 | <application>LVM2</application>.
|
---|
| 296 | </para>
|
---|
[8bc3edae] | 297 | <indexterm zone="lvm2 lvmdump">
|
---|
| 298 | <primary sortas="b-lvmdump">lvmdump</primary>
|
---|
| 299 | </indexterm>
|
---|
| 300 | </listitem>
|
---|
| 301 | </varlistentry>
|
---|
| 302 |
|
---|
| 303 | <varlistentry id="vgimportclone">
|
---|
| 304 | <term><command>vgimportclone</command></term>
|
---|
| 305 | <listitem>
|
---|
[c627795] | 306 | <para>
|
---|
| 307 | is used to import a duplicated VG (e.g. hardware snapshot).
|
---|
| 308 | </para>
|
---|
[8bc3edae] | 309 | <indexterm zone="lvm2 vgimportclone">
|
---|
| 310 | <primary sortas="b-vgimportclone">vgimportclone</primary>
|
---|
| 311 | </indexterm>
|
---|
| 312 | </listitem>
|
---|
| 313 | </varlistentry>
|
---|
| 314 |
|
---|
| 315 | <varlistentry id="libdevmapper">
|
---|
| 316 | <term><filename class='libraryfile'>libdevmapper.so</filename></term>
|
---|
| 317 | <listitem>
|
---|
[c627795] | 318 | <para>
|
---|
| 319 | contains the <application>Device Mapper</application> API
|
---|
| 320 | functions.
|
---|
| 321 | </para>
|
---|
[8bc3edae] | 322 | <indexterm zone="lvm2 libdevmapper">
|
---|
| 323 | <primary sortas="c-libdevmapper">libdevmapper.so</primary>
|
---|
| 324 | </indexterm>
|
---|
| 325 | </listitem>
|
---|
| 326 | </varlistentry>
|
---|
| 327 |
|
---|
| 328 | </variablelist>
|
---|
| 329 |
|
---|
| 330 | </sect2>
|
---|
| 331 |
|
---|
| 332 | </sect1>
|
---|