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 " ">
|
---|
8 | <!ENTITY lvm2-download-ftp "ftp://sources.redhat.com/pub/lvm2/LVM2.&LVM2-version;.tgz">
|
---|
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 |
|
---|
66 | <sect2 role="installation">
|
---|
67 | <title>Installation of lvm2</title>
|
---|
68 |
|
---|
69 | <para>Install <application>lvm2</application> by running the following
|
---|
70 | commands:</para>
|
---|
71 |
|
---|
72 | <screen><userinput>./configure --prefix=/usr --enable-pkgconfig &&
|
---|
73 | make</userinput></screen>
|
---|
74 |
|
---|
75 | <!-- Note, there is a test suite (make check), but it is for LVM2 -->
|
---|
76 |
|
---|
77 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
78 |
|
---|
79 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
80 |
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2 role="commands">
|
---|
84 | <title>Command Explanations</title>
|
---|
85 |
|
---|
86 | <para><parameter>--enable-pkgconfig</parameter>: This parameter installs
|
---|
87 | pkgconfig support.</para>
|
---|
88 |
|
---|
89 | <para><option>--enable-dmeventd</option>: This option builds the
|
---|
90 | device-mapper event daemon.</para>
|
---|
91 |
|
---|
92 | <para><option>--enable-cmdlib</option>: This option builds the shared
|
---|
93 | command library. It is required when building the daemon.</para>
|
---|
94 |
|
---|
95 | </sect2>
|
---|
96 |
|
---|
97 | <!-- TODO FIXME Need to create a boot script for dmeventd (devmapper-event)
|
---|
98 | According to CBLFS, only needed in very specific situations.
|
---|
99 |
|
---|
100 | <sect2 role="configuration">
|
---|
101 | <title>Configuring device-mapper</title>
|
---|
102 |
|
---|
103 | <sect3 id="device-mapper-init">
|
---|
104 | <title>Boot Script</title>
|
---|
105 |
|
---|
106 | <para>To automatically start the <command>device-mapper</command> daemon
|
---|
107 | when the system is rebooted, install the
|
---|
108 | <filename>/etc/rc.d/init.d/device-mapper</filename>
|
---|
109 | bootscript from the
|
---|
110 | <xref linkend="bootscripts"/> package.</para>
|
---|
111 |
|
---|
112 | <indexterm zone="device-mapper device-mapper-init">
|
---|
113 | <primary sortas="f-device-mapper">device-mapper</primary>
|
---|
114 | </indexterm>
|
---|
115 |
|
---|
116 | <screen role="root"><userinput>make install-device-mapper</userinput></screen>
|
---|
117 |
|
---|
118 | </sect3>
|
---|
119 |
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | -->
|
---|
123 |
|
---|
124 | <sect2 role="content">
|
---|
125 | <title>Contents</title>
|
---|
126 |
|
---|
127 | <segmentedlist>
|
---|
128 | <segtitle>Installed Programs</segtitle>
|
---|
129 | <segtitle>Installed Libraries</segtitle>
|
---|
130 | <segtitle>Installed Directories</segtitle>
|
---|
131 |
|
---|
132 | <seglistitem>
|
---|
133 | <seg>dmsetup, fsadm, lvm, lvmconf, lvndump, vgimportclone. There
|
---|
134 | are also numerous symbolic links to lvm to impement specific
|
---|
135 | functionality.</seg>
|
---|
136 | <seg>libdevmapper.so</seg>
|
---|
137 | <seg>None</seg>
|
---|
138 | </seglistitem>
|
---|
139 | </segmentedlist>
|
---|
140 |
|
---|
141 | <variablelist>
|
---|
142 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
143 | <?dbfo list-presentation="list"?>
|
---|
144 | <?dbhtml list-presentation="table"?>
|
---|
145 |
|
---|
146 | <varlistentry id="dmsetup">
|
---|
147 | <term><command>dmsetup</command></term>
|
---|
148 | <listitem>
|
---|
149 | <para>is a low level logical volume management tool.</para>
|
---|
150 | <indexterm zone="lvm2 dmsetup">
|
---|
151 | <primary sortas="b-dmsetup">dmsetup</primary>
|
---|
152 | </indexterm>
|
---|
153 | </listitem>
|
---|
154 | </varlistentry>
|
---|
155 |
|
---|
156 | <varlistentry id="fsadm">
|
---|
157 | <term><command>fsadm</command></term>
|
---|
158 | <listitem>
|
---|
159 | <para>is a utility to resize or check filesystem on a device.</para>
|
---|
160 | <indexterm zone="lvm2 fsadm">
|
---|
161 | <primary sortas="b-fsadm">fsadm</primary>
|
---|
162 | </indexterm>
|
---|
163 | </listitem>
|
---|
164 | </varlistentry>
|
---|
165 |
|
---|
166 | <varlistentry id="lvm">
|
---|
167 | <term><command>lvm</command></term>
|
---|
168 | <listitem>
|
---|
169 | <para>provides the command-line tools for lvm2. Commands are
|
---|
170 | implemented via sympolic links to this program to manage physical
|
---|
171 | devices (pv*), volume groups (vg*), and logical volumes (lv*).</para>
|
---|
172 | <indexterm zone="lvm2 lvm">
|
---|
173 | <primary sortas="b-lvm">lvm</primary>
|
---|
174 | </indexterm>
|
---|
175 | </listitem>
|
---|
176 | </varlistentry>
|
---|
177 |
|
---|
178 | <varlistentry id="lvmconf">
|
---|
179 | <term><command>lvmconf</command></term>
|
---|
180 | <listitem>
|
---|
181 | <para>is a script that modifies the locking configuration in
|
---|
182 | an lvm configuration file.</para>
|
---|
183 | <indexterm zone="lvm2 lvmconf">
|
---|
184 | <primary sortas="b-lvmconf">lvmconf</primary>
|
---|
185 | </indexterm>
|
---|
186 | </listitem>
|
---|
187 | </varlistentry>
|
---|
188 |
|
---|
189 | <varlistentry id="lvmdump">
|
---|
190 | <term><command>lvmdump</command></term>
|
---|
191 | <listitem>
|
---|
192 | <para>is a tool to dump various information concerning lvm2.</para>
|
---|
193 | <indexterm zone="lvm2 lvmdump">
|
---|
194 | <primary sortas="b-lvmdump">lvmdump</primary>
|
---|
195 | </indexterm>
|
---|
196 | </listitem>
|
---|
197 | </varlistentry>
|
---|
198 |
|
---|
199 | <varlistentry id="vgimportclone">
|
---|
200 | <term><command>vgimportclone</command></term>
|
---|
201 | <listitem>
|
---|
202 | <para>is used to import a duplicated VG (e.g. hardware snapshot).</para>
|
---|
203 | <indexterm zone="lvm2 vgimportclone">
|
---|
204 | <primary sortas="b-vgimportclone">vgimportclone</primary>
|
---|
205 | </indexterm>
|
---|
206 | </listitem>
|
---|
207 | </varlistentry>
|
---|
208 |
|
---|
209 | <varlistentry id="libdevmapper">
|
---|
210 | <term><filename class='libraryfile'>libdevmapper.so</filename></term>
|
---|
211 | <listitem>
|
---|
212 | <para>contains the <application>device-mapper</application> API
|
---|
213 | functions.</para>
|
---|
214 | <indexterm zone="lvm2 libdevmapper">
|
---|
215 | <primary sortas="c-libdevmapper">libdevmapper.so</primary>
|
---|
216 | </indexterm>
|
---|
217 | </listitem>
|
---|
218 | </varlistentry>
|
---|
219 |
|
---|
220 | </variablelist>
|
---|
221 |
|
---|
222 | </sect2>
|
---|
223 |
|
---|
224 | </sect1>
|
---|