source: postlfs/filesystems/mdadm.xml@ 66307ff

systemd-13485
Last change on this file since 66307ff was 66307ff, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Update to libunistring-0.9.6
Update to ed-1.12
Update to nano-2.4.2
Update to unrar-5.3.2
Update to LLVM-3.6.2
Update to whois-5.2.10
Update to mdadm-3.3.4
Update to xfsprogs-3.2.4

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16331 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 "8 MB">
12 <!ENTITY mdadm-time "less than 0.1 SBU">
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 &lfs77_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
62 </sect2>
63
64 <sect2 role="kernel" id='mdadm-kernel'>
65 <title>Kernel Configuration</title>
66
67 <para>Enable the following options in the kernel configuration
68 and recompile the kernel, if necessary. Only the RAID types desired
69 are required.</para>
70
71<screen><literal>Device Drivers ---&gt;
72 [*] Multiple devices driver support (RAID and LVM) ---&gt; [CONFIG_MD]
73 &lt;*&gt; RAID support [CONFIG_BLK_DEV_MD]
74 [*] Autodetect RAID arrays during kernel boot [CONFIG_MD_AUTODETECT]
75 &lt;*/M&gt; Linear (append) mode [CONFIG_MD_LINEAR]
76 &lt;*/M&gt; RAID-0 (striping) mode [CONFIG_MD_RAID0]
77 &lt;*/M&gt; RAID-1 (mirroring) mode [CONFIG_MD_RAID1]
78 &lt;*/M&gt; RAID-10 (mirrored striping) mode [CONFIG_MD_RAID10]
79 &lt;*/M&gt; RAID-4/RAID-5/RAID-6 mode [CONFIG_MD_RAID456]</literal></screen>
80
81 <indexterm zone="mdadm mdadm-kernel">
82 <primary sortas="d-mdadm">mdadm</primary>
83 </indexterm>
84
85 </sect2>
86
87 <sect2 role="installation">
88 <title>Installation of mdadm</title>
89
90 <para>
91 First, fix problems introduced by <application>&gcc-490;</application>
92 and <application>gcc-5</application>:
93 </para>
94
95<screen><userinput>sed -i 's/Wall -Werror/Wall/' Makefile &amp;&amp;
96sed -i 's/\(^inline\)/static \1/' bitmap.c</userinput></screen>
97
98 <para>Install <application>mdadm</application> by running the following
99 commands:</para>
100
101<screen><userinput>make</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, and issue:
105 <command>make test</command> and then, as the
106 <systemitem class="username">root</systemitem> user:
107 <command>./test --keep-going --logdir=tests-logs --save-logs</command>.
108 Some tests fail for unknown reasons.</para>
109
110 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
111
112<screen role="root"><userinput>make install</userinput></screen>
113
114 </sect2>
115
116 <sect2 role="commands">
117 <title>Command Explanations</title>
118
119 <para><option>make everything</option>: This target creates extra programs,
120 particularly a statically-linked version of <command>mdadm</command> and
121 also versions of <command>mdassemble</command>. These all need to be manually
122 installed.
123 </para>
124
125 <para>
126 <parameter>--keep-going</parameter>: Run the tests to the end, even if one
127 or more tests fail.
128 </para>
129
130 <para>
131 <parameter>--logdir=tests-logs</parameter>: Defines that the directory
132 where tests logs are saved.
133 </para>
134
135 <para>
136 <parameter>--save-logs</parameter>:
137 Instructs the test suite to save the logs.
138 </para>
139
140 <para>
141 <option>--tests=<replaceable>&lt;test1,test2,...&gt;</replaceable></option>:
142 Optional comma separated list of tests to be executed
143 (all tests, if this option is not passed).
144 </para>
145
146 </sect2>
147
148
149 <sect2 role="content">
150 <title>Contents</title>
151
152 <segmentedlist>
153 <segtitle>Installed Programs</segtitle>
154 <segtitle>Installed Libraries</segtitle>
155 <segtitle>Installed Directory</segtitle>
156
157 <seglistitem>
158 <seg>mdadm, mdmon and optionally mdassemble</seg>
159 <seg>None</seg>
160 <seg>None</seg>
161 </seglistitem>
162 </segmentedlist>
163
164 <variablelist>
165 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
166 <?dbfo list-presentation="list"?>
167 <?dbhtml list-presentation="table"?>
168
169 <varlistentry id="mdadm-prog">
170 <term><command>mdadm</command></term>
171 <listitem>
172 <para>manages MD devices aka Linux Software RAID.</para>
173 <indexterm zone="mdadm mdadm-prog">
174 <primary sortas="b-mdadm-prog">mdadm</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="mdmon">
180 <term><command>mdmon</command></term>
181 <listitem>
182 <para>monitors MD external metadata arrays.</para>
183 <indexterm zone="mdadm mdmon">
184 <primary sortas="b-mdmon">mdmon</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="mdassemble">
190 <term><command>mdassemble</command></term>
191 <listitem>
192 <para>is a tiny program that can be used to assemble MD devices
193 inside an initial ramdisk (initrd) or initramfs.</para>
194 <indexterm zone="mdadm mdassemble">
195 <primary sortas="b-mdassemble">mdassemble</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 </variablelist>
201
202 </sect2>
203
204</sect1>
Note: See TracBrowser for help on using the repository browser.