[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">
|
---|
[8bc3edae] | 9 | <!ENTITY lvm2-md5sum "321429cd1b1526a29cf6d75018b1e4bb">
|
---|
| 10 | <!ENTITY lvm2-size "1 MB">
|
---|
| 11 | <!ENTITY lvm2-buildsize "15 MB">
|
---|
| 12 | <!ENTITY lvm2-time "0.3 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="lvm2" xreflabel="lvm-&lvm2-version;">
|
---|
| 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
|
---|
| 33 | logical partitions. It allows spanning of file systems across multiple
|
---|
| 34 | physical disks and disk partitions and provides for dynamic growing or shrinking
|
---|
| 35 | of logical partitions.</para>
|
---|
| 36 |
|
---|
| 37 | &lfs70_checked;
|
---|
| 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <!--<listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&lvm2-download-http;"/></para>
|
---|
| 43 | </listitem>-->
|
---|
| 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 |
|
---|
[ab2d4d1e] | 91 | <screen><userinput>./configure --sbindir=/sbin --libdir=/lib --enable-pkgconfig &&
|
---|
[8bc3edae] | 92 | make</userinput></screen>
|
---|
| 93 |
|
---|
| 94 | <!-- Note, there is a test suite (make check), but it is for LVM2 -->
|
---|
| 95 |
|
---|
| 96 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 97 |
|
---|
| 98 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 99 |
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="commands">
|
---|
| 103 | <title>Command Explanations</title>
|
---|
| 104 |
|
---|
| 105 | <para><parameter>--enable-pkgconfig</parameter>: This parameter installs
|
---|
| 106 | pkgconfig support.</para>
|
---|
| 107 |
|
---|
| 108 | <para><option>--enable-dmeventd</option>: This option builds the
|
---|
| 109 | device-mapper event daemon.</para>
|
---|
| 110 |
|
---|
| 111 | <para><option>--enable-cmdlib</option>: This option builds the shared
|
---|
| 112 | command library. It is required when building the daemon.</para>
|
---|
| 113 |
|
---|
| 114 | </sect2>
|
---|
| 115 |
|
---|
| 116 | <!-- TODO FIXME Need to create a boot script for dmeventd (devmapper-event)
|
---|
| 117 | According to CBLFS, only needed in very specific situations.
|
---|
| 118 |
|
---|
| 119 | <sect2 role="configuration">
|
---|
| 120 | <title>Configuring device-mapper</title>
|
---|
| 121 |
|
---|
| 122 | <sect3 id="device-mapper-init">
|
---|
| 123 | <title>Boot Script</title>
|
---|
| 124 |
|
---|
| 125 | <para>To automatically start the <command>device-mapper</command> daemon
|
---|
| 126 | when the system is rebooted, install the
|
---|
| 127 | <filename>/etc/rc.d/init.d/device-mapper</filename>
|
---|
| 128 | bootscript from the
|
---|
| 129 | <xref linkend="bootscripts"/> package.</para>
|
---|
| 130 |
|
---|
| 131 | <indexterm zone="device-mapper device-mapper-init">
|
---|
| 132 | <primary sortas="f-device-mapper">device-mapper</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 |
|
---|
| 135 | <screen role="root"><userinput>make install-device-mapper</userinput></screen>
|
---|
| 136 |
|
---|
| 137 | </sect3>
|
---|
| 138 |
|
---|
| 139 | </sect2>
|
---|
| 140 |
|
---|
| 141 | -->
|
---|
| 142 |
|
---|
| 143 | <sect2 role="content">
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
| 147 | <segtitle>Installed Programs</segtitle>
|
---|
| 148 | <segtitle>Installed Libraries</segtitle>
|
---|
| 149 | <segtitle>Installed Directories</segtitle>
|
---|
| 150 |
|
---|
| 151 | <seglistitem>
|
---|
| 152 | <seg>dmsetup, fsadm, lvm, lvmconf, lvndump, vgimportclone. There
|
---|
| 153 | are also numerous symbolic links to lvm to impement specific
|
---|
| 154 | functionality.</seg>
|
---|
| 155 | <seg>libdevmapper.so</seg>
|
---|
| 156 | <seg>None</seg>
|
---|
| 157 | </seglistitem>
|
---|
| 158 | </segmentedlist>
|
---|
| 159 |
|
---|
| 160 | <variablelist>
|
---|
| 161 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 162 | <?dbfo list-presentation="list"?>
|
---|
| 163 | <?dbhtml list-presentation="table"?>
|
---|
| 164 |
|
---|
| 165 | <varlistentry id="dmsetup">
|
---|
| 166 | <term><command>dmsetup</command></term>
|
---|
| 167 | <listitem>
|
---|
| 168 | <para>is a low level logical volume management tool.</para>
|
---|
| 169 | <indexterm zone="lvm2 dmsetup">
|
---|
| 170 | <primary sortas="b-dmsetup">dmsetup</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
| 175 | <varlistentry id="fsadm">
|
---|
| 176 | <term><command>fsadm</command></term>
|
---|
| 177 | <listitem>
|
---|
| 178 | <para>is a utility to resize or check filesystem on a device.</para>
|
---|
| 179 | <indexterm zone="lvm2 fsadm">
|
---|
| 180 | <primary sortas="b-fsadm">fsadm</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
| 185 | <varlistentry id="lvm">
|
---|
| 186 | <term><command>lvm</command></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>provides the command-line tools for lvm2. Commands are
|
---|
| 189 | implemented via sympolic links to this program to manage physical
|
---|
| 190 | devices (pv*), volume groups (vg*), and logical volumes (lv*).</para>
|
---|
| 191 | <indexterm zone="lvm2 lvm">
|
---|
| 192 | <primary sortas="b-lvm">lvm</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
| 196 |
|
---|
| 197 | <varlistentry id="lvmconf">
|
---|
| 198 | <term><command>lvmconf</command></term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <para>is a script that modifies the locking configuration in
|
---|
| 201 | an lvm configuration file.</para>
|
---|
| 202 | <indexterm zone="lvm2 lvmconf">
|
---|
| 203 | <primary sortas="b-lvmconf">lvmconf</primary>
|
---|
| 204 | </indexterm>
|
---|
| 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="lvmdump">
|
---|
| 209 | <term><command>lvmdump</command></term>
|
---|
| 210 | <listitem>
|
---|
| 211 | <para>is a tool to dump various information concerning lvm2.</para>
|
---|
| 212 | <indexterm zone="lvm2 lvmdump">
|
---|
| 213 | <primary sortas="b-lvmdump">lvmdump</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
| 218 | <varlistentry id="vgimportclone">
|
---|
| 219 | <term><command>vgimportclone</command></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>is used to import a duplicated VG (e.g. hardware snapshot).</para>
|
---|
| 222 | <indexterm zone="lvm2 vgimportclone">
|
---|
| 223 | <primary sortas="b-vgimportclone">vgimportclone</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
| 228 | <varlistentry id="libdevmapper">
|
---|
| 229 | <term><filename class='libraryfile'>libdevmapper.so</filename></term>
|
---|
| 230 | <listitem>
|
---|
| 231 | <para>contains the <application>device-mapper</application> API
|
---|
| 232 | functions.</para>
|
---|
| 233 | <indexterm zone="lvm2 libdevmapper">
|
---|
| 234 | <primary sortas="c-libdevmapper">libdevmapper.so</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
| 239 | </variablelist>
|
---|
| 240 |
|
---|
| 241 | </sect2>
|
---|
| 242 |
|
---|
| 243 | </sect1>
|
---|