[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">
|
---|
[3caf72a] | 9 | <!ENTITY lvm2-md5sum "1ce5b7f9981e1d02dfd1d3857c8d9fbe">
|
---|
[f60cf4a] | 10 | <!ENTITY lvm2-size "1.2 MB">
|
---|
[c627795] | 11 | <!ENTITY lvm2-buildsize "20 MB">
|
---|
[4591404] | 12 | <!ENTITY lvm2-time "0.6 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 |
|
---|
[e317beb] | 39 | &lfs72_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 |
|
---|
| 75 | <para condition="html" role="usernotes">User Notes:
|
---|
[c627795] | 76 | <ulink url="&blfs-wiki;/lvm2"/>
|
---|
| 77 | </para>
|
---|
[8bc3edae] | 78 | </sect2>
|
---|
| 79 |
|
---|
[c627795] | 80 | <sect2 role="kernel" id="lvm2-kernel">
|
---|
[7e1df8f9] | 81 | <title>Kernel Configuration</title>
|
---|
| 82 |
|
---|
[c627795] | 83 | <para>
|
---|
| 84 | Enable the following option in the kernel configuration
|
---|
| 85 | and recompile the kernel:
|
---|
| 86 | </para>
|
---|
[7e1df8f9] | 87 |
|
---|
| 88 | <screen><literal>Device Drivers --->
|
---|
| 89 | Multiple devices driver support (RAID and LVM): Y
|
---|
| 90 | Device mapper support: Y or M
|
---|
| 91 | Crypt target support: (optional)
|
---|
| 92 | Snapshot target: (optional)
|
---|
| 93 | Mirror target: (optional) </literal></screen>
|
---|
| 94 |
|
---|
| 95 | <indexterm zone="lvm2 lvm2-kernel">
|
---|
| 96 | <primary sortas="d-lvm2">lvm2</primary>
|
---|
| 97 | </indexterm>
|
---|
| 98 |
|
---|
| 99 | </sect2>
|
---|
| 100 |
|
---|
[8bc3edae] | 101 | <sect2 role="installation">
|
---|
[c627795] | 102 | <title>Installation of LVM2</title>
|
---|
[8bc3edae] | 103 |
|
---|
[c627795] | 104 | <para>
|
---|
| 105 | Install <application>LVM2</application> by running the following
|
---|
| 106 | commands:
|
---|
| 107 | </para>
|
---|
[8bc3edae] | 108 |
|
---|
[4591404] | 109 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 110 | --exec-prefix= \
|
---|
[f60cf4a] | 111 | --with-confdir=/etc \
|
---|
[4591404] | 112 | --enable-applib \
|
---|
| 113 | --enable-cmdlib \
|
---|
| 114 | --enable-pkgconfig \
|
---|
[f60cf4a] | 115 | --enable-udev_sync &&
|
---|
[8bc3edae] | 116 | make</userinput></screen>
|
---|
| 117 |
|
---|
[c627795] | 118 | <para>
|
---|
| 119 | To test the results, issue: <command>make check</command>.
|
---|
| 120 | </para>
|
---|
[8bc3edae] | 121 |
|
---|
[c627795] | 122 | <para>
|
---|
| 123 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 124 | </para>
|
---|
[8bc3edae] | 125 |
|
---|
| 126 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 127 |
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2 role="commands">
|
---|
| 131 | <title>Command Explanations</title>
|
---|
| 132 |
|
---|
[c627795] | 133 | <para>
|
---|
| 134 | <option>--enable-applib</option>: This switch enables
|
---|
| 135 | building of the shared application library.
|
---|
| 136 | </para>
|
---|
| 137 |
|
---|
| 138 | <para>
|
---|
| 139 | <option>--enable-cmdlib</option>: This switch enables
|
---|
| 140 | building of the shared command library. It is required
|
---|
| 141 | when building the event daemon.
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <para>
|
---|
| 145 | <option>--enable-pkgconfig</option>: This switch enables
|
---|
| 146 | installation of <command>pkg-config</command> support files.
|
---|
| 147 | </para>
|
---|
| 148 |
|
---|
| 149 | <para>
|
---|
| 150 | <option>--enable-udev_sync</option>: This switch enables
|
---|
| 151 | synchronisation with <application>Udev</application> processing.
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
| 154 | <para>
|
---|
| 155 | <option>--enable-dmeventd</option>: This switch enables
|
---|
| 156 | building of the <application>Device Mapper</application>
|
---|
| 157 | event daemon.
|
---|
| 158 | </para>
|
---|
[8bc3edae] | 159 |
|
---|
| 160 | </sect2>
|
---|
| 161 |
|
---|
| 162 | <sect2 role="content">
|
---|
| 163 | <title>Contents</title>
|
---|
| 164 |
|
---|
| 165 | <segmentedlist>
|
---|
| 166 | <segtitle>Installed Programs</segtitle>
|
---|
| 167 | <segtitle>Installed Libraries</segtitle>
|
---|
| 168 |
|
---|
| 169 | <seglistitem>
|
---|
[c627795] | 170 | <seg>
|
---|
| 171 | dmsetup, fsadm, lvm, lvmconf, lvmdump, vgimportclone. There
|
---|
| 172 | are also numerous symbolic links to lvm that implement
|
---|
| 173 | specific functionality.
|
---|
| 174 | </seg>
|
---|
| 175 | <seg>
|
---|
| 176 | libdevmapper.so, liblvm2app.so and liblvm2cmd.so
|
---|
| 177 | </seg>
|
---|
[8bc3edae] | 178 | </seglistitem>
|
---|
| 179 | </segmentedlist>
|
---|
| 180 |
|
---|
| 181 | <variablelist>
|
---|
| 182 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 183 | <?dbfo list-presentation="list"?>
|
---|
| 184 | <?dbhtml list-presentation="table"?>
|
---|
| 185 |
|
---|
| 186 | <varlistentry id="dmsetup">
|
---|
| 187 | <term><command>dmsetup</command></term>
|
---|
| 188 | <listitem>
|
---|
[c627795] | 189 | <para>
|
---|
| 190 | is a low level logical volume management tool.
|
---|
| 191 | </para>
|
---|
[8bc3edae] | 192 | <indexterm zone="lvm2 dmsetup">
|
---|
| 193 | <primary sortas="b-dmsetup">dmsetup</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
| 197 |
|
---|
| 198 | <varlistentry id="fsadm">
|
---|
| 199 | <term><command>fsadm</command></term>
|
---|
| 200 | <listitem>
|
---|
[c627795] | 201 | <para>
|
---|
| 202 | is an utility used to resize or check filesystem on a device.
|
---|
| 203 | </para>
|
---|
[8bc3edae] | 204 | <indexterm zone="lvm2 fsadm">
|
---|
| 205 | <primary sortas="b-fsadm">fsadm</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
| 210 | <varlistentry id="lvm">
|
---|
| 211 | <term><command>lvm</command></term>
|
---|
| 212 | <listitem>
|
---|
[c627795] | 213 | <para>
|
---|
| 214 | provides the command-line tools for <application>LVM2</application>.
|
---|
| 215 | Commands are implemented via sympolic links to this program to
|
---|
| 216 | manage physical devices (pv*), volume groups (vg*) and logical
|
---|
| 217 | volumes (lv*).
|
---|
| 218 | </para>
|
---|
[8bc3edae] | 219 | <indexterm zone="lvm2 lvm">
|
---|
| 220 | <primary sortas="b-lvm">lvm</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="lvmconf">
|
---|
| 226 | <term><command>lvmconf</command></term>
|
---|
| 227 | <listitem>
|
---|
[c627795] | 228 | <para>
|
---|
| 229 | is a script that modifies the locking configuration in
|
---|
| 230 | the <application>LVM2</application> configuration file.
|
---|
| 231 | </para>
|
---|
[8bc3edae] | 232 | <indexterm zone="lvm2 lvmconf">
|
---|
| 233 | <primary sortas="b-lvmconf">lvmconf</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
| 237 |
|
---|
| 238 | <varlistentry id="lvmdump">
|
---|
| 239 | <term><command>lvmdump</command></term>
|
---|
| 240 | <listitem>
|
---|
[c627795] | 241 | <para>
|
---|
| 242 | is a tool used to dump various information concerning
|
---|
| 243 | <application>LVM2</application>.
|
---|
| 244 | </para>
|
---|
[8bc3edae] | 245 | <indexterm zone="lvm2 lvmdump">
|
---|
| 246 | <primary sortas="b-lvmdump">lvmdump</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="vgimportclone">
|
---|
| 252 | <term><command>vgimportclone</command></term>
|
---|
| 253 | <listitem>
|
---|
[c627795] | 254 | <para>
|
---|
| 255 | is used to import a duplicated VG (e.g. hardware snapshot).
|
---|
| 256 | </para>
|
---|
[8bc3edae] | 257 | <indexterm zone="lvm2 vgimportclone">
|
---|
| 258 | <primary sortas="b-vgimportclone">vgimportclone</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
| 263 | <varlistentry id="libdevmapper">
|
---|
| 264 | <term><filename class='libraryfile'>libdevmapper.so</filename></term>
|
---|
| 265 | <listitem>
|
---|
[c627795] | 266 | <para>
|
---|
| 267 | contains the <application>Device Mapper</application> API
|
---|
| 268 | functions.
|
---|
| 269 | </para>
|
---|
[8bc3edae] | 270 | <indexterm zone="lvm2 libdevmapper">
|
---|
| 271 | <primary sortas="c-libdevmapper">libdevmapper.so</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | </variablelist>
|
---|
| 277 |
|
---|
| 278 | </sect2>
|
---|
| 279 |
|
---|
| 280 | </sect1>
|
---|