summaryrefslogtreecommitdiffstats
path: root/md.man
blob: 33b54712f7646b627429e6b431a168ccb5d63e8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
MD(4)                                                       MD(4)



NNAAMMEE
       md - Multiple Device driver aka Linux Software Raid

SSYYNNOOPPSSIISS
       //ddeevv//mmdd_n
       //ddeevv//mmdd//_n

DDEESSCCRRIIPPTTIIOONN
       The  mmdd  driver  provides virtual devices that are created
       from one or more  independant  underlying  devices.   This
       array  of devices often contains redundancy, and hence the
       acronym RAID which stands for a Redundant Array  of  Inde-
       pendant Devices.

       mmdd support RAID levels 1 (mirroring) 4 (striped array with
       parity device) and 5 (striped array with distributed  par-
       ity  information.   If  a  single  underlying device fails
       while using one of these level, they array  will  continue
       to function.

       mmdd  also  supports a number of pseudo RAID (non-redundant)
       configuations  including  RAID0  (striped  array),  LINEAR
       (catenated array) and MULTIPATH (a set of different inter-
       faces to the same device).


   RRAAIIDD SSUUPPEERR BBLLOOCCKK
       With the exception of Legacy Arrays described below,  each
       device  that is incorportated into an MD array has a _s_u_p_e_r
       _b_l_o_c_k  written  towards  the  end  of  the  device.   This
       superblock  records  information  about  the structure and
       state of the array so that the array an  be  reliably  re-
       assembled after a shutdown.

       The  superblock  is  4K  long  and  is  written into a 64K
       aligned block that start at least 64K and less  than  128K
       from the end of the device (i.e. to get the address of the
       superblock round the size of the device down to a multiple
       of 64K and then subtract 64K).  The available size of each
       device is the ammount of space before the super block,  so
       between 64K and 128K is lost when a device in incorporated
       into an MD array.

       The superblock contains, among other things:

       LEVEL  The

       UUID   a 128 bit Universally Unique Identifier that  iden-
              tifies the array that this device is part of.


   LLIINNEEAARR
   RRAAIIDD00
   RRAAIIDD11
   RRAAIIDD44
   RRAAIIDD55
   RREEBBUUIILLDD//RREESSYYNNCC
FFIILLEESS
       //pprroocc//mmddssttaatt
              Contains  information about the status of currently
              running array.

       //pprroocc//ssyyss//ddeevv//rraaiidd//ssppeeeedd__lliimmiitt__mmiinn
              A readable and writable file that reflects the cur-
              rent  goal rebuild speed for times when non-rebuild
              activity is current on an array.  The speed  is  in
              Kibibytes per second, and is a per-device rate, not
              a per-array rate (which means that  an  array  with
              more  disc  will  shuffle  more  data  for  a given
              speed).   The default is 100.


       //pprroocc//ssyyss//ddeevv//rraaiidd//ssppeeeedd__lliimmiitt__mmaaxx
              A readable and writable file that reflects the cur-
              rent  goal  rebuild  speed  for  times when no non-
              rebuild activity  is  current  on  an  array.   The
              default is 100,000.


SSEEEE AALLSSOO
       mmddaaddmm(8), mmkkrraaiidd(8).



                                                            MD(4)