@@ -30,6 +30,7 @@ The target is named "raid" and it accepts the following parameters:
3030 raid10 Various RAID10 inspired algorithms chosen by additional params
3131 - RAID10: Striped Mirrors (aka 'Striping on top of mirrors')
3232 - RAID1E: Integrated Adjacent Stripe Mirroring
33+ - RAID1E: Integrated Offset Stripe Mirroring
3334 - and other similar RAID10 variants
3435
3536 Reference: Chapter 4 of
@@ -64,15 +65,15 @@ The target is named "raid" and it accepts the following parameters:
6465 synchronisation state for each region.
6566
6667 [raid10_copies <# copies>]
67- [raid10_format near]
68+ [raid10_format < near|far|offset> ]
6869 These two options are used to alter the default layout of
6970 a RAID10 configuration. The number of copies is can be
70- specified, but the default is 2. There are other variations
71- to how the copies are laid down - the default and only current
72- option is "near". Near copies are what most people think of
73- with respect to mirroring. If these options are left
74- unspecified, or 'raid10_copies 2' and/or 'raid10_format near'
75- are given, then the layouts for 2, 3 and 4 devices are:
71+ specified, but the default is 2. There are also three
72+ variations to how the copies are laid down - the default
73+ is "near". Near copies are what most people think of with
74+ respect to mirroring. If these options are left unspecified,
75+ or 'raid10_copies 2' and/or 'raid10_format near' are given,
76+ then the layouts for 2, 3 and 4 devices are:
7677 2 drives 3 drives 4 drives
7778 -------- ---------- --------------
7879 A1 A1 A1 A1 A2 A1 A1 A2 A2
@@ -85,6 +86,33 @@ The target is named "raid" and it accepts the following parameters:
8586 3-device layout is what might be called a 'RAID1E - Integrated
8687 Adjacent Stripe Mirroring'.
8788
89+ If 'raid10_copies 2' and 'raid10_format far', then the layouts
90+ for 2, 3 and 4 devices are:
91+ 2 drives 3 drives 4 drives
92+ -------- -------------- --------------------
93+ A1 A2 A1 A2 A3 A1 A2 A3 A4
94+ A3 A4 A4 A5 A6 A5 A6 A7 A8
95+ A5 A6 A7 A8 A9 A9 A10 A11 A12
96+ .. .. .. .. .. .. .. .. ..
97+ A2 A1 A3 A1 A2 A2 A1 A4 A3
98+ A4 A3 A6 A4 A5 A6 A5 A8 A7
99+ A6 A5 A9 A7 A8 A10 A9 A12 A11
100+ .. .. .. .. .. .. .. .. ..
101+
102+ If 'raid10_copies 2' and 'raid10_format offset', then the
103+ layouts for 2, 3 and 4 devices are:
104+ 2 drives 3 drives 4 drives
105+ -------- ------------ -----------------
106+ A1 A2 A1 A2 A3 A1 A2 A3 A4
107+ A2 A1 A3 A1 A2 A2 A1 A4 A3
108+ A3 A4 A4 A5 A6 A5 A6 A7 A8
109+ A4 A3 A6 A4 A5 A6 A5 A8 A7
110+ A5 A6 A7 A8 A9 A9 A10 A11 A12
111+ A6 A5 A9 A7 A8 A10 A9 A12 A11
112+ .. .. .. .. .. .. .. .. ..
113+ Here we see layouts closely akin to 'RAID1E - Integrated
114+ Offset Stripe Mirroring'.
115+
88116<#raid_devs>: The number of devices composing the array.
89117 Each device consists of two entries. The first is the device
90118 containing the metadata (if any); the second is the one containing the
@@ -142,3 +170,5 @@ Version History
1421701.3.0 Added support for RAID 10
1431711.3.1 Allow device replacement/rebuild for RAID 10
1441721.3.2 Fix/improve redundancy checking for RAID10
173+ 1.4.0 Non-functional change. Removes arg from mapping function.
174+ 1.4.1 Add RAID10 "far" and "offset" algorithm support.
0 commit comments