source: postlfs/filesystems/mdadm.xml@ b4550ea

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since b4550ea was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 7.9 KB
Line 
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 mdadm-download-http "&kernel-dl;/linux/utils/raid/mdadm/mdadm-&mdadm-version;.tar.xz">
8 <!ENTITY mdadm-download-ftp " ">
9 <!ENTITY mdadm-md5sum "a304eb0a978ca81045620d06547050a6">
10 <!ENTITY mdadm-size "444 KB">
11 <!ENTITY mdadm-buildsize "5.0 MB">
12 <!ENTITY mdadm-time "0.1 SBU">
13<!-- <!ENTITY mdadm-time "0.1 SBU (tests take about an hour, only partially processor dependent)">-->
14]>
15
16<sect1 id="mdadm" xreflabel="mdadm-&mdadm-version;">
17 <?dbhtml filename="mdadm.html"?>
18
19
20 <title>mdadm-&mdadm-version;</title>
21
22 <indexterm zone="mdadm">
23 <primary sortas="a-mdadm">mdadm</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to mdadm</title>
28
29 <para>
30 The <application>mdadm</application> package contains administration
31 tools for software RAID.
32 </para>
33
34 &lfs112_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&mdadm-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&mdadm-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &mdadm-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &mdadm-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &mdadm-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &mdadm-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">mdadm Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Optional</bridgehead>
73 <para role="optional">
74 A <xref linkend="server-mail"/>
75 </para>
76 <!-- Contains -DSendmail=/usr/sbin/sendmail in the build procedure -->
77
78 <para condition="html" role="usernotes">User Notes:
79 <ulink url="&blfs-wiki;/mdadm"/></para>
80 <caution>
81 <para>
82 Kernel versions in series 4.1 through 4.4.1 have a broken RAID
83 implementation. Use a kernel with version at or above 4.4.2.
84 </para>
85 </caution>
86
87 </sect2>
88
89 <sect2 role="kernel" id='mdadm-kernel'>
90 <title>Kernel Configuration</title>
91
92 <para>
93 Enable the following options in the kernel configuration
94 and recompile the kernel, if necessary. Only the RAID types desired
95 are required.
96 </para>
97
98<screen><literal>Device Drivers ---&gt;
99 [*] Multiple devices driver support (RAID and LVM) ---&gt; [CONFIG_MD]
100 &lt;*&gt; RAID support [CONFIG_BLK_DEV_MD]
101 [*] Autodetect RAID arrays during kernel boot [CONFIG_MD_AUTODETECT]
102 &lt;*/M&gt; Linear (append) mode [CONFIG_MD_LINEAR]
103 &lt;*/M&gt; RAID-0 (striping) mode [CONFIG_MD_RAID0]
104 &lt;*/M&gt; RAID-1 (mirroring) mode [CONFIG_MD_RAID1]
105 &lt;*/M&gt; RAID-10 (mirrored striping) mode [CONFIG_MD_RAID10]
106 &lt;*/M&gt; RAID-4/RAID-5/RAID-6 mode [CONFIG_MD_RAID456]</literal></screen>
107
108 <indexterm zone="mdadm mdadm-kernel">
109 <primary sortas="d-mdadm">mdadm</primary>
110 </indexterm>
111
112 </sect2>
113
114 <sect2 role="installation">
115 <title>Installation of mdadm</title>
116<!--
117 <para>
118 Fix a build error introduced by gcc-7.1:
119 </para>
120
121<screen><userinput>sed 's@-Werror@@' -i Makefile</userinput></screen>
122-->
123 <para>
124 Build <application>mdadm</application> by running the following
125 command:
126 </para>
127
128<screen><userinput>make</userinput></screen>
129
130 <para>
131 This package does not come with a working test suite.
132 </para>
133
134<!--
135 The test suite errors out after about half the tests are run.
136 Of those tests, about half fail.
137 There are tests that indicate failure when the test is clearly wrong
138 for the current code.
139 I asked about it at linux-raid@vger.kernel.org, but did not get
140 a responsive answer.
141 - bdubbs 6 January 22
142
143
144 <para>
145 If you wish to run the tests, ensure that your kernel supports RAID
146 and that a version of mdadm is not already running. As many as 9 out
147 of 124 tests may fail.
148 </para>
149
150 <caution>
151 <para>
152 The tests edit values in /proc and run tests on software raid devices.
153 They shouldn't be run on systems with active software RAID devices.
154 </para>
155 </caution>
156
157 <para>
158 Run the tests as the <systemitem class="username">root</systemitem> user:
159 </para>
160
161<screen role="root"
162 remap="test"><userinput>./test - -keep-going - -logdir=test-logs - -save-logs</userinput></screen>
163-->
164 <para>
165 Now, as the <systemitem class="username">root</systemitem> user:
166 </para>
167
168<screen role="root"><userinput>make BINDIR=/usr/sbin install</userinput></screen>
169
170 </sect2>
171
172 <sect2 role="commands">
173 <title>Command Explanations</title>
174
175 <para>
176 <command>make everything</command>: This optional target creates extra
177 programs, particularly a statically-linked version of
178 <command>mdadm</command>. <!-- and also versions of
179 <command>mdassemble</command>. These all need to be manually installed.-->
180 This needs to be manually installed.
181 </para>
182
183 <para>
184 <parameter>--keep-going</parameter>: Run the tests to the end, even if one
185 or more tests fail.
186 </para>
187
188 <para>
189 <parameter>--logdir=test-logs</parameter>: Defines the directory
190 where test logs are saved.
191 </para>
192
193 <para>
194 <parameter>--save-logs</parameter>:
195 Instructs the test suite to save the logs.
196 </para>
197
198 <para>
199 <option>--tests=<replaceable>&lt;test1,test2,...&gt;</replaceable></option>:
200 Optional comma separated list of tests to be executed
201 (all tests, if this option is not passed).
202 </para>
203
204 </sect2>
205
206
207 <sect2 role="content">
208 <title>Contents</title>
209
210 <segmentedlist>
211 <segtitle>Installed Programs</segtitle>
212 <segtitle>Installed Libraries</segtitle>
213 <segtitle>Installed Directory</segtitle>
214
215 <seglistitem>
216 <seg>mdadm and mdmon <!--and optionally mdassemble--></seg>
217 <seg>None</seg>
218 <seg>None</seg>
219 </seglistitem>
220 </segmentedlist>
221
222 <variablelist>
223 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
224 <?dbfo list-presentation="list"?>
225 <?dbhtml list-presentation="table"?>
226
227 <varlistentry id="mdadm-prog">
228 <term><command>mdadm</command></term>
229 <listitem>
230 <para>
231 manages MD devices aka Linux Software RAID
232 </para>
233 <indexterm zone="mdadm mdadm-prog">
234 <primary sortas="b-mdadm-prog">mdadm</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="mdmon">
240 <term><command>mdmon</command></term>
241 <listitem>
242 <para>
243 monitors MD external metadata arrays
244 </para>
245 <indexterm zone="mdadm mdmon">
246 <primary sortas="b-mdmon">mdmon</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <!-- Seems to be removed without a trace in 4.1
252 <varlistentry id="mdassemble">
253 <term><command>mdassemble</command></term>
254 <listitem>
255 <para>
256 is a tiny program that can be used to assemble MD devices
257 inside an initial ramdisk (initrd) or initramfs
258 </para>
259 <indexterm zone="mdadm mdassemble">
260 <primary sortas="b-mdassemble">mdassemble</primary>
261 </indexterm>
262 </listitem>
263 </varlistentry>
264 -->
265
266 </variablelist>
267
268 </sect2>
269
270</sect1>
Note: See TracBrowser for help on using the repository browser.