source: postlfs/filesystems/mdadm.xml@ f33b456

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

Update to postgresql-12.2.
Update to LVM2.2.03.08.
Update to mlt-6.20.0.
Update to x264-20200218.
Update to x265-3.3.

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

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