source: postlfs/filesystems/mdadm.xml@ d45a8367

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 d45a8367 was d45a8367, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • VLC-2.2.1: fixes to build with opencv-3.1.0.
  • Update to nettle-3.2.
  • Update to openssl-1.0.2f.
  • Update to stunnel-5.30.
  • Traceroute-2.0.21, Time-1.7 and UnZip-6.0: s/Less/less/ in repective time ENTITYs (SBU).
  • Update to mdadm-3.4 (tests not run).
  • Update to gtk+-3.18.7 (gtk+3.18.7).
  • Update to vte-0.42.3.
  • Update to gnome-calculator-3.18.3.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16865 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 "04b8b21f637540350f8517c7e68d3c63">
10 <!ENTITY mdadm-size "416 KB">
11 <!ENTITY mdadm-buildsize "416 MB (12 MB with tests)">
12 <!ENTITY mdadm-time "0.1 SBU (23 SBU, with tests)">
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 &lfs78_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 <note>
63 <para>
64 Kernel versions in series 4.1 and 4.2 have a broken RAID
65 implementation. Use a kernel with version above 4.2.4.
66 </para>
67 </note>
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>make</userinput></screen>
101
102 <para>If you wish to run the tests, ensure that your kernel supports
103 RAID and that a version of mdadm is not already running, and issue:
104 <command>make test</command> and then, as the
105 <systemitem class="username">root</systemitem> user:
106 <command>./test --keep-going --logdir=tests-logs --save-logs</command>.
107 Some tests fail for unknown reasons.</para>
108
109 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
110
111<screen role="root"><userinput>make install</userinput></screen>
112
113 </sect2>
114
115 <sect2 role="commands">
116 <title>Command Explanations</title>
117
118 <para>
119 <command>make everything</command>: This optional target creates extra
120 programs, particularly a statically-linked version of
121 <command>mdadm</command> and also versions of
122 <command>mdassemble</command>. These all need to be manually 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.