source: postlfs/filesystems/mdadm.xml@ b9d5573a

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 b9d5573a was b9d5573a, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

More tags
Remove libnftnl which was commented out

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

  • Property mode set to 100644
File size: 7.4 KB
RevLine 
[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
[8dfc5c3]7 <!ENTITY mdadm-download-http "&kernel-dl;/linux/utils/raid/mdadm/mdadm-&mdadm-version;.tar.xz">
[ec9b2d7]8 <!ENTITY mdadm-download-ftp " ">
[6c4061c4]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)">
[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
[29244b7]32 <para>
33 The <application>mdadm</application> package contains administration
34 tools for software RAID.
35 </para>
[ec9b2d7]36
[b9d5573a]37 &lfs10_checked;
[ec9b2d7]38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
[29244b7]42 <para>
43 Download (HTTP): <ulink url="&mdadm-download-http;"/>
44 </para>
[ec9b2d7]45 </listitem>
46 <listitem>
[29244b7]47 <para>
48 Download (FTP): <ulink url="&mdadm-download-ftp;"/>
49 </para>
[ec9b2d7]50 </listitem>
51 <listitem>
[29244b7]52 <para>
53 Download MD5 sum: &mdadm-md5sum;
54 </para>
[ec9b2d7]55 </listitem>
56 <listitem>
[29244b7]57 <para>
58 Download size: &mdadm-size;
59 </para>
[ec9b2d7]60 </listitem>
61 <listitem>
[29244b7]62 <para>
63 Estimated disk space required: &mdadm-buildsize;
64 </para>
[ec9b2d7]65 </listitem>
66 <listitem>
[29244b7]67 <para>
68 Estimated build time: &mdadm-time;
69 </para>
[ec9b2d7]70 </listitem>
71 </itemizedlist>
[8126c5d]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 -->
[ec9b2d7]80
81 <para condition="html" role="usernotes">User Notes:
[0ec71e95]82 <ulink url="&blfs-wiki;/mdadm"/></para>
[4b92d8d]83 <caution>
[09765cf]84 <para>
[4b92d8d]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.
[09765cf]87 </para>
[4b92d8d]88 </caution>
[ec9b2d7]89
90 </sect2>
91
92 <sect2 role="kernel" id='mdadm-kernel'>
93 <title>Kernel Configuration</title>
94
[29244b7]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>
[ec9b2d7]100
[ee42033]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>
[ec9b2d7]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
[29244b7]120 <para>
121 Fix a build error introduced by gcc-7.1:
122 </para>
[4d0c38b]123
124<screen><userinput>sed 's@-Werror@@' -i Makefile</userinput></screen>
125
[29244b7]126 <para>
127 Build <application>mdadm</application> by running the following
128 command:
129 </para>
[ec9b2d7]130
[b15359cd]131<screen><userinput>make</userinput></screen>
[ec9b2d7]132
[29244b7]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>
[4b92d8d]138
[29244b7]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>
[fd29f76]145
[29244b7]146 <para>
147 Run the tests as the <systemitem class="username">root</systemitem> user:
148 </para>
[4b92d8d]149
[06908bf6]150<screen role="root"
151 remap="test"><userinput>./test --keep-going --logdir=test-logs --save-logs</userinput></screen>
[ec9b2d7]152
[29244b7]153 <para>
154 Now, as the <systemitem class="username">root</systemitem> user:
155 </para>
[ec9b2d7]156
157<screen role="root"><userinput>make install</userinput></screen>
158
159 </sect2>
160
[b6d51d20]161 <sect2 role="commands">
162 <title>Command Explanations</title>
163
[a0e6e8dd]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>
[af8a78d]177 <parameter>--logdir=test-logs</parameter>: Defines the directory
[4b92d8d]178 where test logs are saved.
[a0e6e8dd]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).
[b6d51d20]190 </para>
191
192 </sect2>
193
194
[ec9b2d7]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>
[b6d51d20]204 <seg>mdadm, mdmon and optionally mdassemble</seg>
[ec9b2d7]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>
[29244b7]218 <para>
219 manages MD devices aka Linux Software RAID.
220 </para>
[ec9b2d7]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>
[29244b7]230 <para>
231 monitors MD external metadata arrays.
232 </para>
[ec9b2d7]233 <indexterm zone="mdadm mdmon">
234 <primary sortas="b-mdmon">mdmon</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
[b6d51d20]239 <varlistentry id="mdassemble">
240 <term><command>mdassemble</command></term>
241 <listitem>
[29244b7]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>
[b6d51d20]246 <indexterm zone="mdadm mdassemble">
247 <primary sortas="b-mdassemble">mdassemble</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
[ec9b2d7]252 </variablelist>
253
254 </sect2>
255
256</sect1>
Note: See TracBrowser for help on using the repository browser.