source: postlfs/filesystems/mdadm.xml@ fd29f76

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.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 fd29f76 was fd29f76, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Update to xterm-349.
Update to v4l-utils-1.18.0.
Update to poppler-0.81.0.
Update to epiphany-3.34.0.

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

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