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