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 Device-mapper-download-http " ">
|
---|
8 | <!ENTITY Device-mapper-download-ftp "ftp://sources.redhat.com/pub/lvm2/LVM2.&LVM2-version;.tgz">
|
---|
9 | <!ENTITY Device-mapper-md5sum "72e3d66dc42aaf67dca475196a113528">
|
---|
10 | <!ENTITY Device-mapper-size "833 KB">
|
---|
11 | <!ENTITY Device-mapper-buildsize "7 MB">
|
---|
12 | <!ENTITY Device-mapper-time "0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="Device-mapper" xreflabel="Device-mapper-&Device-mapper-version;">
|
---|
16 | <?dbhtml filename="Device-mapper.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>Device-mapper-&Device-mapper-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="Device-mapper">
|
---|
26 | <primary sortas="a-Device-mapper">Device-mapper</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to Device-mapper</title>
|
---|
31 |
|
---|
32 | <para>The <application>Device-mapper</application> package is an
|
---|
33 | implementation of a minimalistic kernel-space driver that handles volume
|
---|
34 | management, while keeping knowledge of the underlying device layout in
|
---|
35 | user-space.</para>
|
---|
36 |
|
---|
37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
38 | <itemizedlist spacing="compact">
|
---|
39 | <listitem>
|
---|
40 | <para>Download (HTTP): <ulink url="&Device-mapper-download-http;"/></para>
|
---|
41 | </listitem>
|
---|
42 | <listitem>
|
---|
43 | <para>Download (FTP): <ulink url="&Device-mapper-download-ftp;"/></para>
|
---|
44 | </listitem>
|
---|
45 | <listitem>
|
---|
46 | <para>Download MD5 sum: &Device-mapper-md5sum;</para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>Download size: &Device-mapper-size;</para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Estimated disk space required: &Device-mapper-buildsize;</para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Estimated build time: &Device-mapper-time;</para>
|
---|
56 | </listitem>
|
---|
57 | </itemizedlist>
|
---|
58 |
|
---|
59 | <para condition="html" role="usernotes">User Notes:
|
---|
60 | <ulink url="&blfs-wiki;/Device-mapper"/></para>
|
---|
61 |
|
---|
62 | </sect2>
|
---|
63 |
|
---|
64 | <sect2 role="installation">
|
---|
65 | <title>Installation of Device-mapper</title>
|
---|
66 |
|
---|
67 | <para>Install <application>Device-mapper</application> by running the following
|
---|
68 | commands:</para>
|
---|
69 |
|
---|
70 | <screen><userinput>./configure --prefix=/usr \
|
---|
71 | --enable-pkgconfig &&
|
---|
72 | make device-mapper</userinput></screen>
|
---|
73 |
|
---|
74 | <!-- Note, there is a test suite (make check), but it is for LVM2 -->
|
---|
75 |
|
---|
76 | <para>This package does not come with a test suite.</para>
|
---|
77 |
|
---|
78 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
79 |
|
---|
80 | <screen role="root"><userinput>make install_device-mapper</userinput></screen>
|
---|
81 |
|
---|
82 | </sect2>
|
---|
83 |
|
---|
84 | <sect2 role="commands">
|
---|
85 | <title>Command Explanations</title>
|
---|
86 |
|
---|
87 | <para><parameter>--enable-pkgconfig</parameter>: This parameter installs
|
---|
88 | pkgconfig support.</para>
|
---|
89 |
|
---|
90 | <para><option>--enable-dmeventd</option>: This option builds the
|
---|
91 | device-mapper event daemon.</para>
|
---|
92 |
|
---|
93 | <para><option>--enable-cmdlib</option>: This option builds the shared
|
---|
94 | command library. It is required when building the daemon.</para>
|
---|
95 |
|
---|
96 | </sect2>
|
---|
97 |
|
---|
98 | <!-- TODO FIXME Need to create a boot script for dmeventd (devmapper-event)
|
---|
99 | According to CBLFS, only needed in very specific situations.
|
---|
100 |
|
---|
101 | <sect2 role="configuration">
|
---|
102 | <title>Configuring Device-mapper</title>
|
---|
103 |
|
---|
104 | <sect3 id="Device-mapper-init">
|
---|
105 | <title>Boot Script</title>
|
---|
106 |
|
---|
107 | <para>To automatically start the <command>Device-mapper</command> daemon
|
---|
108 | when the system is rebooted, install the
|
---|
109 | <filename>/etc/rc.d/init.d/Device-mapper</filename>
|
---|
110 | bootscript from the
|
---|
111 | <xref linkend="bootscripts"/> package.</para>
|
---|
112 |
|
---|
113 | <indexterm zone="Device-mapper Device-mapper-init">
|
---|
114 | <primary sortas="f-Device-mapper">Device-mapper</primary>
|
---|
115 | </indexterm>
|
---|
116 |
|
---|
117 | <screen role="root"><userinput>make install-device-mapper</userinput></screen>
|
---|
118 |
|
---|
119 | </sect3>
|
---|
120 |
|
---|
121 | </sect2>
|
---|
122 |
|
---|
123 | -->
|
---|
124 |
|
---|
125 | <sect2 role="content">
|
---|
126 | <title>Contents</title>
|
---|
127 |
|
---|
128 | <segmentedlist>
|
---|
129 | <segtitle>Installed Programs</segtitle>
|
---|
130 | <segtitle>Installed Libraries</segtitle>
|
---|
131 | <segtitle>Installed Directories</segtitle>
|
---|
132 |
|
---|
133 | <seglistitem>
|
---|
134 | <seg>dmeventd and dmsetup</seg>
|
---|
135 | <seg>libdevmapper-event.so and libdevmapper.so</seg>
|
---|
136 | <seg>None</seg>
|
---|
137 | </seglistitem>
|
---|
138 | </segmentedlist>
|
---|
139 |
|
---|
140 | <variablelist>
|
---|
141 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
142 | <?dbfo list-presentation="list"?>
|
---|
143 | <?dbhtml list-presentation="table"?>
|
---|
144 |
|
---|
145 | <varlistentry id="dmsetup">
|
---|
146 | <term><command>dmsetup</command></term>
|
---|
147 | <listitem>
|
---|
148 | <para>is a low level logical volume management tool.</para>
|
---|
149 | <indexterm zone="Device-mapper dmsetup">
|
---|
150 | <primary sortas="b-dmsetup">dmsetup</primary>
|
---|
151 | </indexterm>
|
---|
152 | </listitem>
|
---|
153 | </varlistentry>
|
---|
154 |
|
---|
155 | <varlistentry id="libdevmapper">
|
---|
156 | <term><filename class='libraryfile'>libdevmapper.so</filename></term>
|
---|
157 | <listitem>
|
---|
158 | <para>contains the <application>Device-mapper</application> API
|
---|
159 | functions.</para>
|
---|
160 | <indexterm zone="Device-mapper libdevmapper">
|
---|
161 | <primary sortas="c-libdevmapper">libdevmapper.so</primary>
|
---|
162 | </indexterm>
|
---|
163 | </listitem>
|
---|
164 | </varlistentry>
|
---|
165 |
|
---|
166 | </variablelist>
|
---|
167 |
|
---|
168 | </sect2>
|
---|
169 |
|
---|
170 | </sect1>
|
---|