[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 " ">
|
---|
[d45a8367] | 9 | <!ENTITY mdadm-md5sum "04b8b21f637540350f8517c7e68d3c63">
|
---|
| 10 | <!ENTITY mdadm-size "416 KB">
|
---|
| 11 | <!ENTITY mdadm-buildsize "416 MB (12 MB with tests)">
|
---|
| 12 | <!ENTITY mdadm-time "0.1 SBU (23 SBU, with tests)">
|
---|
| 13 | <!-- tests statistcs repeated from previous one, given by Pierre-->
|
---|
[ec9b2d7] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="mdadm" xreflabel="mdadm-&mdadm-version;">
|
---|
| 17 | <?dbhtml filename="mdadm.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>mdadm-&mdadm-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="mdadm">
|
---|
| 27 | <primary sortas="a-mdadm">mdadm</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to mdadm</title>
|
---|
| 32 |
|
---|
| 33 | <para>The <application>mdadm</application> package contains administration
|
---|
[6fcb1b9] | 34 | tools for software RAID.</para>
|
---|
[ec9b2d7] | 35 |
|
---|
[46db8b5] | 36 | &lfs78_checked;
|
---|
[ec9b2d7] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&mdadm-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&mdadm-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &mdadm-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &mdadm-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &mdadm-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &mdadm-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <para condition="html" role="usernotes">User Notes:
|
---|
[0ec71e95] | 61 | <ulink url="&blfs-wiki;/mdadm"/></para>
|
---|
[09765cf] | 62 | <note>
|
---|
| 63 | <para>
|
---|
| 64 | Kernel versions in series 4.1 and 4.2 have a broken RAID
|
---|
| 65 | implementation. Use a kernel with version above 4.2.4.
|
---|
| 66 | </para>
|
---|
| 67 | </note>
|
---|
[ec9b2d7] | 68 |
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2 role="kernel" id='mdadm-kernel'>
|
---|
| 72 | <title>Kernel Configuration</title>
|
---|
| 73 |
|
---|
| 74 | <para>Enable the following options in the kernel configuration
|
---|
| 75 | and recompile the kernel, if necessary. Only the RAID types desired
|
---|
[ee42033] | 76 | are required.</para>
|
---|
[ec9b2d7] | 77 |
|
---|
[ee42033] | 78 | <screen><literal>Device Drivers --->
|
---|
| 79 | [*] Multiple devices driver support (RAID and LVM) ---> [CONFIG_MD]
|
---|
| 80 | <*> RAID support [CONFIG_BLK_DEV_MD]
|
---|
| 81 | [*] Autodetect RAID arrays during kernel boot [CONFIG_MD_AUTODETECT]
|
---|
| 82 | <*/M> Linear (append) mode [CONFIG_MD_LINEAR]
|
---|
| 83 | <*/M> RAID-0 (striping) mode [CONFIG_MD_RAID0]
|
---|
| 84 | <*/M> RAID-1 (mirroring) mode [CONFIG_MD_RAID1]
|
---|
| 85 | <*/M> RAID-10 (mirrored striping) mode [CONFIG_MD_RAID10]
|
---|
| 86 | <*/M> RAID-4/RAID-5/RAID-6 mode [CONFIG_MD_RAID456]</literal></screen>
|
---|
[ec9b2d7] | 87 |
|
---|
| 88 | <indexterm zone="mdadm mdadm-kernel">
|
---|
| 89 | <primary sortas="d-mdadm">mdadm</primary>
|
---|
| 90 | </indexterm>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of mdadm</title>
|
---|
| 96 |
|
---|
| 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
|
---|
[a0e6e8dd] | 105 | <systemitem class="username">root</systemitem> user:
|
---|
| 106 | <command>./test --keep-going --logdir=tests-logs --save-logs</command>.
|
---|
| 107 | Some tests fail for unknown reasons.</para>
|
---|
[ec9b2d7] | 108 |
|
---|
| 109 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 110 |
|
---|
| 111 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | </sect2>
|
---|
| 114 |
|
---|
[b6d51d20] | 115 | <sect2 role="commands">
|
---|
| 116 | <title>Command Explanations</title>
|
---|
| 117 |
|
---|
[a0e6e8dd] | 118 | <para>
|
---|
| 119 | <command>make everything</command>: This optional target creates extra
|
---|
| 120 | programs, particularly a statically-linked version of
|
---|
| 121 | <command>mdadm</command> and also versions of
|
---|
| 122 | <command>mdassemble</command>. These all need to be manually installed.
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <para>
|
---|
| 126 | <parameter>--keep-going</parameter>: Run the tests to the end, even if one
|
---|
| 127 | or more tests fail.
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
| 131 | <parameter>--logdir=tests-logs</parameter>: Defines that the directory
|
---|
| 132 | where tests logs are saved.
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
| 135 | <para>
|
---|
| 136 | <parameter>--save-logs</parameter>:
|
---|
| 137 | Instructs the test suite to save the logs.
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
| 140 | <para>
|
---|
| 141 | <option>--tests=<replaceable><test1,test2,...></replaceable></option>:
|
---|
| 142 | Optional comma separated list of tests to be executed
|
---|
| 143 | (all tests, if this option is not passed).
|
---|
[b6d51d20] | 144 | </para>
|
---|
| 145 |
|
---|
| 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 |
|
---|
[ec9b2d7] | 149 | <sect2 role="content">
|
---|
| 150 | <title>Contents</title>
|
---|
| 151 |
|
---|
| 152 | <segmentedlist>
|
---|
| 153 | <segtitle>Installed Programs</segtitle>
|
---|
| 154 | <segtitle>Installed Libraries</segtitle>
|
---|
| 155 | <segtitle>Installed Directory</segtitle>
|
---|
| 156 |
|
---|
| 157 | <seglistitem>
|
---|
[b6d51d20] | 158 | <seg>mdadm, mdmon and optionally mdassemble</seg>
|
---|
[ec9b2d7] | 159 | <seg>None</seg>
|
---|
| 160 | <seg>None</seg>
|
---|
| 161 | </seglistitem>
|
---|
| 162 | </segmentedlist>
|
---|
| 163 |
|
---|
| 164 | <variablelist>
|
---|
| 165 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 166 | <?dbfo list-presentation="list"?>
|
---|
| 167 | <?dbhtml list-presentation="table"?>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="mdadm-prog">
|
---|
| 170 | <term><command>mdadm</command></term>
|
---|
| 171 | <listitem>
|
---|
| 172 | <para>manages MD devices aka Linux Software RAID.</para>
|
---|
| 173 | <indexterm zone="mdadm mdadm-prog">
|
---|
| 174 | <primary sortas="b-mdadm-prog">mdadm</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="mdmon">
|
---|
| 180 | <term><command>mdmon</command></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>monitors MD external metadata arrays.</para>
|
---|
| 183 | <indexterm zone="mdadm mdmon">
|
---|
| 184 | <primary sortas="b-mdmon">mdmon</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
[b6d51d20] | 189 | <varlistentry id="mdassemble">
|
---|
| 190 | <term><command>mdassemble</command></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>is a tiny program that can be used to assemble MD devices
|
---|
| 193 | inside an initial ramdisk (initrd) or initramfs.</para>
|
---|
| 194 | <indexterm zone="mdadm mdassemble">
|
---|
| 195 | <primary sortas="b-mdassemble">mdassemble</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
| 199 |
|
---|
[ec9b2d7] | 200 | </variablelist>
|
---|
| 201 |
|
---|
| 202 | </sect2>
|
---|
| 203 |
|
---|
| 204 | </sect1>
|
---|