]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/crushtool/reclassify.t
import quincy beta 17.1.0
[ceph.git] / ceph / src / test / cli / crushtool / reclassify.t
CommitLineData
f64942e4
AA
1 $ crushtool -i $TESTDIR/crush-classes/a --set-subtree-class default hdd --reclassify --reclassify-bucket %-ssd ssd default --reclassify-bucket ssd ssd default --reclassify-root default hdd -o foo
2 classify_root default (-1) as hdd
f64942e4
AA
3 renumbering bucket -1 -> -5
4 renumbering bucket -4 -> -6
5 renumbering bucket -3 -> -7
6 renumbering bucket -2 -> -8
7 classify_bucket %-ssd as ssd default bucket default (root)
f64942e4
AA
8 match %-ssd to ttipod001-cephosd-2-ssd basename ttipod001-cephosd-2
9 have base -8
10 match %-ssd to ttipod001-cephosd-1-ssd basename ttipod001-cephosd-1
11 have base -7
12 match %-ssd to ttipod001-cephosd-3-ssd basename ttipod001-cephosd-3
13 have base -6
14 classify_bucket ssd as ssd default bucket default (root)
f64942e4
AA
15 match ssd to ssd basename default
16 have base -5
17 moving items from -24 (ttipod001-cephosd-3-ssd) to -6 (ttipod001-cephosd-3)
18 moving items from -23 (ttipod001-cephosd-1-ssd) to -7 (ttipod001-cephosd-1)
19 moving items from -22 (ttipod001-cephosd-2-ssd) to -8 (ttipod001-cephosd-2)
20 moving items from -21 (ssd) to -5 (default)
20effc67 21 $ crushtool -i $TESTDIR/crush-classes/a --compare foo --min-rep 1 --max-rep 10
f64942e4
AA
22 rule 0 had 0/10240 mismatched mappings (0)
23 rule 1 had 0/10240 mismatched mappings (0)
24 maps appear equivalent
25
26 $ crushtool -i $TESTDIR/crush-classes/d --set-subtree-class default hdd --reclassify --reclassify-bucket %-ssd ssd default --reclassify-bucket ssd ssd default --reclassify-root default hdd -o foo
27 classify_root default (-1) as hdd
f64942e4
AA
28 renumbering bucket -1 -> -13
29 renumbering bucket -6 -> -14
30 renumbering bucket -5 -> -15
31 renumbering bucket -4 -> -16
32 renumbering bucket -3 -> -17
33 renumbering bucket -2 -> -18
34 classify_bucket %-ssd as ssd default bucket default (root)
f64942e4
AA
35 match %-ssd to node-20-ssd basename node-20
36 have base -18
37 match %-ssd to node-21-ssd basename node-21
38 created base -25
39 match %-ssd to node-22-ssd basename node-22
40 created base -26
41 match %-ssd to node-23-ssd basename node-23
42 created base -27
43 match %-ssd to node-27-ssd basename node-27
44 created base -28
45 classify_bucket ssd as ssd default bucket default (root)
f64942e4
AA
46 match ssd to ssd basename default
47 have base -13
48 moving items from -12 (node-27-ssd) to -28 (node-27)
49 moving items from -11 (node-23-ssd) to -27 (node-23)
50 moving items from -10 (node-22-ssd) to -26 (node-22)
51 moving items from -9 (node-21-ssd) to -25 (node-21)
52 moving items from -8 (node-20-ssd) to -18 (node-20)
53 moving items from -7 (ssd) to -13 (default)
20effc67 54 $ crushtool -i $TESTDIR/crush-classes/d --compare foo --min-rep 1 --max-rep 10
f64942e4
AA
55 rule 0 had 0/10240 mismatched mappings (0)
56 rule 1 had 0/10240 mismatched mappings (0)
57 maps appear equivalent
58
59 $ crushtool -i $TESTDIR/crush-classes/e --reclassify --reclassify-bucket ceph-osd-ssd-% ssd default --reclassify-bucket ssd-root ssd default --reclassify-root default hdd -o foo
60 classify_root default (-1) as hdd
f64942e4
AA
61 renumbering bucket -1 -> -55
62 renumbering bucket -34 -> -56
63 renumbering bucket -20 -> -57
64 renumbering bucket -14 -> -58
65 renumbering bucket -15 -> -59
66 renumbering bucket -16 -> -60
67 renumbering bucket -52 -> -61
68 renumbering bucket -46 -> -62
69 renumbering bucket -40 -> -63
70 classify_bucket ceph-osd-ssd-% as ssd default bucket default (root)
f64942e4
AA
71 match ceph-osd-ssd-% to ceph-osd-ssd-node4 basename node4
72 have base -57
73 match ceph-osd-ssd-% to ceph-osd-ssd-node3 basename node3
74 have base -58
75 match ceph-osd-ssd-% to ceph-osd-ssd-node1 basename node1
76 have base -60
77 match ceph-osd-ssd-% to ceph-osd-ssd-node2 basename node2
78 have base -59
79 match ceph-osd-ssd-% to ceph-osd-ssd-node5 basename node5
80 have base -56
81 match ceph-osd-ssd-% to ceph-osd-ssd-node6 basename node6
82 have base -63
83 match ceph-osd-ssd-% to ceph-osd-ssd-node7 basename node7
84 have base -62
85 match ceph-osd-ssd-% to ceph-osd-ssd-node8 basename node8
86 have base -61
87 classify_bucket ssd-root as ssd default bucket default (root)
f64942e4
AA
88 match ssd-root to ssd-root basename default
89 have base -55
90 moving items from -49 (ceph-osd-ssd-node8) to -61 (node8)
91 moving items from -43 (ceph-osd-ssd-node7) to -62 (node7)
92 moving items from -37 (ceph-osd-ssd-node6) to -63 (node6)
93 moving items from -31 (ceph-osd-ssd-node5) to -56 (node5)
94 moving items from -18 (ssd-root) to -55 (default)
95 moving items from -9 (ceph-osd-ssd-node2) to -59 (node2)
96 moving items from -7 (ceph-osd-ssd-node1) to -60 (node1)
97 moving items from -5 (ceph-osd-ssd-node3) to -58 (node3)
98 moving items from -3 (ceph-osd-ssd-node4) to -57 (node4)
99
100this one has weird node weights, so *lots* of mappings change...
101
20effc67 102 $ crushtool -i $TESTDIR/crush-classes/e --compare foo --min-rep 1 --max-rep 10
f64942e4
AA
103 rule 0 had 6540/10240 mismatched mappings (0.638672)
104 rule 1 had 8417/10240 mismatched mappings (0.821973)
105 warning: maps are NOT equivalent
106 [1]
107
108 $ crushtool -i $TESTDIR/crush-classes/c --reclassify --reclassify-bucket %-SSD ssd default --reclassify-bucket ssd ssd default --reclassify-root default hdd -o foo
109 classify_root default (-1) as hdd
f64942e4
AA
110 renumbering bucket -1 -> -55
111 renumbering bucket -9 -> -56
112 renumbering bucket -8 -> -57
113 renumbering bucket -7 -> -58
114 renumbering bucket -6 -> -59
115 renumbering bucket -5 -> -60
116 renumbering bucket -4 -> -61
117 renumbering bucket -3 -> -62
118 renumbering bucket -2 -> -63
119 classify_bucket %-SSD as ssd default bucket default (root)
f64942e4
AA
120 match %-SSD to Ceph-Stor1-SSD basename Ceph-Stor1
121 have base -63
122 match %-SSD to Ceph-Stor2-SSD basename Ceph-Stor2
123 have base -62
124 match %-SSD to Ceph-Stor3-SSD basename Ceph-Stor3
125 have base -61
126 match %-SSD to Ceph-Stor4-SSD basename Ceph-Stor4
127 have base -60
128 match %-SSD to Ceph-Stor5-SSD basename Ceph-Stor5
129 have base -59
130 match %-SSD to Ceph-Stor6-SSD basename Ceph-Stor6
131 have base -58
132 match %-SSD to Ceph-Stor7-SSD basename Ceph-Stor7
133 have base -57
134 match %-SSD to Ceph-Stor8-SSD basename Ceph-Stor8
135 have base -56
136 classify_bucket ssd as ssd default bucket default (root)
f64942e4
AA
137 match ssd to ssd basename default
138 have base -55
139 moving items from -18 (ssd) to -55 (default)
140 moving items from -17 (Ceph-Stor8-SSD) to -56 (Ceph-Stor8)
141 moving items from -16 (Ceph-Stor7-SSD) to -57 (Ceph-Stor7)
142 moving items from -15 (Ceph-Stor6-SSD) to -58 (Ceph-Stor6)
143 moving items from -14 (Ceph-Stor5-SSD) to -59 (Ceph-Stor5)
144 moving items from -13 (Ceph-Stor4-SSD) to -60 (Ceph-Stor4)
145 moving items from -12 (Ceph-Stor3-SSD) to -61 (Ceph-Stor3)
146 moving items from -11 (Ceph-Stor2-SSD) to -62 (Ceph-Stor2)
147 moving items from -10 (Ceph-Stor1-SSD) to -63 (Ceph-Stor1)
148
149wonky crush weights on Ceph-Stor1, so a small number of mappings change
150because the new map has a strictly summing hierarchy.
151
20effc67 152 $ crushtool -i $TESTDIR/crush-classes/c --compare foo --min-rep 1 --max-rep 10
f64942e4 153 rule 0 had 158/10240 mismatched mappings (0.0154297)
20effc67 154 rule 1 had 138/10240 mismatched mappings (0.0134766)
f64942e4
AA
155 rule 2 had 0/10240 mismatched mappings (0)
156 warning: maps are NOT equivalent
157 [1]
158
159 $ crushtool -i $TESTDIR/crush-classes/beesly --set-subtree-class 0513-R-0060 hdd --set-subtree-class 0513-R-0050 hdd --reclassify --reclassify-root 0513-R-0050 hdd --reclassify-root 0513-R-0060 hdd -o foo
160 classify_root 0513-R-0050 (-2) as hdd
f64942e4
AA
161 renumbering bucket -2 -> -131
162 renumbering bucket -14 -> -132
163 renumbering bucket -34 -> -133
164 renumbering bucket -33 -> -134
165 renumbering bucket -30 -> -135
166 renumbering bucket -26 -> -136
167 renumbering bucket -22 -> -137
168 renumbering bucket -18 -> -138
169 renumbering bucket -13 -> -139
170 renumbering bucket -9 -> -140
171 renumbering bucket -12 -> -141
172 renumbering bucket -11 -> -142
173 renumbering bucket -32 -> -143
174 renumbering bucket -31 -> -144
175 renumbering bucket -10 -> -145
176 renumbering bucket -8 -> -146
177 renumbering bucket -6 -> -147
178 renumbering bucket -28 -> -148
179 renumbering bucket -27 -> -149
180 renumbering bucket -21 -> -150
181 renumbering bucket -20 -> -151
182 renumbering bucket -19 -> -152
183 renumbering bucket -7 -> -153
184 renumbering bucket -5 -> -154
185 renumbering bucket -4 -> -155
186 renumbering bucket -25 -> -156
187 renumbering bucket -24 -> -157
188 renumbering bucket -23 -> -158
189 renumbering bucket -17 -> -159
190 renumbering bucket -16 -> -160
191 renumbering bucket -15 -> -161
192 renumbering bucket -3 -> -162
193 renumbering bucket -72 -> -163
194 renumbering bucket -98 -> -164
195 renumbering bucket -97 -> -165
196 renumbering bucket -96 -> -166
197 renumbering bucket -95 -> -167
198 renumbering bucket -94 -> -168
199 renumbering bucket -93 -> -169
200 renumbering bucket -68 -> -170
201 classify_root 0513-R-0060 (-65) as hdd
f64942e4
AA
202 renumbering bucket -65 -> -35
203 renumbering bucket -76 -> -36
204 renumbering bucket -78 -> -37
205 renumbering bucket -87 -> -38
206 renumbering bucket -82 -> -39
207 renumbering bucket -81 -> -40
208 renumbering bucket -77 -> -41
209 renumbering bucket -75 -> -42
210 renumbering bucket -89 -> -43
211 renumbering bucket -85 -> -44
212 renumbering bucket -84 -> -45
213 renumbering bucket -74 -> -46
214 renumbering bucket -71 -> -47
215 renumbering bucket -80 -> -48
216 renumbering bucket -91 -> -49
217 renumbering bucket -90 -> -50
218 renumbering bucket -88 -> -51
219 renumbering bucket -79 -> -52
220 renumbering bucket -70 -> -53
221 renumbering bucket -86 -> -54
222 renumbering bucket -83 -> -55
223 renumbering bucket -73 -> -56
224 renumbering bucket -69 -> -57
20effc67 225 $ crushtool -i $TESTDIR/crush-classes/beesly --compare foo --min-rep 1 --max-rep 10
f64942e4
AA
226 rule 0 had 0/10240 mismatched mappings (0)
227 rule 1 had 0/10240 mismatched mappings (0)
228 rule 2 had 0/10240 mismatched mappings (0)
229 rule 4 had 0/10240 mismatched mappings (0)
230 maps appear equivalent
231
232 $ crushtool -i $TESTDIR/crush-classes/flax --reclassify --reclassify-root default hdd -o foo
233 classify_root default (-1) as hdd
f64942e4
AA
234 renumbering bucket -1 -> -5
235 renumbering bucket -12 -> -7
236 renumbering bucket -9 -> -8
237 renumbering bucket -6 -> -10
238 renumbering bucket -4 -> -11
239 renumbering bucket -3 -> -13
240 renumbering bucket -2 -> -14
20effc67 241 $ crushtool -i $TESTDIR/crush-classes/flax --compare foo --min-rep 1 --max-rep 10
f64942e4
AA
242 rule 0 had 0/10240 mismatched mappings (0)
243 maps appear equivalent
244
245 $ crushtool -i $TESTDIR/crush-classes/gabe --reclassify --reclassify-root default hdd -o foo
246 classify_root default (-1) as hdd
f64942e4
AA
247 rule 3 includes take on root default class 0
248 failed to reclassify map
249 [1]
250
251above fails because of ec-rack-by-2-hdd also has take default class hdd.
252
253below is an adjusted version of the same cluster's map
254
255 $ crushtool -i $TESTDIR/crush-classes/gabe2 --reclassify --reclassify-root default hdd -o foo
256 classify_root default (-1) as hdd
f64942e4
AA
257 renumbering bucket -1 -> -178
258 renumbering bucket -4 -> -179
259 renumbering bucket -25 -> -180
260 renumbering bucket -16 -> -181
261 renumbering bucket -21 -> -182
262 renumbering bucket -19 -> -183
263 renumbering bucket -15 -> -184
264 renumbering bucket -7 -> -185
265 renumbering bucket -47 -> -186
266 renumbering bucket -18 -> -187
267 renumbering bucket -8 -> -188
268 renumbering bucket -6 -> -189
269 renumbering bucket -12 -> -190
270 renumbering bucket -23 -> -191
271 renumbering bucket -22 -> -192
272 renumbering bucket -20 -> -193
273 renumbering bucket -11 -> -194
274 renumbering bucket -10 -> -195
275 renumbering bucket -17 -> -196
276 renumbering bucket -13 -> -197
277 renumbering bucket -9 -> -198
278 renumbering bucket -3 -> -199
279 renumbering bucket -14 -> -200
280 renumbering bucket -5 -> -201
281 renumbering bucket -2 -> -202
20effc67 282 $ crushtool -i $TESTDIR/crush-classes/gabe2 --compare foo --min-rep 1 --max-rep 10
f64942e4 283 rule 0 had 627/10240 mismatched mappings (0.0612305)
20effc67 284 rule 1 had 652/10240 mismatched mappings (0.0636719)
f64942e4
AA
285 warning: maps are NOT equivalent
286 [1]
287
288
289
290 $ crushtool -i $TESTDIR/crush-classes/b --reclassify --reclassify-bucket %-hdd hdd default --reclassify-bucket %-ssd ssd default --reclassify-bucket ssd ssd default --reclassify-bucket hdd hdd default -o foo
291 classify_bucket %-hdd as hdd default bucket default (root)
f64942e4
AA
292 match %-hdd to berta-hdd basename berta
293 have base -37
294 match %-hdd to oelgard-hdd basename oelgard
295 have base -36
296 match %-hdd to leonhard-hdd basename leonhard
297 have base -33
298 match %-hdd to gottlieb-hdd basename gottlieb
299 have base -30
300 match %-hdd to hieronymus-hdd basename hieronymus
301 have base -31
302 match %-hdd to uhu-hdd basename uhu
303 have base -34
304 match %-hdd to euphrosyne-hdd basename euphrosyne
305 have base -35
306 match %-hdd to frauenhaus-hdd basename frauenhaus
307 created base -145
308 match %-hdd to herrenhaus-hdd basename herrenhaus
309 created base -146
310 match %-hdd to zoo-hdd basename zoo
311 created base -147
312 match %-hdd to borkenkaefer-hdd basename borkenkaefer
313 have base -4
314 match %-hdd to hirsch-hdd basename hirsch
315 have base -41
316 match %-hdd to cassowary-hdd basename cassowary
317 created base -148
318 match %-hdd to fuchs-hdd basename fuchs
319 created base -149
320 match %-hdd to analia-hdd basename analia
321 created base -150
322 match %-hdd to gundula-hdd basename gundula
323 created base -151
324 match %-hdd to achim-hdd basename achim
325 created base -152
326 match %-hdd to hugo-hdd basename hugo
327 created base -153
328 match %-hdd to carl-hdd basename carl
329 have base -32
330 classify_bucket %-ssd as ssd default bucket default (root)
f64942e4
AA
331 match %-ssd to frauenhaus-ssd basename frauenhaus
332 already creating base -145
333 match %-ssd to herrenhaus-ssd basename herrenhaus
334 already creating base -146
335 match %-ssd to zoo-ssd basename zoo
336 already creating base -147
337 match %-ssd to berta-ssd basename berta
338 have base -37
339 match %-ssd to euphrosyne-ssd basename euphrosyne
340 have base -35
341 match %-ssd to oelgard-ssd basename oelgard
342 have base -36
343 match %-ssd to leonhard-ssd basename leonhard
344 have base -33
345 match %-ssd to hieronymus-ssd basename hieronymus
346 have base -31
347 match %-ssd to gottlieb-ssd basename gottlieb
348 have base -30
349 match %-ssd to uhu-ssd basename uhu
350 have base -34
351 match %-ssd to borkenkaefer-ssd basename borkenkaefer
352 have base -4
353 match %-ssd to hirsch-ssd basename hirsch
354 have base -41
355 match %-ssd to phaidon-ssd basename phaidon
356 created base -154
357 match %-ssd to glykera-ssd basename glykera
358 created base -155
359 match %-ssd to bonobo-ssd basename bonobo
360 created base -156
361 classify_bucket hdd as hdd default bucket default (root)
f64942e4
AA
362 match hdd to hdd basename default
363 have base -1
364 classify_bucket ssd as ssd default bucket default (root)
f64942e4
AA
365 match ssd to ssd basename default
366 have base -1
367 moving items from -124 (bonobo-ssd) to -156 (bonobo)
368 moving items from -123 (glykera-ssd) to -155 (glykera)
369 moving items from -122 (phaidon-ssd) to -154 (phaidon)
370 moving items from -121 (carl-hdd) to -32 (carl)
371 moving items from -120 (hugo-hdd) to -153 (hugo)
372 moving items from -119 (achim-hdd) to -152 (achim)
373 moving items from -118 (gundula-hdd) to -151 (gundula)
374 moving items from -117 (analia-hdd) to -150 (analia)
375 moving items from -116 (fuchs-hdd) to -149 (fuchs)
376 moving items from -115 (cassowary-hdd) to -148 (cassowary)
377 moving items from -39 (hirsch-ssd) to -41 (hirsch)
378 moving items from -38 (hirsch-hdd) to -41 (hirsch)
379 moving items from -29 (borkenkaefer-ssd) to -4 (borkenkaefer)
380 moving items from -28 (hdd) to -1 (default)
381 moving items from -27 (ssd) to -1 (default)
382 moving items from -26 (uhu-ssd) to -34 (uhu)
383 moving items from -25 (gottlieb-ssd) to -30 (gottlieb)
384 moving items from -24 (hieronymus-ssd) to -31 (hieronymus)
385 moving items from -23 (leonhard-ssd) to -33 (leonhard)
386 moving items from -22 (borkenkaefer-hdd) to -4 (borkenkaefer)
387 moving items from -21 (oelgard-ssd) to -36 (oelgard)
388 moving items from -20 (euphrosyne-ssd) to -35 (euphrosyne)
389 moving items from -19 (berta-ssd) to -37 (berta)
390 moving items from -17 (zoo-ssd) to -147 (zoo)
391 moving items from -16 (herrenhaus-ssd) to -146 (herrenhaus)
392 moving items from -15 (frauenhaus-ssd) to -145 (frauenhaus)
393 moving items from -12 (zoo-hdd) to -147 (zoo)
394 moving items from -11 (herrenhaus-hdd) to -146 (herrenhaus)
395 moving items from -10 (frauenhaus-hdd) to -145 (frauenhaus)
396 moving items from -9 (euphrosyne-hdd) to -35 (euphrosyne)
397 moving items from -8 (uhu-hdd) to -34 (uhu)
398 moving items from -7 (hieronymus-hdd) to -31 (hieronymus)
399 moving items from -6 (gottlieb-hdd) to -30 (gottlieb)
400 moving items from -5 (leonhard-hdd) to -33 (leonhard)
401 moving items from -3 (oelgard-hdd) to -36 (oelgard)
402 moving items from -2 (berta-hdd) to -37 (berta)
403 new bucket -156 missing parent, adding at {root=default}
404 new bucket -155 missing parent, adding at {root=default}
405 new bucket -154 missing parent, adding at {root=default}
406
20effc67
TL
407 $ crushtool -i $TESTDIR/crush-classes/b --compare foo --min-rep 1 --max-rep 10
408 rule 0 had 0/10240 mismatched mappings (0)
409 rule 1 had 0/10240 mismatched mappings (0)
f64942e4
AA
410 maps appear equivalent
411
412 $ crushtool -i $TESTDIR/crush-classes/f --reclassify --reclassify-root default hdd -o foo
413 classify_root default (-1) as hdd
f64942e4
AA
414 renumbering bucket -1 -> -178
415 renumbering bucket -4 -> -179
416 renumbering bucket -25 -> -180
417 renumbering bucket -16 -> -181
418 renumbering bucket -21 -> -182
419 renumbering bucket -19 -> -183
420 renumbering bucket -15 -> -184
421 renumbering bucket -7 -> -185
422 renumbering bucket -47 -> -186
423 renumbering bucket -18 -> -187
424 renumbering bucket -8 -> -188
425 renumbering bucket -6 -> -189
426 renumbering bucket -12 -> -190
427 renumbering bucket -23 -> -191
428 renumbering bucket -22 -> -192
429 renumbering bucket -20 -> -193
430 renumbering bucket -11 -> -194
431 renumbering bucket -10 -> -195
432 renumbering bucket -17 -> -196
433 renumbering bucket -13 -> -197
434 renumbering bucket -9 -> -198
435 renumbering bucket -3 -> -199
436 renumbering bucket -14 -> -200
437 renumbering bucket -5 -> -201
438 renumbering bucket -2 -> -202
439
440We expect some mismatches below because there are some ssd-labeled nodes under
441default that we aren't changing the class on.
442
20effc67 443 $ crushtool -i $TESTDIR/crush-classes/f --compare foo --min-rep 1 --max-rep 10
f64942e4 444 rule 0 had 627/10240 mismatched mappings (0.0612305)
20effc67 445 rule 1 had 652/10240 mismatched mappings (0.0636719)
f64942e4
AA
446 warning: maps are NOT equivalent
447 [1]
448
449 $ crushtool -i $TESTDIR/crush-classes/g --reclassify --reclassify-bucket sata-% hdd-sata default --reclassify-bucket sas-% hdd-sas default --reclassify-bucket sas hdd-sas default --reclassify-bucket sata hdd-sata default -o foo
450 classify_bucket sas as hdd-sas default bucket default (root)
f64942e4
AA
451 match sas to sas basename default
452 have base -1
453 classify_bucket sas-% as hdd-sas default bucket default (root)
f64942e4
AA
454 match sas-% to sas-osd01 basename osd01
455 created base -73
456 match sas-% to sas-osd02 basename osd02
457 created base -74
458 match sas-% to sas-osd03 basename osd03
459 created base -75
460 match sas-% to sas-osd04 basename osd04
461 created base -76
462 match sas-% to sas-osd05 basename osd05
463 created base -77
464 match sas-% to sas-osd06 basename osd06
465 created base -78
466 match sas-% to sas-osd07 basename osd07
467 created base -79
468 match sas-% to sas-osd08 basename osd08
469 created base -80
470 match sas-% to sas-osd09 basename osd09
471 created base -81
472 match sas-% to sas-rack1 basename rack1
473 created base -82
474 match sas-% to sas-rack2 basename rack2
475 created base -83
476 match sas-% to sas-rack3 basename rack3
477 created base -84
478 classify_bucket sata as hdd-sata default bucket default (root)
f64942e4
AA
479 match sata to sata basename default
480 have base -1
481 classify_bucket sata-% as hdd-sata default bucket default (root)
f64942e4
AA
482 match sata-% to sata-osd11 basename osd11
483 created base -85
484 match sata-% to sata-osd10 basename osd10
485 created base -86
486 match sata-% to sata-osd14 basename osd14
487 created base -87
488 match sata-% to sata-osd13 basename osd13
489 created base -88
490 match sata-% to sata-osd12 basename osd12
491 created base -89
492 match sata-% to sata-osd15 basename osd15
493 created base -90
494 match sata-% to sata-osd16 basename osd16
495 created base -91
496 match sata-% to sata-osd18 basename osd18
497 created base -92
498 match sata-% to sata-osd19 basename osd19
499 created base -93
500 match sata-% to sata-osd17 basename osd17
501 created base -94
502 match sata-% to sata-osd20 basename osd20
503 created base -95
504 match sata-% to sata-osd21 basename osd21
505 created base -96
506 match sata-% to sata-osd22 basename osd22
507 created base -97
508 match sata-% to sata-osd23 basename osd23
509 created base -98
510 match sata-% to sata-osd24 basename osd24
511 created base -99
512 match sata-% to sata-osd25 basename osd25
513 created base -100
514 match sata-% to sata-osd26 basename osd26
515 created base -101
516 match sata-% to sata-osd27 basename osd27
517 created base -102
518 match sata-% to sata-rack1 basename rack1
519 already creating base -82
520 match sata-% to sata-rack2 basename rack2
521 already creating base -83
522 match sata-% to sata-rack3 basename rack3
523 already creating base -84
524 moving items from -36 (sas) to -1 (default)
525 moving items from -35 (sata) to -1 (default)
526 moving items from -34 (sas-rack3) to -84 (rack3)
527 moving items from -33 (sas-rack2) to -83 (rack2)
528 moving items from -32 (sas-rack1) to -82 (rack1)
529 moving items from -31 (sata-rack3) to -84 (rack3)
530 moving items from -30 (sata-rack2) to -83 (rack2)
531 moving items from -29 (sata-rack1) to -82 (rack1)
532 moving items from -28 (sas-osd09) to -81 (osd09)
533 moving items from -27 (sas-osd08) to -80 (osd08)
534 moving items from -26 (sas-osd07) to -79 (osd07)
535 moving items from -25 (sas-osd06) to -78 (osd06)
536 moving items from -24 (sas-osd05) to -77 (osd05)
537 moving items from -23 (sas-osd04) to -76 (osd04)
538 moving items from -22 (sas-osd03) to -75 (osd03)
539 moving items from -21 (sas-osd02) to -74 (osd02)
540 moving items from -20 (sata-osd27) to -102 (osd27)
541 moving items from -19 (sas-osd01) to -73 (osd01)
542 moving items from -18 (sata-osd26) to -101 (osd26)
543 moving items from -17 (sata-osd25) to -100 (osd25)
544 moving items from -16 (sata-osd24) to -99 (osd24)
545 moving items from -15 (sata-osd23) to -98 (osd23)
546 moving items from -14 (sata-osd22) to -97 (osd22)
547 moving items from -13 (sata-osd21) to -96 (osd21)
548 moving items from -12 (sata-osd20) to -95 (osd20)
549 moving items from -11 (sata-osd17) to -94 (osd17)
550 moving items from -10 (sata-osd19) to -93 (osd19)
551 moving items from -9 (sata-osd18) to -92 (osd18)
552 moving items from -8 (sata-osd16) to -91 (osd16)
553 moving items from -7 (sata-osd15) to -90 (osd15)
554 moving items from -6 (sata-osd12) to -89 (osd12)
555 moving items from -5 (sata-osd13) to -88 (osd13)
556 moving items from -4 (sata-osd14) to -87 (osd14)
557 moving items from -3 (sata-osd10) to -86 (osd10)
558 moving items from -2 (sata-osd11) to -85 (osd11)
20effc67 559 $ crushtool -i $TESTDIR/crush-classes/g --compare foo --min-rep 1 --max-rep 10
f64942e4
AA
560 rule 0 had 0/10240 mismatched mappings (0)
561 rule 1 had 0/10240 mismatched mappings (0)
562 maps appear equivalent