[ec9b2d7] | 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 |
|
---|
[78bfd941] | 7 | <!ENTITY mdadm-download-http "&kernel;linux/utils/raid/mdadm/mdadm-&mdadm-version;.tar.xz">
|
---|
[ec9b2d7] | 8 | <!ENTITY mdadm-download-ftp " ">
|
---|
[ddc4677] | 9 | <!ENTITY mdadm-md5sum "44698d351501cac6a89072dc877eb220">
|
---|
| 10 | <!ENTITY mdadm-size "402 KB">
|
---|
| 11 | <!ENTITY mdadm-buildsize "8.3 MB">
|
---|
[b6d51d20] | 12 | <!ENTITY mdadm-time "less than 0.1 SBU">
|
---|
[ec9b2d7] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="mdadm" xreflabel="mdadm-&mdadm-version;">
|
---|
| 16 | <?dbhtml filename="mdadm.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>mdadm-&mdadm-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="mdadm">
|
---|
| 26 | <primary sortas="a-mdadm">mdadm</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to mdadm</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>mdadm</application> package contains administration
|
---|
[6fcb1b9] | 33 | tools for software RAID.</para>
|
---|
[ec9b2d7] | 34 |
|
---|
[ddc4677] | 35 | &lfs75_built;
|
---|
[ec9b2d7] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&mdadm-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&mdadm-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &mdadm-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &mdadm-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &mdadm-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &mdadm-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
| 59 | <para condition="html" role="usernotes">User Notes:
|
---|
[0ec71e95] | 60 | <ulink url="&blfs-wiki;/mdadm"/></para>
|
---|
[ec9b2d7] | 61 |
|
---|
| 62 | </sect2>
|
---|
| 63 |
|
---|
| 64 | <sect2 role="kernel" id='mdadm-kernel'>
|
---|
| 65 | <title>Kernel Configuration</title>
|
---|
| 66 |
|
---|
| 67 | <para>Enable the following options in the kernel configuration
|
---|
| 68 | and recompile the kernel, if necessary. Only the RAID types desired
|
---|
| 69 | are required. </para>
|
---|
| 70 |
|
---|
| 71 | <screen><literal>File Systems:
|
---|
[0d7900a] | 72 | Device Drivers:
|
---|
[ec9b2d7] | 73 | Multiple devices driver support (RAID and LVM): Y
|
---|
| 74 | RAID support: Y or M
|
---|
| 75 | Autodetect RAID arrays during kernel boot: Y
|
---|
| 76 | Linear (append) mode: Y or M
|
---|
| 77 | RAID-0 (striping) mode : Y or M
|
---|
| 78 | RAID-1 (mirroring) mode : Y or M
|
---|
| 79 | RAID-10 (mirrored striping) mode: Y or M
|
---|
| 80 | RAID-4/RAID-5/RAID-6 mode : Y or M</literal></screen>
|
---|
| 81 |
|
---|
| 82 | <indexterm zone="mdadm mdadm-kernel">
|
---|
| 83 | <primary sortas="d-mdadm">mdadm</primary>
|
---|
| 84 | </indexterm>
|
---|
| 85 |
|
---|
| 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 role="installation">
|
---|
| 89 | <title>Installation of mdadm</title>
|
---|
| 90 |
|
---|
[101cab5f] | 91 | <para>
|
---|
[71952e0] | 92 | First, fix a problem inroduced by <application>&gcc-490;</application>:
|
---|
[101cab5f] | 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <screen><userinput>sed -i 's/Wall -Werror/Wall/' Makefile</userinput></screen>
|
---|
| 96 |
|
---|
[ec9b2d7] | 97 | <para>Install <application>mdadm</application> by running the following
|
---|
| 98 | commands:</para>
|
---|
| 99 |
|
---|
[b6d51d20] | 100 | <screen><userinput>make</userinput></screen>
|
---|
[ec9b2d7] | 101 |
|
---|
[b6d51d20] | 102 | <para>If you wish to run the tests, ensure that your kernel supports
|
---|
| 103 | RAID and that a version of mdadm is not already running, and issue:
|
---|
| 104 | <command>make test</command> and then, as the
|
---|
| 105 | <systemitem class="username">root</systemitem> user: ./test</para>
|
---|
[ec9b2d7] | 106 |
|
---|
| 107 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 108 |
|
---|
| 109 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 110 |
|
---|
| 111 | </sect2>
|
---|
| 112 |
|
---|
[b6d51d20] | 113 | <sect2 role="commands">
|
---|
| 114 | <title>Command Explanations</title>
|
---|
| 115 |
|
---|
[ddc4677] | 116 | <para><option>make everything</option>: This target creates extra programs,
|
---|
[b6d51d20] | 117 | particularly a statically-linked version of <command>mdadm</command> and
|
---|
| 118 | also versions of <command>mdassemble</command>. These all need to be manually
|
---|
| 119 | installed.
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
| 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 |
|
---|
[ec9b2d7] | 125 | <sect2 role="content">
|
---|
| 126 | <title>Contents</title>
|
---|
| 127 |
|
---|
| 128 | <segmentedlist>
|
---|
| 129 | <segtitle>Installed Programs</segtitle>
|
---|
| 130 | <segtitle>Installed Libraries</segtitle>
|
---|
| 131 | <segtitle>Installed Directory</segtitle>
|
---|
| 132 |
|
---|
| 133 | <seglistitem>
|
---|
[b6d51d20] | 134 | <seg>mdadm, mdmon and optionally mdassemble</seg>
|
---|
[ec9b2d7] | 135 | <seg>None</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="mdadm-prog">
|
---|
| 146 | <term><command>mdadm</command></term>
|
---|
| 147 | <listitem>
|
---|
| 148 | <para>manages MD devices aka Linux Software RAID.</para>
|
---|
| 149 | <indexterm zone="mdadm mdadm-prog">
|
---|
| 150 | <primary sortas="b-mdadm-prog">mdadm</primary>
|
---|
| 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="mdmon">
|
---|
| 156 | <term><command>mdmon</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>monitors MD external metadata arrays.</para>
|
---|
| 159 | <indexterm zone="mdadm mdmon">
|
---|
| 160 | <primary sortas="b-mdmon">mdmon</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 |
|
---|
[b6d51d20] | 165 | <varlistentry id="mdassemble">
|
---|
| 166 | <term><command>mdassemble</command></term>
|
---|
| 167 | <listitem>
|
---|
| 168 | <para>is a tiny program that can be used to assemble MD devices
|
---|
| 169 | inside an initial ramdisk (initrd) or initramfs.</para>
|
---|
| 170 | <indexterm zone="mdadm mdassemble">
|
---|
| 171 | <primary sortas="b-mdassemble">mdassemble</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
| 175 |
|
---|
[ec9b2d7] | 176 | </variablelist>
|
---|
| 177 |
|
---|
| 178 | </sect2>
|
---|
| 179 |
|
---|
| 180 | </sect1>
|
---|