source: postlfs/filesystems/mdadm.xml@ 09765cf

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules 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 09765cf was 09765cf, checked in by Pierre Labastie <pieere@…>, 9 years ago

LVM and mdadm: Add a warning against kernel versions 4.1 and 4.2, which have
a broken RAID implementation

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

  • Property mode set to 100644
File size: 6.5 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;linux/utils/raid/mdadm/mdadm-&mdadm-version;.tar.xz">
8 <!ENTITY mdadm-download-ftp " ">
9 <!ENTITY mdadm-md5sum "7ca8b114710f98f53f20c5787b674a09">
10 <!ENTITY mdadm-size "404 KB">
11 <!ENTITY mdadm-buildsize "12 MB (with tests)">
12 <!ENTITY mdadm-time "less than 0.1 SBU (23 SBU, with tests)">
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 &lfs78_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 <note>
62 <para>
63 Kernel versions in series 4.1 and 4.2 have a broken RAID
64 implementation. Use a kernel with version above 4.2.4.
65 </para>
66 </note>
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>Install <application>mdadm</application> by running the following
97 commands:</para>
98
99<screen><userinput>make</userinput></screen>
100
101 <para>If you wish to run the tests, ensure that your kernel supports
102 RAID and that a version of mdadm is not already running, and issue:
103 <command>make test</command> and then, as the
104 <systemitem class="username">root</systemitem> user:
105 <command>./test --keep-going --logdir=tests-logs --save-logs</command>.
106 Some tests fail for unknown reasons.</para>
107
108 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
109
110<screen role="root"><userinput>make install</userinput></screen>
111
112 </sect2>
113
114 <sect2 role="commands">
115 <title>Command Explanations</title>
116
117 <para>
118 <command>make everything</command>: This optional target creates extra
119 programs, particularly a statically-linked version of
120 <command>mdadm</command> and also versions of
121 <command>mdassemble</command>. These all need to be manually installed.
122 </para>
123
124 <para>
125 <parameter>--keep-going</parameter>: Run the tests to the end, even if one
126 or more tests fail.
127 </para>
128
129 <para>
130 <parameter>--logdir=tests-logs</parameter>: Defines that the directory
131 where tests logs are saved.
132 </para>
133
134 <para>
135 <parameter>--save-logs</parameter>:
136 Instructs the test suite to save the logs.
137 </para>
138
139 <para>
140 <option>--tests=<replaceable>&lt;test1,test2,...&gt;</replaceable></option>:
141 Optional comma separated list of tests to be executed
142 (all tests, if this option is not passed).
143 </para>
144
145 </sect2>
146
147
148 <sect2 role="content">
149 <title>Contents</title>
150
151 <segmentedlist>
152 <segtitle>Installed Programs</segtitle>
153 <segtitle>Installed Libraries</segtitle>
154 <segtitle>Installed Directory</segtitle>
155
156 <seglistitem>
157 <seg>mdadm, mdmon and optionally mdassemble</seg>
158 <seg>None</seg>
159 <seg>None</seg>
160 </seglistitem>
161 </segmentedlist>
162
163 <variablelist>
164 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
165 <?dbfo list-presentation="list"?>
166 <?dbhtml list-presentation="table"?>
167
168 <varlistentry id="mdadm-prog">
169 <term><command>mdadm</command></term>
170 <listitem>
171 <para>manages MD devices aka Linux Software RAID.</para>
172 <indexterm zone="mdadm mdadm-prog">
173 <primary sortas="b-mdadm-prog">mdadm</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="mdmon">
179 <term><command>mdmon</command></term>
180 <listitem>
181 <para>monitors MD external metadata arrays.</para>
182 <indexterm zone="mdadm mdmon">
183 <primary sortas="b-mdmon">mdmon</primary>
184 </indexterm>
185 </listitem>
186 </varlistentry>
187
188 <varlistentry id="mdassemble">
189 <term><command>mdassemble</command></term>
190 <listitem>
191 <para>is a tiny program that can be used to assemble MD devices
192 inside an initial ramdisk (initrd) or initramfs.</para>
193 <indexterm zone="mdadm mdassemble">
194 <primary sortas="b-mdassemble">mdassemble</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 </variablelist>
200
201 </sect2>
202
203</sect1>
Note: See TracBrowser for help on using the repository browser.