source: postlfs/filesystems/mdadm.xml@ 8490099

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 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 8490099 was 998a0e0, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Update to 264-snapshot-20160827-2245-stable.
Update to LVM2.2.02.164.
Tags fo r all lof xfce and various other packages

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

  • Property mode set to 100644
File size: 6.9 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 "04b8b21f637540350f8517c7e68d3c63">
10 <!ENTITY mdadm-size "416 KB">
11 <!ENTITY mdadm-buildsize "416 MB (12 MB with tests)">
12 <!ENTITY mdadm-time "0.1 SBU (tests take about an hour, only partially processor dependent)">
13 <!-- tests statistcs repeated from previous one, given by Pierre-->
14]>
15
16<sect1 id="mdadm" xreflabel="mdadm-&mdadm-version;">
17 <?dbhtml filename="mdadm.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>mdadm-&mdadm-version;</title>
25
26 <indexterm zone="mdadm">
27 <primary sortas="a-mdadm">mdadm</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to mdadm</title>
32
33 <para>The <application>mdadm</application> package contains administration
34 tools for software RAID.</para>
35
36 &lfs7a_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&mdadm-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&mdadm-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &mdadm-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &mdadm-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &mdadm-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &mdadm-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <para condition="html" role="usernotes">User Notes:
61 <ulink url="&blfs-wiki;/mdadm"/></para>
62 <caution>
63 <para>
64 Kernel versions in series 4.1 through 4.4.1 have a broken RAID
65 implementation. Use a kernel with version at or above 4.4.2.
66 </para>
67 </caution>
68
69 </sect2>
70
71 <sect2 role="kernel" id='mdadm-kernel'>
72 <title>Kernel Configuration</title>
73
74 <para>Enable the following options in the kernel configuration
75 and recompile the kernel, if necessary. Only the RAID types desired
76 are required.</para>
77
78<screen><literal>Device Drivers ---&gt;
79 [*] Multiple devices driver support (RAID and LVM) ---&gt; [CONFIG_MD]
80 &lt;*&gt; RAID support [CONFIG_BLK_DEV_MD]
81 [*] Autodetect RAID arrays during kernel boot [CONFIG_MD_AUTODETECT]
82 &lt;*/M&gt; Linear (append) mode [CONFIG_MD_LINEAR]
83 &lt;*/M&gt; RAID-0 (striping) mode [CONFIG_MD_RAID0]
84 &lt;*/M&gt; RAID-1 (mirroring) mode [CONFIG_MD_RAID1]
85 &lt;*/M&gt; RAID-10 (mirrored striping) mode [CONFIG_MD_RAID10]
86 &lt;*/M&gt; RAID-4/RAID-5/RAID-6 mode [CONFIG_MD_RAID456]</literal></screen>
87
88 <indexterm zone="mdadm mdadm-kernel">
89 <primary sortas="d-mdadm">mdadm</primary>
90 </indexterm>
91
92 </sect2>
93
94 <sect2 role="installation">
95 <title>Installation of mdadm</title>
96
97 <para>Install <application>mdadm</application> by running the following
98 commands:</para>
99
100<screen><userinput>sed -i 's/-Werror//' Makefile &amp;&amp;
101make</userinput></screen>
102
103 <para>If you wish to run the tests, ensure that your kernel supports
104 RAID and that a version of mdadm is not already running. As many as 51 out
105 of 123 tests may fail.</para>
106
107 <para>First fix the test script to avoid a bogus error message when
108 tests fail and build the supporting programs:</para>
109
110<screen><userinput>sed -i 's# if.* == "1"#&amp; -a -e $targetdir/log#' test &amp;&amp;
111make test</userinput></screen>
112
113 <para>Run the tests as the <systemitem class="username">root</systemitem> user:</para>
114
115<screen><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 that 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.