source: postlfs/filesystems/mdadm.xml@ 29244b7

10.0 10.1 11.0 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 29244b7 was 29244b7, checked in by Pierre Labastie <pieere@…>, 4 years ago

format filesystems chapter

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22895 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.4 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 "51bf3651bd73a06c413a2f964f299598">
10 <!ENTITY mdadm-size "432 KB">
11 <!ENTITY mdadm-buildsize "4.9 MB (10 MB with tests)">
12 <!ENTITY mdadm-time "0.1 SBU (tests take about an hour, only partially processor dependent)">
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>
33 The <application>mdadm</application> package contains administration
34 tools for software RAID.
35 </para>
36
37 &lfs91_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 If you wish to run the tests, ensure that your kernel supports RAID
135 and that a version of mdadm is not already running. As many as 9 out
136 of 124 tests may fail.
137 </para>
138
139 <caution>
140 <para>
141 The tests edit values in /proc and run tests on software raid devices.
142 They shouldn't be run on systems with active software RAID devices.
143 </para>
144 </caution>
145
146 <para>
147 Run the tests as the <systemitem class="username">root</systemitem> user:
148 </para>
149
150<screen role="root"
151 remap="test"><userinput>./test --keep-going --logdir=test-logs --save-logs</userinput></screen>
152
153 <para>
154 Now, as the <systemitem class="username">root</systemitem> user:
155 </para>
156
157<screen role="root"><userinput>make install</userinput></screen>
158
159 </sect2>
160
161 <sect2 role="commands">
162 <title>Command Explanations</title>
163
164 <para>
165 <command>make everything</command>: This optional target creates extra
166 programs, particularly a statically-linked version of
167 <command>mdadm</command> and also versions of
168 <command>mdassemble</command>. These all need to be manually installed.
169 </para>
170
171 <para>
172 <parameter>--keep-going</parameter>: Run the tests to the end, even if one
173 or more tests fail.
174 </para>
175
176 <para>
177 <parameter>--logdir=test-logs</parameter>: Defines the directory
178 where test logs are saved.
179 </para>
180
181 <para>
182 <parameter>--save-logs</parameter>:
183 Instructs the test suite to save the logs.
184 </para>
185
186 <para>
187 <option>--tests=<replaceable>&lt;test1,test2,...&gt;</replaceable></option>:
188 Optional comma separated list of tests to be executed
189 (all tests, if this option is not passed).
190 </para>
191
192 </sect2>
193
194
195 <sect2 role="content">
196 <title>Contents</title>
197
198 <segmentedlist>
199 <segtitle>Installed Programs</segtitle>
200 <segtitle>Installed Libraries</segtitle>
201 <segtitle>Installed Directory</segtitle>
202
203 <seglistitem>
204 <seg>mdadm, mdmon and optionally mdassemble</seg>
205 <seg>None</seg>
206 <seg>None</seg>
207 </seglistitem>
208 </segmentedlist>
209
210 <variablelist>
211 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
212 <?dbfo list-presentation="list"?>
213 <?dbhtml list-presentation="table"?>
214
215 <varlistentry id="mdadm-prog">
216 <term><command>mdadm</command></term>
217 <listitem>
218 <para>
219 manages MD devices aka Linux Software RAID.
220 </para>
221 <indexterm zone="mdadm mdadm-prog">
222 <primary sortas="b-mdadm-prog">mdadm</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="mdmon">
228 <term><command>mdmon</command></term>
229 <listitem>
230 <para>
231 monitors MD external metadata arrays.
232 </para>
233 <indexterm zone="mdadm mdmon">
234 <primary sortas="b-mdmon">mdmon</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="mdassemble">
240 <term><command>mdassemble</command></term>
241 <listitem>
242 <para>
243 is a tiny program that can be used to assemble MD devices
244 inside an initial ramdisk (initrd) or initramfs.
245 </para>
246 <indexterm zone="mdadm mdassemble">
247 <primary sortas="b-mdassemble">mdassemble</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 </variablelist>
253
254 </sect2>
255
256</sect1>
Note: See TracBrowser for help on using the repository browser.