source: postlfs/filesystems/mdadm.xml@ 672f2a5

11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 672f2a5 was a99fc417, checked in by Pierre Labastie <pierre.labastie@…>, 2 years ago

mdadm: restore correct md5sum and really tag

Looks like a "0a" in the md5 has been changed to "1" instead of
in the tag...

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