diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2009-09-25 19:07:19 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-10-01 15:17:49 -0400 |
commit | b411b3637fa71fce9cf2acf0639009500f5892fe (patch) | |
tree | 6b88e5202e0f137fef50e95b0441bcafdbf91990 /Documentation | |
parent | 1a35e0f6443f4266dad4c569c55c57a9032596fa (diff) |
The DRBD driver
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/blockdev/drbd/DRBD-8.3-data-packets.svg | 588 | ||||
-rw-r--r-- | Documentation/blockdev/drbd/DRBD-data-packets.svg | 459 | ||||
-rw-r--r-- | Documentation/blockdev/drbd/README.txt | 16 | ||||
-rw-r--r-- | Documentation/blockdev/drbd/conn-states-8.dot | 18 | ||||
-rw-r--r-- | Documentation/blockdev/drbd/disk-states-8.dot | 16 | ||||
-rw-r--r-- | Documentation/blockdev/drbd/drbd-connection-state-overview.dot | 85 | ||||
-rw-r--r-- | Documentation/blockdev/drbd/node-states-8.dot | 14 |
7 files changed, 1196 insertions, 0 deletions
diff --git a/Documentation/blockdev/drbd/DRBD-8.3-data-packets.svg b/Documentation/blockdev/drbd/DRBD-8.3-data-packets.svg new file mode 100644 index 000000000000..f87cfa0dc2fb --- /dev/null +++ b/Documentation/blockdev/drbd/DRBD-8.3-data-packets.svg | |||
@@ -0,0 +1,588 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <!-- Created with Inkscape (http://www.inkscape.org/) --> | ||
3 | <svg | ||
4 | xmlns:svg="http://www.w3.org/2000/svg" | ||
5 | xmlns="http://www.w3.org/2000/svg" | ||
6 | version="1.0" | ||
7 | width="210mm" | ||
8 | height="297mm" | ||
9 | viewBox="0 0 21000 29700" | ||
10 | id="svg2" | ||
11 | style="fill-rule:evenodd"> | ||
12 | <defs | ||
13 | id="defs4" /> | ||
14 | <g | ||
15 | id="Default" | ||
16 | style="visibility:visible"> | ||
17 | <desc | ||
18 | id="desc180">Master slide</desc> | ||
19 | </g> | ||
20 | <path | ||
21 | d="M 11999,8601 L 11899,8301 L 12099,8301 L 11999,8601 z" | ||
22 | id="path193" | ||
23 | style="fill:#008000;visibility:visible" /> | ||
24 | <path | ||
25 | d="M 11999,7801 L 11999,8361" | ||
26 | id="path197" | ||
27 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
28 | <path | ||
29 | d="M 7999,10401 L 7899,10101 L 8099,10101 L 7999,10401 z" | ||
30 | id="path209" | ||
31 | style="fill:#008000;visibility:visible" /> | ||
32 | <path | ||
33 | d="M 7999,9601 L 7999,10161" | ||
34 | id="path213" | ||
35 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
36 | <path | ||
37 | d="M 11999,7801 L 11685,7840 L 11724,7644 L 11999,7801 z" | ||
38 | id="path225" | ||
39 | style="fill:#008000;visibility:visible" /> | ||
40 | <path | ||
41 | d="M 7999,7001 L 11764,7754" | ||
42 | id="path229" | ||
43 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
44 | <g | ||
45 | transform="matrix(0.9895258,-0.1443562,0.1443562,0.9895258,-1244.4792,1416.5139)" | ||
46 | id="g245" | ||
47 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
48 | <text | ||
49 | id="text247"> | ||
50 | <tspan | ||
51 | x="9139 9368 9579 9808 9986 10075 10252 10481 10659 10837 10909" | ||
52 | y="9284" | ||
53 | id="tspan249">RSDataReply</tspan> | ||
54 | </text> | ||
55 | </g> | ||
56 | <path | ||
57 | d="M 7999,9601 L 8281,9458 L 8311,9655 L 7999,9601 z" | ||
58 | id="path259" | ||
59 | style="fill:#008000;visibility:visible" /> | ||
60 | <path | ||
61 | d="M 11999,9001 L 8236,9565" | ||
62 | id="path263" | ||
63 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
64 | <g | ||
65 | transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,1620.9382,-1639.4947)" | ||
66 | id="g279" | ||
67 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
68 | <text | ||
69 | id="text281"> | ||
70 | <tspan | ||
71 | x="8743 8972 9132 9310 9573 9801 10013 10242 10419 10597 10775 10953 11114" | ||
72 | y="7023" | ||
73 | id="tspan283">CsumRSRequest</tspan> | ||
74 | </text> | ||
75 | </g> | ||
76 | <text | ||
77 | id="text297" | ||
78 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
79 | <tspan | ||
80 | x="4034 4263 4440 4703 4881 5042 5219 5397 5503 5681 5842 6003 6180 6341 6519 6625 6803 6980 7158 7336 7497 7586 7692" | ||
81 | y="5707" | ||
82 | id="tspan299">w_make_resync_request()</tspan> | ||
83 | </text> | ||
84 | <text | ||
85 | id="text313" | ||
86 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
87 | <tspan | ||
88 | x="12199 12305 12483 12644 12821 12893 13054 13232 13410 13638 13816 13905 14083 14311 14489 14667 14845 15023 15184 15272 15378" | ||
89 | y="7806" | ||
90 | id="tspan315">receive_DataRequest()</tspan> | ||
91 | </text> | ||
92 | <text | ||
93 | id="text329" | ||
94 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
95 | <tspan | ||
96 | x="12199 12377 12483 12660 12838 13016 13194 13372 13549 13621 13799 13977 14083 14261 14438 14616 14794 14955 15133 15294 15399" | ||
97 | y="8606" | ||
98 | id="tspan331">drbd_endio_read_sec()</tspan> | ||
99 | </text> | ||
100 | <text | ||
101 | id="text345" | ||
102 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
103 | <tspan | ||
104 | x="12191 12420 12597 12775 12953 13131 13309 13486 13664 13825 13986 14164 14426 14604 14710 14871 15049 15154 15332 15510 15616" | ||
105 | y="9007" | ||
106 | id="tspan347">w_e_end_csum_rs_req()</tspan> | ||
107 | </text> | ||
108 | <text | ||
109 | id="text361" | ||
110 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
111 | <tspan | ||
112 | x="4444 4550 4728 4889 5066 5138 5299 5477 5655 5883 6095 6324 6501 6590 6768 6997 7175 7352 7424 7585 7691" | ||
113 | y="9507" | ||
114 | id="tspan363">receive_RSDataReply()</tspan> | ||
115 | </text> | ||
116 | <text | ||
117 | id="text377" | ||
118 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
119 | <tspan | ||
120 | x="4457 4635 4741 4918 5096 5274 5452 5630 5807 5879 6057 6235 6464 6569 6641 6730 6908 7086 7247 7425 7585 7691" | ||
121 | y="10407" | ||
122 | id="tspan379">drbd_endio_write_sec()</tspan> | ||
123 | </text> | ||
124 | <text | ||
125 | id="text393" | ||
126 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
127 | <tspan | ||
128 | x="4647 4825 5003 5180 5358 5536 5714 5820 5997 6158 6319 6497 6658 6836 7013 7085 7263 7424 7585 7691" | ||
129 | y="10907" | ||
130 | id="tspan395">e_end_resync_block()</tspan> | ||
131 | </text> | ||
132 | <path | ||
133 | d="M 11999,11601 L 11685,11640 L 11724,11444 L 11999,11601 z" | ||
134 | id="path405" | ||
135 | style="fill:#000080;visibility:visible" /> | ||
136 | <path | ||
137 | d="M 7999,10801 L 11764,11554" | ||
138 | id="path409" | ||
139 | style="fill:none;stroke:#000080;visibility:visible" /> | ||
140 | <g | ||
141 | transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,2434.7562,-1674.649)" | ||
142 | id="g425" | ||
143 | style="font-size:318px;font-weight:400;fill:#000080;visibility:visible;font-family:Helvetica embedded"> | ||
144 | <text | ||
145 | id="text427"> | ||
146 | <tspan | ||
147 | x="9320 9621 9726 9798 9887 10065 10277 10438" | ||
148 | y="10943" | ||
149 | id="tspan429">WriteAck</tspan> | ||
150 | </text> | ||
151 | </g> | ||
152 | <text | ||
153 | id="text443" | ||
154 | style="font-size:318px;font-weight:400;fill:#000080;visibility:visible;font-family:Helvetica embedded"> | ||
155 | <tspan | ||
156 | x="12199 12377 12555 12644 12821 13033 13105 13283 13444 13604 13816 13977 14138 14244" | ||
157 | y="11559" | ||
158 | id="tspan445">got_BlockAck()</tspan> | ||
159 | </text> | ||
160 | <text | ||
161 | id="text459" | ||
162 | style="font-size:423px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
163 | <tspan | ||
164 | x="7999 8304 8541 8778 8990 9201 9413 9650 10001 10120 10357 10594 10806 11043 11280 11398 11703 11940 12152 12364 12601 12812 12931 13049 13261 13498 13710 13947 14065 14302 14540 14658 14777 14870 15107 15225 15437 15649 15886" | ||
165 | y="4877" | ||
166 | id="tspan461">Checksum based Resync, case not in sync</tspan> | ||
167 | </text> | ||
168 | <text | ||
169 | id="text475" | ||
170 | style="font-size:423px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
171 | <tspan | ||
172 | x="6961 7266 7571 7854 8159 8299 8536 8654 8891 9010 9247 9484 9603 9840 9958 10077 10170 10407" | ||
173 | y="2806" | ||
174 | id="tspan477">DRBD-8.3 data flow</tspan> | ||
175 | </text> | ||
176 | <text | ||
177 | id="text491" | ||
178 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
179 | <tspan | ||
180 | x="5190 5419 5596 5774 5952 6113 6291 6468 6646 6824 6985 7146 7324 7586 7692" | ||
181 | y="7005" | ||
182 | id="tspan493">w_e_send_csum()</tspan> | ||
183 | </text> | ||
184 | <path | ||
185 | d="M 11999,17601 L 11899,17301 L 12099,17301 L 11999,17601 z" | ||
186 | id="path503" | ||
187 | style="fill:#008000;visibility:visible" /> | ||
188 | <path | ||
189 | d="M 11999,16801 L 11999,17361" | ||
190 | id="path507" | ||
191 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
192 | <path | ||
193 | d="M 11999,16801 L 11685,16840 L 11724,16644 L 11999,16801 z" | ||
194 | id="path519" | ||
195 | style="fill:#008000;visibility:visible" /> | ||
196 | <path | ||
197 | d="M 7999,16001 L 11764,16754" | ||
198 | id="path523" | ||
199 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
200 | <g | ||
201 | transform="matrix(0.9895258,-0.1443562,0.1443562,0.9895258,-2539.5806,1529.3491)" | ||
202 | id="g539" | ||
203 | style="font-size:318px;font-weight:400;fill:#000080;visibility:visible;font-family:Helvetica embedded"> | ||
204 | <text | ||
205 | id="text541"> | ||
206 | <tspan | ||
207 | x="9269 9498 9709 9798 9959 10048 10226 10437 10598 10776" | ||
208 | y="18265" | ||
209 | id="tspan543">RSIsInSync</tspan> | ||
210 | </text> | ||
211 | </g> | ||
212 | <path | ||
213 | d="M 7999,18601 L 8281,18458 L 8311,18655 L 7999,18601 z" | ||
214 | id="path553" | ||
215 | style="fill:#000080;visibility:visible" /> | ||
216 | <path | ||
217 | d="M 11999,18001 L 8236,18565" | ||
218 | id="path557" | ||
219 | style="fill:none;stroke:#000080;visibility:visible" /> | ||
220 | <g | ||
221 | transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,3461.4027,-1449.3012)" | ||
222 | id="g573" | ||
223 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
224 | <text | ||
225 | id="text575"> | ||
226 | <tspan | ||
227 | x="8743 8972 9132 9310 9573 9801 10013 10242 10419 10597 10775 10953 11114" | ||
228 | y="16023" | ||
229 | id="tspan577">CsumRSRequest</tspan> | ||
230 | </text> | ||
231 | </g> | ||
232 | <text | ||
233 | id="text591" | ||
234 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
235 | <tspan | ||
236 | x="12199 12305 12483 12644 12821 12893 13054 13232 13410 13638 13816 13905 14083 14311 14489 14667 14845 15023 15184 15272 15378" | ||
237 | y="16806" | ||
238 | id="tspan593">receive_DataRequest()</tspan> | ||
239 | </text> | ||
240 | <text | ||
241 | id="text607" | ||
242 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
243 | <tspan | ||
244 | x="12199 12377 12483 12660 12838 13016 13194 13372 13549 13621 13799 13977 14083 14261 14438 14616 14794 14955 15133 15294 15399" | ||
245 | y="17606" | ||
246 | id="tspan609">drbd_endio_read_sec()</tspan> | ||
247 | </text> | ||
248 | <text | ||
249 | id="text623" | ||
250 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
251 | <tspan | ||
252 | x="12191 12420 12597 12775 12953 13131 13309 13486 13664 13825 13986 14164 14426 14604 14710 14871 15049 15154 15332 15510 15616" | ||
253 | y="18007" | ||
254 | id="tspan625">w_e_end_csum_rs_req()</tspan> | ||
255 | </text> | ||
256 | <text | ||
257 | id="text639" | ||
258 | style="font-size:318px;font-weight:400;fill:#000080;visibility:visible;font-family:Helvetica embedded"> | ||
259 | <tspan | ||
260 | x="5735 5913 6091 6180 6357 6446 6607 6696 6874 7085 7246 7424 7585 7691" | ||
261 | y="18507" | ||
262 | id="tspan641">got_IsInSync()</tspan> | ||
263 | </text> | ||
264 | <text | ||
265 | id="text655" | ||
266 | style="font-size:423px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
267 | <tspan | ||
268 | x="7999 8304 8541 8778 8990 9201 9413 9650 10001 10120 10357 10594 10806 11043 11280 11398 11703 11940 12152 12364 12601 12812 12931 13049 13261 13498 13710 13947 14065 14159 14396 14514 14726 14937 15175" | ||
269 | y="13877" | ||
270 | id="tspan657">Checksum based Resync, case in sync</tspan> | ||
271 | </text> | ||
272 | <path | ||
273 | d="M 12000,24601 L 11900,24301 L 12100,24301 L 12000,24601 z" | ||
274 | id="path667" | ||
275 | style="fill:#008000;visibility:visible" /> | ||
276 | <path | ||
277 | d="M 12000,23801 L 12000,24361" | ||
278 | id="path671" | ||
279 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
280 | <path | ||
281 | d="M 8000,26401 L 7900,26101 L 8100,26101 L 8000,26401 z" | ||
282 | id="path683" | ||
283 | style="fill:#008000;visibility:visible" /> | ||
284 | <path | ||
285 | d="M 8000,25601 L 8000,26161" | ||
286 | id="path687" | ||
287 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
288 | <path | ||
289 | d="M 12000,23801 L 11686,23840 L 11725,23644 L 12000,23801 z" | ||
290 | id="path699" | ||
291 | style="fill:#008000;visibility:visible" /> | ||
292 | <path | ||
293 | d="M 8000,23001 L 11765,23754" | ||
294 | id="path703" | ||
295 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
296 | <g | ||
297 | transform="matrix(0.9895258,-0.1443562,0.1443562,0.9895258,-3543.8452,1630.5143)" | ||
298 | id="g719" | ||
299 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
300 | <text | ||
301 | id="text721"> | ||
302 | <tspan | ||
303 | x="9464 9710 9921 10150 10328 10505 10577" | ||
304 | y="25236" | ||
305 | id="tspan723">OVReply</tspan> | ||
306 | </text> | ||
307 | </g> | ||
308 | <path | ||
309 | d="M 8000,25601 L 8282,25458 L 8312,25655 L 8000,25601 z" | ||
310 | id="path733" | ||
311 | style="fill:#008000;visibility:visible" /> | ||
312 | <path | ||
313 | d="M 12000,25001 L 8237,25565" | ||
314 | id="path737" | ||
315 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
316 | <g | ||
317 | transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,4918.2801,-1381.2128)" | ||
318 | id="g753" | ||
319 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
320 | <text | ||
321 | id="text755"> | ||
322 | <tspan | ||
323 | x="9142 9388 9599 9828 10006 10183 10361 10539 10700" | ||
324 | y="23106" | ||
325 | id="tspan757">OVRequest</tspan> | ||
326 | </text> | ||
327 | </g> | ||
328 | <text | ||
329 | id="text771" | ||
330 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
331 | <tspan | ||
332 | x="12200 12306 12484 12645 12822 12894 13055 13233 13411 13656 13868 14097 14274 14452 14630 14808 14969 15058 15163" | ||
333 | y="23806" | ||
334 | id="tspan773">receive_OVRequest()</tspan> | ||
335 | </text> | ||
336 | <text | ||
337 | id="text787" | ||
338 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
339 | <tspan | ||
340 | x="12200 12378 12484 12661 12839 13017 13195 13373 13550 13622 13800 13978 14084 14262 14439 14617 14795 14956 15134 15295 15400" | ||
341 | y="24606" | ||
342 | id="tspan789">drbd_endio_read_sec()</tspan> | ||
343 | </text> | ||
344 | <text | ||
345 | id="text803" | ||
346 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
347 | <tspan | ||
348 | x="12192 12421 12598 12776 12954 13132 13310 13487 13665 13843 14004 14182 14288 14465 14643 14749" | ||
349 | y="25007" | ||
350 | id="tspan805">w_e_end_ov_req()</tspan> | ||
351 | </text> | ||
352 | <text | ||
353 | id="text819" | ||
354 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
355 | <tspan | ||
356 | x="5101 5207 5385 5546 5723 5795 5956 6134 6312 6557 6769 6998 7175 7353 7425 7586 7692" | ||
357 | y="25507" | ||
358 | id="tspan821">receive_OVReply()</tspan> | ||
359 | </text> | ||
360 | <text | ||
361 | id="text835" | ||
362 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
363 | <tspan | ||
364 | x="4492 4670 4776 4953 5131 5309 5487 5665 5842 5914 6092 6270 6376 6554 6731 6909 7087 7248 7426 7587 7692" | ||
365 | y="26407" | ||
366 | id="tspan837">drbd_endio_read_sec()</tspan> | ||
367 | </text> | ||
368 | <text | ||
369 | id="text851" | ||
370 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
371 | <tspan | ||
372 | x="4902 5131 5308 5486 5664 5842 6020 6197 6375 6553 6714 6892 6998 7175 7353 7425 7586 7692" | ||
373 | y="26907" | ||
374 | id="tspan853">w_e_end_ov_reply()</tspan> | ||
375 | </text> | ||
376 | <path | ||
377 | d="M 12000,27601 L 11686,27640 L 11725,27444 L 12000,27601 z" | ||
378 | id="path863" | ||
379 | style="fill:#000080;visibility:visible" /> | ||
380 | <path | ||
381 | d="M 8000,26801 L 11765,27554" | ||
382 | id="path867" | ||
383 | style="fill:none;stroke:#000080;visibility:visible" /> | ||
384 | <g | ||
385 | transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,5704.1907,-1328.312)" | ||
386 | id="g883" | ||
387 | style="font-size:318px;font-weight:400;fill:#000080;visibility:visible;font-family:Helvetica embedded"> | ||
388 | <text | ||
389 | id="text885"> | ||
390 | <tspan | ||
391 | x="9279 9525 9736 9965 10143 10303 10481 10553" | ||
392 | y="26935" | ||
393 | id="tspan887">OVResult</tspan> | ||
394 | </text> | ||
395 | </g> | ||
396 | <text | ||
397 | id="text901" | ||
398 | style="font-size:318px;font-weight:400;fill:#000080;visibility:visible;font-family:Helvetica embedded"> | ||
399 | <tspan | ||
400 | x="12200 12378 12556 12645 12822 13068 13280 13508 13686 13847 14025 14097 14185 14291" | ||
401 | y="27559" | ||
402 | id="tspan903">got_OVResult()</tspan> | ||
403 | </text> | ||
404 | <text | ||
405 | id="text917" | ||
406 | style="font-size:423px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
407 | <tspan | ||
408 | x="8000 8330 8567 8660 8754 8991 9228 9346 9558 9795 9935 10028 10146" | ||
409 | y="21877" | ||
410 | id="tspan919">Online verify</tspan> | ||
411 | </text> | ||
412 | <text | ||
413 | id="text933" | ||
414 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
415 | <tspan | ||
416 | x="4641 4870 5047 5310 5488 5649 5826 6004 6182 6343 6521 6626 6804 6982 7160 7338 7499 7587 7693" | ||
417 | y="23005" | ||
418 | id="tspan935">w_make_ov_request()</tspan> | ||
419 | </text> | ||
420 | <path | ||
421 | d="M 8000,6500 L 7900,6200 L 8100,6200 L 8000,6500 z" | ||
422 | id="path945" | ||
423 | style="fill:#008000;visibility:visible" /> | ||
424 | <path | ||
425 | d="M 8000,5700 L 8000,6260" | ||
426 | id="path949" | ||
427 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
428 | <path | ||
429 | d="M 3900,5500 L 3700,5500 L 3700,11000 L 3900,11000" | ||
430 | id="path961" | ||
431 | style="fill:none;stroke:#000000;visibility:visible" /> | ||
432 | <path | ||
433 | d="M 3900,14500 L 3700,14500 L 3700,18600 L 3900,18600" | ||
434 | id="path973" | ||
435 | style="fill:none;stroke:#000000;visibility:visible" /> | ||
436 | <path | ||
437 | d="M 3900,22800 L 3700,22800 L 3700,26900 L 3900,26900" | ||
438 | id="path985" | ||
439 | style="fill:none;stroke:#000000;visibility:visible" /> | ||
440 | <text | ||
441 | id="text1001" | ||
442 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
443 | <tspan | ||
444 | x="4492 4670 4776 4953 5131 5309 5487 5665 5842 5914 6092 6270 6376 6554 6731 6909 7087 7248 7426 7587 7692" | ||
445 | y="6506" | ||
446 | id="tspan1003">drbd_endio_read_sec()</tspan> | ||
447 | </text> | ||
448 | <text | ||
449 | id="text1017" | ||
450 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
451 | <tspan | ||
452 | x="4034 4263 4440 4703 4881 5042 5219 5397 5503 5681 5842 6003 6180 6341 6519 6625 6803 6980 7158 7336 7497 7586 7692" | ||
453 | y="14708" | ||
454 | id="tspan1019">w_make_resync_request()</tspan> | ||
455 | </text> | ||
456 | <text | ||
457 | id="text1033" | ||
458 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
459 | <tspan | ||
460 | x="5190 5419 5596 5774 5952 6113 6291 6468 6646 6824 6985 7146 7324 7586 7692" | ||
461 | y="16006" | ||
462 | id="tspan1035">w_e_send_csum()</tspan> | ||
463 | </text> | ||
464 | <path | ||
465 | d="M 8000,15501 L 7900,15201 L 8100,15201 L 8000,15501 z" | ||
466 | id="path1045" | ||
467 | style="fill:#008000;visibility:visible" /> | ||
468 | <path | ||
469 | d="M 8000,14701 L 8000,15261" | ||
470 | id="path1049" | ||
471 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
472 | <text | ||
473 | id="text1065" | ||
474 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
475 | <tspan | ||
476 | x="4492 4670 4776 4953 5131 5309 5487 5665 5842 5914 6092 6270 6376 6554 6731 6909 7087 7248 7426 7587 7692" | ||
477 | y="15507" | ||
478 | id="tspan1067">drbd_endio_read_sec()</tspan> | ||
479 | </text> | ||
480 | <path | ||
481 | d="M 16100,9000 L 16300,9000 L 16300,7500 L 16100,7500" | ||
482 | id="path1077" | ||
483 | style="fill:none;stroke:#000000;visibility:visible" /> | ||
484 | <path | ||
485 | d="M 16100,18000 L 16300,18000 L 16300,16500 L 16100,16500" | ||
486 | id="path1089" | ||
487 | style="fill:none;stroke:#000000;visibility:visible" /> | ||
488 | <path | ||
489 | d="M 16100,25000 L 16300,25000 L 16300,23500 L 16100,23500" | ||
490 | id="path1101" | ||
491 | style="fill:none;stroke:#000000;visibility:visible" /> | ||
492 | <text | ||
493 | id="text1117" | ||
494 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
495 | <tspan | ||
496 | x="2026 2132 2293 2471 2648 2826 3004 3076 3254 3431 3503 3681 3787" | ||
497 | y="5402" | ||
498 | id="tspan1119">rs_begin_io()</tspan> | ||
499 | </text> | ||
500 | <text | ||
501 | id="text1133" | ||
502 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
503 | <tspan | ||
504 | x="2027 2133 2294 2472 2649 2827 3005 3077 3255 3432 3504 3682 3788" | ||
505 | y="14402" | ||
506 | id="tspan1135">rs_begin_io()</tspan> | ||
507 | </text> | ||
508 | <text | ||
509 | id="text1149" | ||
510 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
511 | <tspan | ||
512 | x="2026 2132 2293 2471 2648 2826 3004 3076 3254 3431 3503 3681 3787" | ||
513 | y="22602" | ||
514 | id="tspan1151">rs_begin_io()</tspan> | ||
515 | </text> | ||
516 | <text | ||
517 | id="text1165" | ||
518 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
519 | <tspan | ||
520 | x="1426 1532 1693 1871 2031 2209 2472 2649 2721 2899 2988 3166 3344 3416 3593 3699" | ||
521 | y="11302" | ||
522 | id="tspan1167">rs_complete_io()</tspan> | ||
523 | </text> | ||
524 | <text | ||
525 | id="text1181" | ||
526 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
527 | <tspan | ||
528 | x="1526 1632 1793 1971 2131 2309 2572 2749 2821 2999 3088 3266 3444 3516 3693 3799" | ||
529 | y="18931" | ||
530 | id="tspan1183">rs_complete_io()</tspan> | ||
531 | </text> | ||
532 | <text | ||
533 | id="text1197" | ||
534 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
535 | <tspan | ||
536 | x="1526 1632 1793 1971 2131 2309 2572 2749 2821 2999 3088 3266 3444 3516 3693 3799" | ||
537 | y="27231" | ||
538 | id="tspan1199">rs_complete_io()</tspan> | ||
539 | </text> | ||
540 | <text | ||
541 | id="text1213" | ||
542 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
543 | <tspan | ||
544 | x="16126 16232 16393 16571 16748 16926 17104 17176 17354 17531 17603 17781 17887" | ||
545 | y="7402" | ||
546 | id="tspan1215">rs_begin_io()</tspan> | ||
547 | </text> | ||
548 | <text | ||
549 | id="text1229" | ||
550 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
551 | <tspan | ||
552 | x="16127 16233 16394 16572 16749 16927 17105 17177 17355 17532 17604 17782 17888" | ||
553 | y="16331" | ||
554 | id="tspan1231">rs_begin_io()</tspan> | ||
555 | </text> | ||
556 | <text | ||
557 | id="text1245" | ||
558 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
559 | <tspan | ||
560 | x="16127 16233 16394 16572 16749 16927 17105 17177 17355 17532 17604 17782 17888" | ||
561 | y="23302" | ||
562 | id="tspan1247">rs_begin_io()</tspan> | ||
563 | </text> | ||
564 | <text | ||
565 | id="text1261" | ||
566 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
567 | <tspan | ||
568 | x="16115 16221 16382 16560 16720 16898 17161 17338 17410 17588 17677 17855 18033 18105 18282 18388" | ||
569 | y="9302" | ||
570 | id="tspan1263">rs_complete_io()</tspan> | ||
571 | </text> | ||
572 | <text | ||
573 | id="text1277" | ||
574 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
575 | <tspan | ||
576 | x="16115 16221 16382 16560 16720 16898 17161 17338 17410 17588 17677 17855 18033 18105 18282 18388" | ||
577 | y="18331" | ||
578 | id="tspan1279">rs_complete_io()</tspan> | ||
579 | </text> | ||
580 | <text | ||
581 | id="text1293" | ||
582 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
583 | <tspan | ||
584 | x="16126 16232 16393 16571 16731 16909 17172 17349 17421 17599 17688 17866 18044 18116 18293 18399" | ||
585 | y="25302" | ||
586 | id="tspan1295">rs_complete_io()</tspan> | ||
587 | </text> | ||
588 | </svg> | ||
diff --git a/Documentation/blockdev/drbd/DRBD-data-packets.svg b/Documentation/blockdev/drbd/DRBD-data-packets.svg new file mode 100644 index 000000000000..48a1e2165fec --- /dev/null +++ b/Documentation/blockdev/drbd/DRBD-data-packets.svg | |||
@@ -0,0 +1,459 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <!-- Created with Inkscape (http://www.inkscape.org/) --> | ||
3 | <svg | ||
4 | xmlns:svg="http://www.w3.org/2000/svg" | ||
5 | xmlns="http://www.w3.org/2000/svg" | ||
6 | version="1.0" | ||
7 | width="210mm" | ||
8 | height="297mm" | ||
9 | viewBox="0 0 21000 29700" | ||
10 | id="svg2" | ||
11 | style="fill-rule:evenodd"> | ||
12 | <defs | ||
13 | id="defs4" /> | ||
14 | <g | ||
15 | id="Default" | ||
16 | style="visibility:visible"> | ||
17 | <desc | ||
18 | id="desc176">Master slide</desc> | ||
19 | </g> | ||
20 | <path | ||
21 | d="M 11999,19601 L 11899,19301 L 12099,19301 L 11999,19601 z" | ||
22 | id="path189" | ||
23 | style="fill:#008000;visibility:visible" /> | ||
24 | <path | ||
25 | d="M 11999,18801 L 11999,19361" | ||
26 | id="path193" | ||
27 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
28 | <path | ||
29 | d="M 7999,21401 L 7899,21101 L 8099,21101 L 7999,21401 z" | ||
30 | id="path205" | ||
31 | style="fill:#008000;visibility:visible" /> | ||
32 | <path | ||
33 | d="M 7999,20601 L 7999,21161" | ||
34 | id="path209" | ||
35 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
36 | <path | ||
37 | d="M 11999,18801 L 11685,18840 L 11724,18644 L 11999,18801 z" | ||
38 | id="path221" | ||
39 | style="fill:#008000;visibility:visible" /> | ||
40 | <path | ||
41 | d="M 7999,18001 L 11764,18754" | ||
42 | id="path225" | ||
43 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
44 | <text | ||
45 | x="-3023.845" | ||
46 | y="1106.8124" | ||
47 | transform="matrix(0.9895258,-0.1443562,0.1443562,0.9895258,0,0)" | ||
48 | id="text243" | ||
49 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
50 | <tspan | ||
51 | x="6115.1553 6344.1553 6555.1553 6784.1553 6962.1553 7051.1553 7228.1553 7457.1553 7635.1553 7813.1553 7885.1553" | ||
52 | y="21390.812" | ||
53 | id="tspan245">RSDataReply</tspan> | ||
54 | </text> | ||
55 | <path | ||
56 | d="M 7999,20601 L 8281,20458 L 8311,20655 L 7999,20601 z" | ||
57 | id="path255" | ||
58 | style="fill:#008000;visibility:visible" /> | ||
59 | <path | ||
60 | d="M 11999,20001 L 8236,20565" | ||
61 | id="path259" | ||
62 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
63 | <text | ||
64 | x="3502.5356" | ||
65 | y="-2184.6621" | ||
66 | transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,0,0)" | ||
67 | id="text277" | ||
68 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
69 | <tspan | ||
70 | x="12321.536 12550.536 12761.536 12990.536 13168.536 13257.536 13434.536 13663.536 13841.536 14019.536 14196.536 14374.536 14535.536" | ||
71 | y="15854.338" | ||
72 | id="tspan279">RSDataRequest</tspan> | ||
73 | </text> | ||
74 | <text | ||
75 | id="text293" | ||
76 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
77 | <tspan | ||
78 | x="4034 4263 4440 4703 4881 5042 5219 5397 5503 5681 5842 6003 6180 6341 6519 6625 6803 6980 7158 7336 7497 7586 7692" | ||
79 | y="17807" | ||
80 | id="tspan295">w_make_resync_request()</tspan> | ||
81 | </text> | ||
82 | <text | ||
83 | id="text309" | ||
84 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
85 | <tspan | ||
86 | x="12199 12305 12483 12644 12821 12893 13054 13232 13410 13638 13816 13905 14083 14311 14489 14667 14845 15023 15184 15272 15378" | ||
87 | y="18806" | ||
88 | id="tspan311">receive_DataRequest()</tspan> | ||
89 | </text> | ||
90 | <text | ||
91 | id="text325" | ||
92 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
93 | <tspan | ||
94 | x="12199 12377 12483 12660 12838 13016 13194 13372 13549 13621 13799 13977 14083 14261 14438 14616 14794 14955 15133 15294 15399" | ||
95 | y="19606" | ||
96 | id="tspan327">drbd_endio_read_sec()</tspan> | ||
97 | </text> | ||
98 | <text | ||
99 | id="text341" | ||
100 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
101 | <tspan | ||
102 | x="12191 12420 12597 12775 12953 13131 13309 13486 13664 13770 13931 14109 14287 14375 14553 14731 14837 15015 15192 15298" | ||
103 | y="20007" | ||
104 | id="tspan343">w_e_end_rsdata_req()</tspan> | ||
105 | </text> | ||
106 | <text | ||
107 | id="text357" | ||
108 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
109 | <tspan | ||
110 | x="4444 4550 4728 4889 5066 5138 5299 5477 5655 5883 6095 6324 6501 6590 6768 6997 7175 7352 7424 7585 7691" | ||
111 | y="20507" | ||
112 | id="tspan359">receive_RSDataReply()</tspan> | ||
113 | </text> | ||
114 | <text | ||
115 | id="text373" | ||
116 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
117 | <tspan | ||
118 | x="4457 4635 4741 4918 5096 5274 5452 5630 5807 5879 6057 6235 6464 6569 6641 6730 6908 7086 7247 7425 7585 7691" | ||
119 | y="21407" | ||
120 | id="tspan375">drbd_endio_write_sec()</tspan> | ||
121 | </text> | ||
122 | <text | ||
123 | id="text389" | ||
124 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
125 | <tspan | ||
126 | x="4647 4825 5003 5180 5358 5536 5714 5820 5997 6158 6319 6497 6658 6836 7013 7085 7263 7424 7585 7691" | ||
127 | y="21907" | ||
128 | id="tspan391">e_end_resync_block()</tspan> | ||
129 | </text> | ||
130 | <path | ||
131 | d="M 11999,22601 L 11685,22640 L 11724,22444 L 11999,22601 z" | ||
132 | id="path401" | ||
133 | style="fill:#000080;visibility:visible" /> | ||
134 | <path | ||
135 | d="M 7999,21801 L 11764,22554" | ||
136 | id="path405" | ||
137 | style="fill:none;stroke:#000080;visibility:visible" /> | ||
138 | <text | ||
139 | x="4290.3008" | ||
140 | y="-2369.6162" | ||
141 | transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,0,0)" | ||
142 | id="text423" | ||
143 | style="font-size:318px;font-weight:400;fill:#000080;visibility:visible;font-family:Helvetica embedded"> | ||
144 | <tspan | ||
145 | x="13610.301 13911.301 14016.301 14088.301 14177.301 14355.301 14567.301 14728.301" | ||
146 | y="19573.385" | ||
147 | id="tspan425">WriteAck</tspan> | ||
148 | </text> | ||
149 | <text | ||
150 | id="text439" | ||
151 | style="font-size:318px;font-weight:400;fill:#000080;visibility:visible;font-family:Helvetica embedded"> | ||
152 | <tspan | ||
153 | x="12199 12377 12555 12644 12821 13033 13105 13283 13444 13604 13816 13977 14138 14244" | ||
154 | y="22559" | ||
155 | id="tspan441">got_BlockAck()</tspan> | ||
156 | </text> | ||
157 | <text | ||
158 | id="text455" | ||
159 | style="font-size:423px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
160 | <tspan | ||
161 | x="7999 8304 8541 8753 8964 9201 9413 9531 9769 9862 10099 10310 10522 10734 10852 10971 11208 11348 11585 11822" | ||
162 | y="16877" | ||
163 | id="tspan457">Resync blocks, 4-32K</tspan> | ||
164 | </text> | ||
165 | <path | ||
166 | d="M 12000,7601 L 11900,7301 L 12100,7301 L 12000,7601 z" | ||
167 | id="path467" | ||
168 | style="fill:#008000;visibility:visible" /> | ||
169 | <path | ||
170 | d="M 12000,6801 L 12000,7361" | ||
171 | id="path471" | ||
172 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
173 | <path | ||
174 | d="M 12000,6801 L 11686,6840 L 11725,6644 L 12000,6801 z" | ||
175 | id="path483" | ||
176 | style="fill:#008000;visibility:visible" /> | ||
177 | <path | ||
178 | d="M 8000,6001 L 11765,6754" | ||
179 | id="path487" | ||
180 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
181 | <text | ||
182 | x="-1288.1796" | ||
183 | y="1279.7666" | ||
184 | transform="matrix(0.9895258,-0.1443562,0.1443562,0.9895258,0,0)" | ||
185 | id="text505" | ||
186 | style="font-size:318px;font-weight:400;fill:#000080;visibility:visible;font-family:Helvetica embedded"> | ||
187 | <tspan | ||
188 | x="8174.8208 8475.8203 8580.8203 8652.8203 8741.8203 8919.8203 9131.8203 9292.8203" | ||
189 | y="9516.7666" | ||
190 | id="tspan507">WriteAck</tspan> | ||
191 | </text> | ||
192 | <path | ||
193 | d="M 8000,8601 L 8282,8458 L 8312,8655 L 8000,8601 z" | ||
194 | id="path517" | ||
195 | style="fill:#000080;visibility:visible" /> | ||
196 | <path | ||
197 | d="M 12000,8001 L 8237,8565" | ||
198 | id="path521" | ||
199 | style="fill:none;stroke:#000080;visibility:visible" /> | ||
200 | <text | ||
201 | x="1065.6655" | ||
202 | y="-2097.7664" | ||
203 | transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,0,0)" | ||
204 | id="text539" | ||
205 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
206 | <tspan | ||
207 | x="10682.666 10911.666 11088.666 11177.666" | ||
208 | y="4107.2339" | ||
209 | id="tspan541">Data</tspan> | ||
210 | </text> | ||
211 | <text | ||
212 | id="text555" | ||
213 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
214 | <tspan | ||
215 | x="4746 4924 5030 5207 5385 5563 5826 6003 6164 6342 6520 6626 6803 6981 7159 7337 7498 7587 7692" | ||
216 | y="5505" | ||
217 | id="tspan557">drbd_make_request()</tspan> | ||
218 | </text> | ||
219 | <text | ||
220 | id="text571" | ||
221 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
222 | <tspan | ||
223 | x="12200 12306 12484 12645 12822 12894 13055 13233 13411 13639 13817 13906 14084 14190" | ||
224 | y="6806" | ||
225 | id="tspan573">receive_Data()</tspan> | ||
226 | </text> | ||
227 | <text | ||
228 | id="text587" | ||
229 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
230 | <tspan | ||
231 | x="12200 12378 12484 12661 12839 13017 13195 13373 13550 13622 13800 13978 14207 14312 14384 14473 14651 14829 14990 15168 15328 15434" | ||
232 | y="7606" | ||
233 | id="tspan589">drbd_endio_write_sec()</tspan> | ||
234 | </text> | ||
235 | <text | ||
236 | id="text603" | ||
237 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
238 | <tspan | ||
239 | x="12192 12370 12548 12725 12903 13081 13259 13437 13509 13686 13847 14008 14114" | ||
240 | y="8007" | ||
241 | id="tspan605">e_end_block()</tspan> | ||
242 | </text> | ||
243 | <text | ||
244 | id="text619" | ||
245 | style="font-size:318px;font-weight:400;fill:#000080;visibility:visible;font-family:Helvetica embedded"> | ||
246 | <tspan | ||
247 | x="5647 5825 6003 6092 6269 6481 6553 6731 6892 7052 7264 7425 7586 7692" | ||
248 | y="8606" | ||
249 | id="tspan621">got_BlockAck()</tspan> | ||
250 | </text> | ||
251 | <text | ||
252 | id="text635" | ||
253 | style="font-size:423px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
254 | <tspan | ||
255 | x="8000 8305 8542 8779 9016 9109 9346 9486 9604 9956 10049 10189 10328 10565 10705 10942 11179 11298 11603 11742 11835 11954 12191 12310 12428 12665 12902 13139 13279 13516 13753" | ||
256 | y="4877" | ||
257 | id="tspan637">Regular mirrored write, 512-32K</tspan> | ||
258 | </text> | ||
259 | <text | ||
260 | id="text651" | ||
261 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
262 | <tspan | ||
263 | x="5381 5610 5787 5948 6126 6304 6482 6659 6837 7015 7087 7265 7426 7587 7692" | ||
264 | y="6003" | ||
265 | id="tspan653">w_send_dblock()</tspan> | ||
266 | </text> | ||
267 | <path | ||
268 | d="M 8000,6800 L 7900,6500 L 8100,6500 L 8000,6800 z" | ||
269 | id="path663" | ||
270 | style="fill:#008000;visibility:visible" /> | ||
271 | <path | ||
272 | d="M 8000,6000 L 8000,6560" | ||
273 | id="path667" | ||
274 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
275 | <text | ||
276 | id="text683" | ||
277 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
278 | <tspan | ||
279 | x="4602 4780 4886 5063 5241 5419 5597 5775 5952 6024 6202 6380 6609 6714 6786 6875 7053 7231 7409 7515 7587 7692" | ||
280 | y="6905" | ||
281 | id="tspan685">drbd_endio_write_pri()</tspan> | ||
282 | </text> | ||
283 | <path | ||
284 | d="M 12000,13602 L 11900,13302 L 12100,13302 L 12000,13602 z" | ||
285 | id="path695" | ||
286 | style="fill:#008000;visibility:visible" /> | ||
287 | <path | ||
288 | d="M 12000,12802 L 12000,13362" | ||
289 | id="path699" | ||
290 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
291 | <path | ||
292 | d="M 12000,12802 L 11686,12841 L 11725,12645 L 12000,12802 z" | ||
293 | id="path711" | ||
294 | style="fill:#008000;visibility:visible" /> | ||
295 | <path | ||
296 | d="M 8000,12002 L 11765,12755" | ||
297 | id="path715" | ||
298 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
299 | <text | ||
300 | x="-2155.5266" | ||
301 | y="1201.5964" | ||
302 | transform="matrix(0.9895258,-0.1443562,0.1443562,0.9895258,0,0)" | ||
303 | id="text733" | ||
304 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
305 | <tspan | ||
306 | x="7202.4736 7431.4736 7608.4736 7697.4736 7875.4736 8104.4736 8282.4736 8459.4736 8531.4736" | ||
307 | y="15454.597" | ||
308 | id="tspan735">DataReply</tspan> | ||
309 | </text> | ||
310 | <path | ||
311 | d="M 8000,14602 L 8282,14459 L 8312,14656 L 8000,14602 z" | ||
312 | id="path745" | ||
313 | style="fill:#008000;visibility:visible" /> | ||
314 | <path | ||
315 | d="M 12000,14002 L 8237,14566" | ||
316 | id="path749" | ||
317 | style="fill:none;stroke:#008000;visibility:visible" /> | ||
318 | <text | ||
319 | x="2280.3804" | ||
320 | y="-2103.2141" | ||
321 | transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,0,0)" | ||
322 | id="text767" | ||
323 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
324 | <tspan | ||
325 | x="11316.381 11545.381 11722.381 11811.381 11989.381 12218.381 12396.381 12573.381 12751.381 12929.381 13090.381" | ||
326 | y="9981.7861" | ||
327 | id="tspan769">DataRequest</tspan> | ||
328 | </text> | ||
329 | <text | ||
330 | id="text783" | ||
331 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
332 | <tspan | ||
333 | x="4746 4924 5030 5207 5385 5563 5826 6003 6164 6342 6520 6626 6803 6981 7159 7337 7498 7587 7692" | ||
334 | y="11506" | ||
335 | id="tspan785">drbd_make_request()</tspan> | ||
336 | </text> | ||
337 | <text | ||
338 | id="text799" | ||
339 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
340 | <tspan | ||
341 | x="12200 12306 12484 12645 12822 12894 13055 13233 13411 13639 13817 13906 14084 14312 14490 14668 14846 15024 15185 15273 15379" | ||
342 | y="12807" | ||
343 | id="tspan801">receive_DataRequest()</tspan> | ||
344 | </text> | ||
345 | <text | ||
346 | id="text815" | ||
347 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
348 | <tspan | ||
349 | x="12200 12378 12484 12661 12839 13017 13195 13373 13550 13622 13800 13978 14084 14262 14439 14617 14795 14956 15134 15295 15400" | ||
350 | y="13607" | ||
351 | id="tspan817">drbd_endio_read_sec()</tspan> | ||
352 | </text> | ||
353 | <text | ||
354 | id="text831" | ||
355 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
356 | <tspan | ||
357 | x="12192 12421 12598 12776 12954 13132 13310 13487 13665 13843 14021 14110 14288 14465 14571 14749 14927 15033" | ||
358 | y="14008" | ||
359 | id="tspan833">w_e_end_data_req()</tspan> | ||
360 | </text> | ||
361 | <g | ||
362 | id="g835" | ||
363 | style="visibility:visible"> | ||
364 | <desc | ||
365 | id="desc837">Drawing</desc> | ||
366 | <text | ||
367 | id="text847" | ||
368 | style="font-size:318px;font-weight:400;fill:#008000;font-family:Helvetica embedded"> | ||
369 | <tspan | ||
370 | x="4885 4991 5169 5330 5507 5579 5740 5918 6096 6324 6502 6591 6769 6997 7175 7353 7425 7586 7692" | ||
371 | y="14607" | ||
372 | id="tspan849">receive_DataReply()</tspan> | ||
373 | </text> | ||
374 | </g> | ||
375 | <text | ||
376 | id="text863" | ||
377 | style="font-size:423px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
378 | <tspan | ||
379 | x="8000 8305 8398 8610 8821 8914 9151 9363 9575 9693 9833 10070 10307 10544 10663 10781 11018 11255 11493 11632 11869 12106" | ||
380 | y="10878" | ||
381 | id="tspan865">Diskless read, 512-32K</tspan> | ||
382 | </text> | ||
383 | <text | ||
384 | id="text879" | ||
385 | style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embedded"> | ||
386 | <tspan | ||
387 | x="5029 5258 5435 5596 5774 5952 6130 6307 6413 6591 6769 6947 7125 7230 7408 7586 7692" | ||
388 | y="12004" | ||
389 | id="tspan881">w_send_read_req()</tspan> | ||
390 | </text> | ||
391 | <text | ||
392 | id="text895" | ||
393 | style="font-size:423px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
394 | <tspan | ||
395 | x="6961 7266 7571 7854 8159 8278 8515 8633 8870 9107 9226 9463 9581 9700 9793 10030" | ||
396 | y="2806" | ||
397 | id="tspan897">DRBD 8 data flow</tspan> | ||
398 | </text> | ||
399 | <path | ||
400 | d="M 3900,5300 L 3700,5300 L 3700,7000 L 3900,7000" | ||
401 | id="path907" | ||
402 | style="fill:none;stroke:#000000;visibility:visible" /> | ||
403 | <path | ||
404 | d="M 3900,17600 L 3700,17600 L 3700,22000 L 3900,22000" | ||
405 | id="path919" | ||
406 | style="fill:none;stroke:#000000;visibility:visible" /> | ||
407 | <path | ||
408 | d="M 16100,20000 L 16300,20000 L 16300,18500 L 16100,18500" | ||
409 | id="path931" | ||
410 | style="fill:none;stroke:#000000;visibility:visible" /> | ||
411 | <text | ||
412 | id="text947" | ||
413 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
414 | <tspan | ||
415 | x="2126 2304 2376 2554 2731 2909 3087 3159 3337 3515 3587 3764 3870" | ||
416 | y="5202" | ||
417 | id="tspan949">al_begin_io()</tspan> | ||
418 | </text> | ||
419 | <text | ||
420 | id="text963" | ||
421 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
422 | <tspan | ||
423 | x="1632 1810 1882 2060 2220 2398 2661 2839 2910 3088 3177 3355 3533 3605 3783 3888" | ||
424 | y="7331" | ||
425 | id="tspan965">al_complete_io()</tspan> | ||
426 | </text> | ||
427 | <text | ||
428 | id="text979" | ||
429 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
430 | <tspan | ||
431 | x="2126 2232 2393 2571 2748 2926 3104 3176 3354 3531 3603 3781 3887" | ||
432 | y="17431" | ||
433 | id="tspan981">rs_begin_io()</tspan> | ||
434 | </text> | ||
435 | <text | ||
436 | id="text995" | ||
437 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
438 | <tspan | ||
439 | x="1626 1732 1893 2071 2231 2409 2672 2849 2921 3099 3188 3366 3544 3616 3793 3899" | ||
440 | y="22331" | ||
441 | id="tspan997">rs_complete_io()</tspan> | ||
442 | </text> | ||
443 | <text | ||
444 | id="text1011" | ||
445 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
446 | <tspan | ||
447 | x="16027 16133 16294 16472 16649 16827 17005 17077 17255 17432 17504 17682 17788" | ||
448 | y="18402" | ||
449 | id="tspan1013">rs_begin_io()</tspan> | ||
450 | </text> | ||
451 | <text | ||
452 | id="text1027" | ||
453 | style="font-size:318px;font-weight:400;fill:#000000;visibility:visible;font-family:Helvetica embedded"> | ||
454 | <tspan | ||
455 | x="16115 16221 16382 16560 16720 16898 17161 17338 17410 17588 17677 17855 18033 18105 18282 18388" | ||
456 | y="20331" | ||
457 | id="tspan1029">rs_complete_io()</tspan> | ||
458 | </text> | ||
459 | </svg> | ||
diff --git a/Documentation/blockdev/drbd/README.txt b/Documentation/blockdev/drbd/README.txt new file mode 100644 index 000000000000..627b0a1bf35e --- /dev/null +++ b/Documentation/blockdev/drbd/README.txt | |||
@@ -0,0 +1,16 @@ | |||
1 | Description | ||
2 | |||
3 | DRBD is a shared-nothing, synchronously replicated block device. It | ||
4 | is designed to serve as a building block for high availability | ||
5 | clusters and in this context, is a "drop-in" replacement for shared | ||
6 | storage. Simplistically, you could see it as a network RAID 1. | ||
7 | |||
8 | Please visit http://www.drbd.org to find out more. | ||
9 | |||
10 | The here included files are intended to help understand the implementation | ||
11 | |||
12 | DRBD-8.3-data-packets.svg, DRBD-data-packets.svg | ||
13 | relates some functions, and write packets. | ||
14 | |||
15 | conn-states-8.dot, disk-states-8.dot, node-states-8.dot | ||
16 | The sub graphs of DRBD's state transitions | ||
diff --git a/Documentation/blockdev/drbd/conn-states-8.dot b/Documentation/blockdev/drbd/conn-states-8.dot new file mode 100644 index 000000000000..025e8cf5e64a --- /dev/null +++ b/Documentation/blockdev/drbd/conn-states-8.dot | |||
@@ -0,0 +1,18 @@ | |||
1 | digraph conn_states { | ||
2 | StandAllone -> WFConnection [ label = "ioctl_set_net()" ] | ||
3 | WFConnection -> Unconnected [ label = "unable to bind()" ] | ||
4 | WFConnection -> WFReportParams [ label = "in connect() after accept" ] | ||
5 | WFReportParams -> StandAllone [ label = "checks in receive_param()" ] | ||
6 | WFReportParams -> Connected [ label = "in receive_param()" ] | ||
7 | WFReportParams -> WFBitMapS [ label = "sync_handshake()" ] | ||
8 | WFReportParams -> WFBitMapT [ label = "sync_handshake()" ] | ||
9 | WFBitMapS -> SyncSource [ label = "receive_bitmap()" ] | ||
10 | WFBitMapT -> SyncTarget [ label = "receive_bitmap()" ] | ||
11 | SyncSource -> Connected | ||
12 | SyncTarget -> Connected | ||
13 | SyncSource -> PausedSyncS | ||
14 | SyncTarget -> PausedSyncT | ||
15 | PausedSyncS -> SyncSource | ||
16 | PausedSyncT -> SyncTarget | ||
17 | Connected -> WFConnection [ label = "* on network error" ] | ||
18 | } | ||
diff --git a/Documentation/blockdev/drbd/disk-states-8.dot b/Documentation/blockdev/drbd/disk-states-8.dot new file mode 100644 index 000000000000..d06cfb46fb98 --- /dev/null +++ b/Documentation/blockdev/drbd/disk-states-8.dot | |||
@@ -0,0 +1,16 @@ | |||
1 | digraph disk_states { | ||
2 | Diskless -> Inconsistent [ label = "ioctl_set_disk()" ] | ||
3 | Diskless -> Consistent [ label = "ioctl_set_disk()" ] | ||
4 | Diskless -> Outdated [ label = "ioctl_set_disk()" ] | ||
5 | Consistent -> Outdated [ label = "receive_param()" ] | ||
6 | Consistent -> UpToDate [ label = "receive_param()" ] | ||
7 | Consistent -> Inconsistent [ label = "start resync" ] | ||
8 | Outdated -> Inconsistent [ label = "start resync" ] | ||
9 | UpToDate -> Inconsistent [ label = "ioctl_replicate" ] | ||
10 | Inconsistent -> UpToDate [ label = "resync completed" ] | ||
11 | Consistent -> Failed [ label = "io completion error" ] | ||
12 | Outdated -> Failed [ label = "io completion error" ] | ||
13 | UpToDate -> Failed [ label = "io completion error" ] | ||
14 | Inconsistent -> Failed [ label = "io completion error" ] | ||
15 | Failed -> Diskless [ label = "sending notify to peer" ] | ||
16 | } | ||
diff --git a/Documentation/blockdev/drbd/drbd-connection-state-overview.dot b/Documentation/blockdev/drbd/drbd-connection-state-overview.dot new file mode 100644 index 000000000000..6d9cf0a7b11d --- /dev/null +++ b/Documentation/blockdev/drbd/drbd-connection-state-overview.dot | |||
@@ -0,0 +1,85 @@ | |||
1 | // vim: set sw=2 sts=2 : | ||
2 | digraph { | ||
3 | rankdir=BT | ||
4 | bgcolor=white | ||
5 | |||
6 | node [shape=plaintext] | ||
7 | node [fontcolor=black] | ||
8 | |||
9 | StandAlone [ style=filled,fillcolor=gray,label=StandAlone ] | ||
10 | |||
11 | node [fontcolor=lightgray] | ||
12 | |||
13 | Unconnected [ label=Unconnected ] | ||
14 | |||
15 | CommTrouble [ shape=record, | ||
16 | label="{communication loss|{Timeout|BrokenPipe|NetworkFailure}}" ] | ||
17 | |||
18 | node [fontcolor=gray] | ||
19 | |||
20 | subgraph cluster_try_connect { | ||
21 | label="try to connect, handshake" | ||
22 | rank=max | ||
23 | WFConnection [ label=WFConnection ] | ||
24 | WFReportParams [ label=WFReportParams ] | ||
25 | } | ||
26 | |||
27 | TearDown [ label=TearDown ] | ||
28 | |||
29 | Connected [ label=Connected,style=filled,fillcolor=green,fontcolor=black ] | ||
30 | |||
31 | node [fontcolor=lightblue] | ||
32 | |||
33 | StartingSyncS [ label=StartingSyncS ] | ||
34 | StartingSyncT [ label=StartingSyncT ] | ||
35 | |||
36 | subgraph cluster_bitmap_exchange { | ||
37 | node [fontcolor=red] | ||
38 | fontcolor=red | ||
39 | label="new application (WRITE?) requests blocked\lwhile bitmap is exchanged" | ||
40 | |||
41 | WFBitMapT [ label=WFBitMapT ] | ||
42 | WFSyncUUID [ label=WFSyncUUID ] | ||
43 | WFBitMapS [ label=WFBitMapS ] | ||
44 | } | ||
45 | |||
46 | node [fontcolor=blue] | ||
47 | |||
48 | cluster_resync [ shape=record,label="{<any>resynchronisation process running\l'concurrent' application requests allowed|{{<T>PausedSyncT\nSyncTarget}|{<S>PausedSyncS\nSyncSource}}}" ] | ||
49 | |||
50 | node [shape=box,fontcolor=black] | ||
51 | |||
52 | // drbdadm [label="drbdadm connect"] | ||
53 | // handshake [label="drbd_connect()\ndrbd_do_handshake\ndrbd_sync_handshake() etc."] | ||
54 | // comm_error [label="communication trouble"] | ||
55 | |||
56 | // | ||
57 | // edges | ||
58 | // -------------------------------------- | ||
59 | |||
60 | StandAlone -> Unconnected [ label="drbdadm connect" ] | ||
61 | Unconnected -> StandAlone [ label="drbdadm disconnect\lor serious communication trouble" ] | ||
62 | Unconnected -> WFConnection [ label="receiver thread is started" ] | ||
63 | WFConnection -> WFReportParams [ headlabel="accept()\land/or \lconnect()\l" ] | ||
64 | |||
65 | WFReportParams -> StandAlone [ label="during handshake\lpeers do not agree\labout something essential" ] | ||
66 | WFReportParams -> Connected [ label="data identical\lno sync needed",color=green,fontcolor=green ] | ||
67 | |||
68 | WFReportParams -> WFBitMapS | ||
69 | WFReportParams -> WFBitMapT | ||
70 | WFBitMapT -> WFSyncUUID [minlen=0.1,constraint=false] | ||
71 | |||
72 | WFBitMapS -> cluster_resync:S | ||
73 | WFSyncUUID -> cluster_resync:T | ||
74 | |||
75 | edge [color=green] | ||
76 | cluster_resync:any -> Connected [ label="resnyc done",fontcolor=green ] | ||
77 | |||
78 | edge [color=red] | ||
79 | WFReportParams -> CommTrouble | ||
80 | Connected -> CommTrouble | ||
81 | cluster_resync:any -> CommTrouble | ||
82 | edge [color=black] | ||
83 | CommTrouble -> Unconnected [label="receiver thread is stopped" ] | ||
84 | |||
85 | } | ||
diff --git a/Documentation/blockdev/drbd/node-states-8.dot b/Documentation/blockdev/drbd/node-states-8.dot new file mode 100644 index 000000000000..4a2b00c23547 --- /dev/null +++ b/Documentation/blockdev/drbd/node-states-8.dot | |||
@@ -0,0 +1,14 @@ | |||
1 | digraph node_states { | ||
2 | Secondary -> Primary [ label = "ioctl_set_state()" ] | ||
3 | Primary -> Secondary [ label = "ioctl_set_state()" ] | ||
4 | } | ||
5 | |||
6 | digraph peer_states { | ||
7 | Secondary -> Primary [ label = "recv state packet" ] | ||
8 | Primary -> Secondary [ label = "recv state packet" ] | ||
9 | Primary -> Unknown [ label = "connection lost" ] | ||
10 | Secondary -> Unknown [ label = "connection lost" ] | ||
11 | Unknown -> Primary [ label = "connected" ] | ||
12 | Unknown -> Secondary [ label = "connected" ] | ||
13 | } | ||
14 | |||