]> git.ipfire.org Git - thirdparty/mdadm.git/blame - md.4
Can now mostly assemble DDF arrays
[thirdparty/mdadm.git] / md.4
CommitLineData
519561f7
NB
1.\" Copyright Neil Brown and others.
2.\" This program is free software; you can redistribute it and/or modify
3.\" it under the terms of the GNU General Public License as published by
4.\" the Free Software Foundation; either version 2 of the License, or
5.\" (at your option) any later version.
6.\" See file COPYING in distribution for details.
56eb10c0
NB
7.TH MD 4
8.SH NAME
93e790af 9md \- Multiple Device driver aka Linux Software RAID
56eb10c0
NB
10.SH SYNOPSIS
11.BI /dev/md n
12.br
13.BI /dev/md/ n
14.SH DESCRIPTION
15The
16.B md
17driver provides virtual devices that are created from one or more
e0d19036 18independent underlying devices. This array of devices often contains
02b76eea
NB
19redundancy and the devices are often disk drives, hence the acronym RAID
20which stands for a Redundant Array of Independent Disks.
56eb10c0
NB
21.PP
22.B md
599e5a36
NB
23supports RAID levels
241 (mirroring),
254 (striped array with parity device),
265 (striped array with distributed parity information),
276 (striped array with distributed dual redundancy information), and
2810 (striped and mirrored).
29If some number of underlying devices fails while using one of these
98c6faba
NB
30levels, the array will continue to function; this number is one for
31RAID levels 4 and 5, two for RAID level 6, and all but one (N-1) for
93e790af 32RAID level 1, and dependent on configuration for level 10.
56eb10c0
NB
33.PP
34.B md
e0d19036 35also supports a number of pseudo RAID (non-redundant) configurations
570c0542
NB
36including RAID0 (striped array), LINEAR (catenated array),
37MULTIPATH (a set of different interfaces to the same device),
38and FAULTY (a layer over a single device into which errors can be injected).
56eb10c0 39
11a3e71d 40.SS MD SUPER BLOCK
570c0542
NB
41Each device in an array may have a
42.I superblock
43which records information about the structure and state of the array.
44This allows the array to be reliably re-assembled after a shutdown.
56eb10c0 45
570c0542
NB
46From Linux kernel version 2.6.10,
47.B md
48provides support for two different formats of this superblock, and
49other formats can be added. Prior to this release, only one format is
50supported.
51
b3f1c093 52The common format \(em known as version 0.90 \(em has
570c0542 53a superblock that is 4K long and is written into a 64K aligned block that
11a3e71d 54starts at least 64K and less than 128K from the end of the device
56eb10c0
NB
55(i.e. to get the address of the superblock round the size of the
56device down to a multiple of 64K and then subtract 64K).
11a3e71d 57The available size of each device is the amount of space before the
56eb10c0
NB
58super block, so between 64K and 128K is lost when a device in
59incorporated into an MD array.
93e790af 60This superblock stores multi-byte fields in a processor-dependent
570c0542
NB
61manner, so arrays cannot easily be moved between computers with
62different processors.
63
b3f1c093 64The new format \(em known as version 1 \(em has a superblock that is
570c0542
NB
65normally 1K long, but can be longer. It is normally stored between 8K
66and 12K from the end of the device, on a 4K boundary, though
67variations can be stored at the start of the device (version 1.1) or 4K from
68the start of the device (version 1.2).
69This superblock format stores multibyte data in a
93e790af 70processor-independent format and supports up to hundreds of
570c0542 71component devices (version 0.90 only supports 28).
56eb10c0
NB
72
73The superblock contains, among other things:
74.TP
75LEVEL
11a3e71d 76The manner in which the devices are arranged into the array
599e5a36 77(linear, raid0, raid1, raid4, raid5, raid10, multipath).
56eb10c0
NB
78.TP
79UUID
80a 128 bit Universally Unique Identifier that identifies the array that
93e790af 81contains this device.
56eb10c0 82
2a940e36
NB
83When a version 0.90 array is being reshaped (e.g. adding extra devices
84to a RAID5), the version number is temporarily set to 0.91. This
85ensures that if the reshape process is stopped in the middle (e.g. by
86a system crash) and the machine boots into an older kernel that does
87not support reshaping, then the array will not be assembled (which
88would cause data corruption) but will be left untouched until a kernel
89that can complete the reshape processes is used.
90
570c0542
NB
91.SS ARRAYS WITHOUT SUPERBLOCKS
92While it is usually best to create arrays with superblocks so that
93e790af
SW
93they can be assembled reliably, there are some circumstances when an
94array without superblocks is preferred. These include:
570c0542
NB
95.TP
96LEGACY ARRAYS
11a3e71d
NB
97Early versions of the
98.B md
570c0542
NB
99driver only supported Linear and Raid0 configurations and did not use
100a superblock (which is less critical with these configurations).
101While such arrays should be rebuilt with superblocks if possible,
11a3e71d 102.B md
570c0542
NB
103continues to support them.
104.TP
105FAULTY
106Being a largely transparent layer over a different device, the FAULTY
107personality doesn't gain anything from having a superblock.
108.TP
109MULTIPATH
110It is often possible to detect devices which are different paths to
111the same storage directly rather than having a distinctive superblock
112written to the device and searched for on all paths. In this case,
113a MULTIPATH array with no superblock makes sense.
114.TP
115RAID1
116In some configurations it might be desired to create a raid1
93e790af 117configuration that does not use a superblock, and to maintain the state of
addc80c4
NB
118the array elsewhere. While not encouraged for general us, it does
119have special-purpose uses and is supported.
11a3e71d 120
56eb10c0 121.SS LINEAR
11a3e71d
NB
122
123A linear array simply catenates the available space on each
93e790af 124drive to form one large virtual drive.
11a3e71d
NB
125
126One advantage of this arrangement over the more common RAID0
127arrangement is that the array may be reconfigured at a later time with
93e790af
SW
128an extra drive, so the array is made bigger without disturbing the
129data that is on the array. This can even be done on a live
11a3e71d
NB
130array.
131
599e5a36
NB
132If a chunksize is given with a LINEAR array, the usable space on each
133device is rounded down to a multiple of this chunksize.
11a3e71d 134
56eb10c0 135.SS RAID0
11a3e71d
NB
136
137A RAID0 array (which has zero redundancy) is also known as a
138striped array.
e0d19036
NB
139A RAID0 array is configured at creation with a
140.B "Chunk Size"
c913b90e 141which must be a power of two, and at least 4 kibibytes.
e0d19036 142
2d465520 143The RAID0 driver assigns the first chunk of the array to the first
e0d19036 144device, the second chunk to the second device, and so on until all
2d465520 145drives have been assigned one chunk. This collection of chunks forms
e0d19036
NB
146a
147.BR stripe .
93e790af 148Further chunks are gathered into stripes in the same way, and are
e0d19036
NB
149assigned to the remaining space in the drives.
150
2d465520
NB
151If devices in the array are not all the same size, then once the
152smallest device has been exhausted, the RAID0 driver starts
e0d19036
NB
153collecting chunks into smaller stripes that only span the drives which
154still have remaining space.
155
156
56eb10c0 157.SS RAID1
e0d19036
NB
158
159A RAID1 array is also known as a mirrored set (though mirrors tend to
5787fa49 160provide reflected images, which RAID1 does not) or a plex.
e0d19036
NB
161
162Once initialised, each device in a RAID1 array contains exactly the
163same data. Changes are written to all devices in parallel. Data is
164read from any one device. The driver attempts to distribute read
165requests across all devices to maximise performance.
166
167All devices in a RAID1 array should be the same size. If they are
168not, then only the amount of space available on the smallest device is
93e790af 169used (any extra space on other devices is wasted).
e0d19036 170
3dacb890
IP
171Note that the read balancing done by the driver does not make the RAID1
172performance profile be the same as for RAID0; a single stream of
173sequential input will not be accelerated (e.g. a single dd), but
174multiple sequential streams or a random workload will use more than one
175spindle. In theory, having an N-disk RAID1 will allow N sequential
176threads to read from all disks.
177
56eb10c0 178.SS RAID4
e0d19036
NB
179
180A RAID4 array is like a RAID0 array with an extra device for storing
aa88f531
NB
181parity. This device is the last of the active devices in the
182array. Unlike RAID0, RAID4 also requires that all stripes span all
e0d19036
NB
183drives, so extra space on devices that are larger than the smallest is
184wasted.
185
93e790af 186When any block in a RAID4 array is modified, the parity block for that
e0d19036
NB
187stripe (i.e. the block in the parity device at the same device offset
188as the stripe) is also modified so that the parity block always
93e790af 189contains the "parity" for the whole stripe. I.e. its content is
e0d19036
NB
190equivalent to the result of performing an exclusive-or operation
191between all the data blocks in the stripe.
192
193This allows the array to continue to function if one device fails.
194The data that was on that device can be calculated as needed from the
195parity block and the other data blocks.
196
56eb10c0 197.SS RAID5
e0d19036
NB
198
199RAID5 is very similar to RAID4. The difference is that the parity
200blocks for each stripe, instead of being on a single device, are
201distributed across all devices. This allows more parallelism when
93e790af 202writing, as two different block updates will quite possibly affect
e0d19036
NB
203parity blocks on different devices so there is less contention.
204
93e790af 205This also allows more parallelism when reading, as read requests are
e0d19036
NB
206distributed over all the devices in the array instead of all but one.
207
98c6faba
NB
208.SS RAID6
209
210RAID6 is similar to RAID5, but can handle the loss of any \fItwo\fP
211devices without data loss. Accordingly, it requires N+2 drives to
212store N drives worth of data.
213
214The performance for RAID6 is slightly lower but comparable to RAID5 in
215normal mode and single disk failure mode. It is very slow in dual
216disk failure mode, however.
217
599e5a36
NB
218.SS RAID10
219
93e790af 220RAID10 provides a combination of RAID1 and RAID0, and is sometimes known
599e5a36
NB
221as RAID1+0. Every datablock is duplicated some number of times, and
222the resulting collection of datablocks are distributed over multiple
223drives.
224
93e790af 225When configuring a RAID10 array, it is necessary to specify the number
599e5a36 226of replicas of each data block that are required (this will normally
b578481c
NB
227be 2) and whether the replicas should be 'near', 'offset' or 'far'.
228(Note that the 'offset' layout is only available from 2.6.18).
599e5a36
NB
229
230When 'near' replicas are chosen, the multiple copies of a given chunk
231are laid out consecutively across the stripes of the array, so the two
232copies of a datablock will likely be at the same offset on two
233adjacent devices.
234
235When 'far' replicas are chosen, the multiple copies of a given chunk
236are laid out quite distant from each other. The first copy of all
237data blocks will be striped across the early part of all drives in
238RAID0 fashion, and then the next copy of all blocks will be striped
239across a later section of all drives, always ensuring that all copies
240of any given block are on different drives.
241
242The 'far' arrangement can give sequential read performance equal to
243that of a RAID0 array, but at the cost of degraded write performance.
244
b578481c
NB
245When 'offset' replicas are chosen, the multiple copies of a given
246chunk are laid out on consecutive drives and at consecutive offsets.
247Effectively each stripe is duplicated and the copies are offset by one
248device. This should give similar read characteristics to 'far' if a
249suitably large chunk size is used, but without as much seeking for
250writes.
251
599e5a36 252It should be noted that the number of devices in a RAID10 array need
93e790af 253not be a multiple of the number of replica of each data block; however,
599e5a36
NB
254there must be at least as many devices as replicas.
255
256If, for example, an array is created with 5 devices and 2 replicas,
257then space equivalent to 2.5 of the devices will be available, and
258every block will be stored on two different devices.
259
260Finally, it is possible to have an array with both 'near' and 'far'
93e790af 261copies. If an array is configured with 2 near copies and 2 far
599e5a36
NB
262copies, then there will be a total of 4 copies of each block, each on
263a different drive. This is an artifact of the implementation and is
264unlikely to be of real value.
265
bf40ab85 266.SS MULTIPATH
e0d19036
NB
267
268MULTIPATH is not really a RAID at all as there is only one real device
269in a MULTIPATH md array. However there are multiple access points
270(paths) to this device, and one of these paths might fail, so there
271are some similarities.
272
a9d69660 273A MULTIPATH array is composed of a number of logically different
2d465520
NB
274devices, often fibre channel interfaces, that all refer the the same
275real device. If one of these interfaces fails (e.g. due to cable
a9d69660 276problems), the multipath driver will attempt to redirect requests to
2d465520 277another interface.
e0d19036 278
b5e64645
NB
279.SS FAULTY
280The FAULTY md module is provided for testing purposes. A faulty array
281has exactly one component device and is normally assembled without a
282superblock, so the md array created provides direct access to all of
283the data in the component device.
284
285The FAULTY module may be requested to simulate faults to allow testing
a9d69660 286of other md levels or of filesystems. Faults can be chosen to trigger
b5e64645 287on read requests or write requests, and can be transient (a subsequent
addc80c4 288read/write at the address will probably succeed) or persistent
b5e64645
NB
289(subsequent read/write of the same address will fail). Further, read
290faults can be "fixable" meaning that they persist until a write
291request at the same address.
292
93e790af 293Fault types can be requested with a period. In this case, the fault
a9d69660
NB
294will recur repeatedly after the given number of requests of the
295relevant type. For example if persistent read faults have a period of
296100, then every 100th read request would generate a fault, and the
b5e64645
NB
297faulty sector would be recorded so that subsequent reads on that
298sector would also fail.
299
300There is a limit to the number of faulty sectors that are remembered.
301Faults generated after this limit is exhausted are treated as
302transient.
303
a9d69660 304The list of faulty sectors can be flushed, and the active list of
b5e64645 305failure modes can be cleared.
e0d19036
NB
306
307.SS UNCLEAN SHUTDOWN
308
599e5a36
NB
309When changes are made to a RAID1, RAID4, RAID5, RAID6, or RAID10 array
310there is a possibility of inconsistency for short periods of time as
93e790af
SW
311each update requires at least two block to be written to different
312devices, and these writes probably won't happen at exactly the same
599e5a36
NB
313time. Thus if a system with one of these arrays is shutdown in the
314middle of a write operation (e.g. due to power failure), the array may
315not be consistent.
e0d19036 316
2d465520 317To handle this situation, the md driver marks an array as "dirty"
e0d19036 318before writing any data to it, and marks it as "clean" when the array
98c6faba
NB
319is being disabled, e.g. at shutdown. If the md driver finds an array
320to be dirty at startup, it proceeds to correct any possibly
321inconsistency. For RAID1, this involves copying the contents of the
322first drive onto all other drives. For RAID4, RAID5 and RAID6 this
323involves recalculating the parity for each stripe and making sure that
599e5a36
NB
324the parity block has the correct data. For RAID10 it involves copying
325one of the replicas of each block onto all the others. This process,
326known as "resynchronising" or "resync" is performed in the background.
327The array can still be used, though possibly with reduced performance.
98c6faba
NB
328
329If a RAID4, RAID5 or RAID6 array is degraded (missing at least one
93e790af 330drive, two for RAID6) when it is restarted after an unclean shutdown, it cannot
98c6faba
NB
331recalculate parity, and so it is possible that data might be
332undetectably corrupted. The 2.4 md driver
e0d19036 333.B does not
addc80c4
NB
334alert the operator to this condition. The 2.6 md driver will fail to
335start an array in this condition without manual intervention, though
35cc5be4 336this behaviour can be overridden by a kernel parameter.
e0d19036
NB
337
338.SS RECOVERY
339
addc80c4 340If the md driver detects a write error on a device in a RAID1, RAID4,
599e5a36
NB
341RAID5, RAID6, or RAID10 array, it immediately disables that device
342(marking it as faulty) and continues operation on the remaining
93e790af
SW
343devices. If there are spare drives, the driver will start recreating
344on one of the spare drives the data which was on that failed drive,
599e5a36
NB
345either by copying a working drive in a RAID1 configuration, or by
346doing calculations with the parity block on RAID4, RAID5 or RAID6, or
93e790af 347by finding and copying originals for RAID10.
e0d19036 348
addc80c4
NB
349In kernels prior to about 2.6.15, a read error would cause the same
350effect as a write error. In later kernels, a read-error will instead
351cause md to attempt a recovery by overwriting the bad block. i.e. it
352will find the correct data from elsewhere, write it over the block
353that failed, and then try to read it back again. If either the write
354or the re-read fail, md will treat the error the same way that a write
93e790af 355error is treated, and will fail the whole device.
addc80c4 356
2d465520 357While this recovery process is happening, the md driver will monitor
e0d19036
NB
358accesses to the array and will slow down the rate of recovery if other
359activity is happening, so that normal access to the array will not be
360unduly affected. When no other activity is happening, the recovery
361process proceeds at full speed. The actual speed targets for the two
362different situations can be controlled by the
363.B speed_limit_min
364and
365.B speed_limit_max
366control files mentioned below.
367
599e5a36
NB
368.SS BITMAP WRITE-INTENT LOGGING
369
370From Linux 2.6.13,
371.I md
372supports a bitmap based write-intent log. If configured, the bitmap
373is used to record which blocks of the array may be out of sync.
374Before any write request is honoured, md will make sure that the
375corresponding bit in the log is set. After a period of time with no
376writes to an area of the array, the corresponding bit will be cleared.
377
378This bitmap is used for two optimisations.
379
1afe1167 380Firstly, after an unclean shutdown, the resync process will consult
599e5a36 381the bitmap and only resync those blocks that correspond to bits in the
1afe1167 382bitmap that are set. This can dramatically reduce resync time.
599e5a36
NB
383
384Secondly, when a drive fails and is removed from the array, md stops
385clearing bits in the intent log. If that same drive is re-added to
386the array, md will notice and will only recover the sections of the
387drive that are covered by bits in the intent log that are set. This
388can allow a device to be temporarily removed and reinserted without
389causing an enormous recovery cost.
390
391The intent log can be stored in a file on a separate device, or it can
392be stored near the superblocks of an array which has superblocks.
393
93e790af 394It is possible to add an intent log to an active array, or remove an
addc80c4 395intent log if one is present.
599e5a36
NB
396
397In 2.6.13, intent bitmaps are only supported with RAID1. Other levels
addc80c4 398with redundancy are supported from 2.6.15.
599e5a36
NB
399
400.SS WRITE-BEHIND
401
402From Linux 2.6.14,
403.I md
addc80c4 404supports WRITE-BEHIND on RAID1 arrays.
599e5a36
NB
405
406This allows certain devices in the array to be flagged as
407.IR write-mostly .
408MD will only read from such devices if there is no
409other option.
410
411If a write-intent bitmap is also provided, write requests to
412write-mostly devices will be treated as write-behind requests and md
413will not wait for writes to those requests to complete before
414reporting the write as complete to the filesystem.
415
416This allows for a RAID1 with WRITE-BEHIND to be used to mirror data
8f21823f 417over a slow link to a remote computer (providing the link isn't too
599e5a36
NB
418slow). The extra latency of the remote link will not slow down normal
419operations, but the remote system will still have a reasonably
420up-to-date copy of all data.
421
addc80c4
NB
422.SS RESTRIPING
423
424.IR Restriping ,
425also known as
426.IR Reshaping ,
427is the processes of re-arranging the data stored in each stripe into a
428new layout. This might involve changing the number of devices in the
93e790af 429array (so the stripes are wider), changing the chunk size (so stripes
addc80c4 430are deeper or shallower), or changing the arrangement of data and
93e790af 431parity (possibly changing the raid level, e.g. 1 to 5 or 5 to 6).
addc80c4
NB
432
433As of Linux 2.6.17, md can reshape a raid5 array to have more
434devices. Other possibilities may follow in future kernels.
435
436During any stripe process there is a 'critical section' during which
35cc5be4 437live data is being overwritten on disk. For the operation of
addc80c4
NB
438increasing the number of drives in a raid5, this critical section
439covers the first few stripes (the number being the product of the old
440and new number of devices). After this critical section is passed,
441data is only written to areas of the array which no longer hold live
b3f1c093 442data \(em the live data has already been located away.
addc80c4
NB
443
444md is not able to ensure data preservation if there is a crash
445(e.g. power failure) during the critical section. If md is asked to
446start an array which failed during a critical section of restriping,
447it will fail to start the array.
448
449To deal with this possibility, a user-space program must
450.IP \(bu 4
451Disable writes to that section of the array (using the
452.B sysfs
453interface),
454.IP \(bu 4
93e790af 455take a copy of the data somewhere (i.e. make a backup),
addc80c4 456.IP \(bu 4
93e790af 457allow the process to continue and invalidate the backup and restore
addc80c4
NB
458write access once the critical section is passed, and
459.IP \(bu 4
93e790af 460provide for restoring the critical data before restarting the array
addc80c4
NB
461after a system crash.
462.PP
463
464.B mdadm
93e790af 465versions from 2.4 do this for growing a RAID5 array.
addc80c4
NB
466
467For operations that do not change the size of the array, like simply
468increasing chunk size, or converting RAID5 to RAID6 with one extra
93e790af
SW
469device, the entire process is the critical section. In this case, the
470restripe will need to progress in stages, as a section is suspended,
addc80c4 471backed up,
93e790af 472restriped, and released; this is not yet implemented.
addc80c4
NB
473
474.SS SYSFS INTERFACE
93e790af 475Each block device appears as a directory in
addc80c4 476.I sysfs
93e790af 477(which is usually mounted at
addc80c4
NB
478.BR /sys ).
479For MD devices, this directory will contain a subdirectory called
480.B md
481which contains various files for providing access to information about
482the array.
483
484This interface is documented more fully in the file
485.B Documentation/md.txt
486which is distributed with the kernel sources. That file should be
487consulted for full documentation. The following are just a selection
488of attribute files that are available.
489
490.TP
491.B md/sync_speed_min
492This value, if set, overrides the system-wide setting in
493.B /proc/sys/dev/raid/speed_limit_min
494for this array only.
495Writing the value
93e790af
SW
496.B "system"
497to this file will cause the system-wide setting to have effect.
addc80c4
NB
498
499.TP
500.B md/sync_speed_max
501This is the partner of
502.B md/sync_speed_min
503and overrides
504.B /proc/sys/dev/raid/spool_limit_max
505described below.
506
507.TP
508.B md/sync_action
509This can be used to monitor and control the resync/recovery process of
510MD.
511In particular, writing "check" here will cause the array to read all
512data block and check that they are consistent (e.g. parity is correct,
513or all mirror replicas are the same). Any discrepancies found are
514.B NOT
515corrected.
516
517A count of problems found will be stored in
518.BR md/mismatch_count .
519
520Alternately, "repair" can be written which will cause the same check
521to be performed, but any errors will be corrected.
522
523Finally, "idle" can be written to stop the check/repair process.
524
525.TP
526.B md/stripe_cache_size
527This is only available on RAID5 and RAID6. It records the size (in
528pages per device) of the stripe cache which is used for synchronising
529all read and write operations to the array. The default is 128.
530Increasing this number can increase performance in some situations, at
531some cost in system memory.
532
533
5787fa49
NB
534.SS KERNEL PARAMETERS
535
addc80c4 536The md driver recognised several different kernel parameters.
5787fa49
NB
537.TP
538.B raid=noautodetect
539This will disable the normal detection of md arrays that happens at
540boot time. If a drive is partitioned with MS-DOS style partitions,
541then if any of the 4 main partitions has a partition type of 0xFD,
542then that partition will normally be inspected to see if it is part of
543an MD array, and if any full arrays are found, they are started. This
addc80c4 544kernel parameter disables this behaviour.
5787fa49 545
a9d69660
NB
546.TP
547.B raid=partitionable
548.TP
549.B raid=part
550These are available in 2.6 and later kernels only. They indicate that
551autodetected MD arrays should be created as partitionable arrays, with
552a different major device number to the original non-partitionable md
553arrays. The device number is listed as
554.I mdp
555in
556.IR /proc/devices .
557
addc80c4
NB
558.TP
559.B md_mod.start_ro=1
560This tells md to start all arrays in read-only mode. This is a soft
561read-only that will automatically switch to read-write on the first
562write request. However until that write request, nothing is written
563to any device by md, and in particular, no resync or recovery
564operation is started.
565
566.TP
567.B md_mod.start_dirty_degraded=1
568As mentioned above, md will not normally start a RAID4, RAID5, or
569RAID6 that is both dirty and degraded as this situation can imply
570hidden data loss. This can be awkward if the root filesystem is
93e790af 571affected. Using this module parameter allows such arrays to be started
addc80c4
NB
572at boot time. It should be understood that there is a real (though
573small) risk of data corruption in this situation.
a9d69660 574
5787fa49
NB
575.TP
576.BI md= n , dev , dev ,...
a9d69660
NB
577.TP
578.BI md=d n , dev , dev ,...
5787fa49
NB
579This tells the md driver to assemble
580.B /dev/md n
581from the listed devices. It is only necessary to start the device
582holding the root filesystem this way. Other arrays are best started
583once the system is booted.
584
a9d69660
NB
585In 2.6 kernels, the
586.B d
587immediately after the
588.B =
589indicates that a partitionable device (e.g.
590.BR /dev/md/d0 )
591should be created rather than the original non-partitionable device.
592
5787fa49
NB
593.TP
594.BI md= n , l , c , i , dev...
595This tells the md driver to assemble a legacy RAID0 or LINEAR array
596without a superblock.
597.I n
598gives the md device number,
599.I l
600gives the level, 0 for RAID0 or -1 for LINEAR,
601.I c
602gives the chunk size as a base-2 logarithm offset by twelve, so 0
603means 4K, 1 means 8K.
604.I i
605is ignored (legacy support).
e0d19036 606
56eb10c0
NB
607.SH FILES
608.TP
609.B /proc/mdstat
610Contains information about the status of currently running array.
611.TP
612.B /proc/sys/dev/raid/speed_limit_min
93e790af 613A readable and writable file that reflects the current "goal" rebuild
56eb10c0
NB
614speed for times when non-rebuild activity is current on an array.
615The speed is in Kibibytes per second, and is a per-device rate, not a
93e790af 616per-array rate (which means that an array with more disks will shuffle
56eb10c0
NB
617more data for a given speed). The default is 100.
618
619.TP
620.B /proc/sys/dev/raid/speed_limit_max
93e790af 621A readable and writable file that reflects the current "goal" rebuild
56eb10c0
NB
622speed for times when no non-rebuild activity is current on an array.
623The default is 100,000.
624
625.SH SEE ALSO
626.BR mdadm (8),
627.BR mkraid (8).