Skip to content

Instantly share code, notes, and snippets.

@hnuzhoulin
Created January 30, 2019 08:10
Show Gist options
  • Save hnuzhoulin/575883dbbcb04dff448eea3b9384c125 to your computer and use it in GitHub Desktop.
Save hnuzhoulin/575883dbbcb04dff448eea3b9384c125 to your computer and use it in GitHub Desktop.
jewel10.2.11 EC pool,out an osd,its pgs only remap to the same host osds
EC profile is:
ceph osd erasure-code-profile get ISA-4-2
k=4
m=2
plugin=isa
ruleset-failure-domain=ctnr
ruleset-root=site1-sata
technique=reed_sol_van
crushmap is:
# begin crush map
tunable choose_local_tries 0
tunable choose_local_fallback_tries 0
tunable choose_total_tries 50
tunable chooseleaf_descend_once 1
tunable chooseleaf_vary_r 1
tunable straw_calc_version 1
tunable allowed_bucket_algs 54
# devices
device 0 osd.0
device 1 osd.1
device 2 osd.2
device 3 osd.3
device 4 osd.4
device 5 osd.5
device 6 osd.6
device 7 osd.7
device 8 osd.8
device 9 osd.9
device 10 osd.10
device 11 osd.11
device 12 osd.12
device 13 osd.13
device 14 osd.14
device 15 osd.15
device 16 osd.16
device 17 osd.17
device 18 osd.18
device 19 osd.19
device 20 osd.20
device 21 osd.21
device 22 osd.22
device 23 osd.23
device 24 osd.24
device 25 osd.25
device 26 osd.26
device 27 osd.27
device 28 osd.28
device 29 osd.29
device 30 osd.30
device 31 osd.31
device 32 osd.32
device 33 osd.33
device 34 osd.34
device 35 osd.35
device 36 osd.36
device 37 osd.37
device 38 osd.38
device 39 osd.39
device 40 osd.40
device 41 osd.41
device 42 osd.42
device 43 osd.43
device 44 osd.44
device 45 osd.45
device 46 osd.46
device 47 osd.47
device 48 osd.48
device 49 osd.49
device 50 osd.50
device 51 osd.51
device 52 osd.52
device 53 osd.53
device 54 osd.54
device 55 osd.55
device 56 osd.56
device 57 osd.57
device 58 osd.58
device 59 osd.59
device 60 osd.60
device 61 osd.61
device 62 osd.62
device 63 osd.63
device 64 osd.64
device 65 osd.65
device 66 osd.66
device 67 osd.67
device 68 osd.68
device 69 osd.69
device 70 osd.70
device 71 osd.71
device 72 osd.72
device 73 osd.73
device 74 osd.74
device 75 osd.75
device 76 osd.76
device 77 osd.77
device 78 osd.78
device 79 osd.79
device 80 osd.80
device 81 osd.81
device 82 osd.82
device 83 osd.83
device 84 osd.84
device 85 osd.85
device 86 osd.86
device 87 osd.87
device 88 osd.88
device 89 osd.89
device 90 osd.90
device 91 osd.91
device 92 osd.92
device 93 osd.93
device 94 osd.94
device 95 osd.95
device 96 osd.96
device 97 osd.97
device 98 osd.98
device 99 osd.99
device 100 osd.100
device 101 osd.101
device 102 osd.102
device 103 osd.103
device 104 osd.104
device 105 osd.105
device 106 osd.106
device 107 osd.107
device 108 osd.108
device 109 osd.109
device 110 osd.110
device 111 osd.111
device 112 osd.112
device 113 osd.113
device 114 osd.114
device 115 osd.115
device 116 osd.116
device 117 osd.117
device 118 osd.118
device 119 osd.119
device 120 osd.120
device 121 osd.121
device 122 osd.122
device 123 osd.123
device 124 osd.124
device 125 osd.125
device 126 osd.126
device 127 osd.127
device 128 osd.128
device 129 osd.129
device 130 osd.130
device 131 osd.131
device 132 osd.132
device 133 osd.133
device 134 osd.134
device 135 osd.135
device 136 osd.136
device 137 osd.137
device 138 osd.138
device 139 osd.139
device 140 osd.140
device 141 osd.141
device 142 osd.142
device 143 osd.143
device 144 osd.144
device 145 osd.145
device 146 osd.146
device 147 osd.147
device 148 osd.148
device 149 osd.149
device 150 osd.150
device 151 osd.151
device 152 osd.152
device 153 osd.153
device 154 osd.154
device 155 osd.155
device 156 osd.156
device 157 osd.157
device 158 osd.158
device 159 osd.159
device 160 osd.160
device 161 osd.161
device 162 osd.162
device 163 osd.163
device 164 osd.164
device 165 osd.165
device 166 osd.166
device 167 osd.167
device 168 osd.168
device 169 osd.169
device 170 osd.170
device 171 osd.171
device 172 osd.172
device 173 osd.173
device 174 osd.174
device 175 osd.175
device 176 osd.176
device 177 osd.177
device 178 osd.178
device 179 osd.179
device 180 osd.180
device 181 osd.181
device 182 osd.182
device 183 osd.183
device 184 osd.184
device 185 osd.185
device 186 osd.186
device 187 osd.187
device 188 osd.188
device 189 osd.189
device 190 osd.190
device 191 osd.191
device 192 osd.192
device 193 osd.193
device 194 osd.194
device 195 osd.195
device 196 osd.196
device 197 osd.197
device 198 osd.198
device 199 osd.199
device 200 osd.200
device 201 osd.201
device 202 osd.202
device 203 osd.203
device 204 osd.204
device 205 osd.205
device 206 osd.206
device 207 osd.207
device 208 osd.208
device 209 osd.209
device 210 osd.210
device 211 osd.211
device 212 osd.212
device 213 osd.213
device 214 osd.214
device 215 osd.215
device 216 osd.216
device 217 osd.217
device 218 osd.218
device 219 osd.219
device 220 osd.220
device 221 osd.221
device 222 osd.222
device 223 osd.223
device 224 osd.224
device 225 osd.225
device 226 osd.226
device 227 osd.227
device 228 osd.228
device 229 osd.229
device 230 osd.230
device 231 osd.231
device 232 osd.232
device 233 osd.233
device 234 osd.234
device 235 osd.235
device 236 osd.236
device 237 osd.237
device 238 osd.238
device 239 osd.239
device 240 osd.240
device 241 osd.241
device 242 osd.242
device 243 osd.243
device 244 osd.244
device 245 osd.245
device 246 osd.246
device 247 osd.247
device 248 osd.248
device 249 osd.249
device 250 osd.250
device 251 osd.251
device 252 osd.252
device 253 osd.253
device 254 osd.254
device 255 osd.255
device 256 osd.256
device 257 osd.257
device 258 osd.258
device 259 osd.259
device 260 osd.260
device 261 osd.261
device 262 osd.262
device 263 osd.263
device 264 osd.264
device 265 osd.265
device 266 osd.266
device 267 osd.267
device 268 osd.268
device 269 osd.269
device 270 osd.270
device 271 osd.271
device 272 osd.272
device 273 osd.273
device 274 osd.274
device 275 osd.275
device 276 osd.276
device 277 osd.277
device 278 osd.278
device 279 osd.279
device 280 osd.280
device 281 osd.281
device 282 osd.282
device 283 osd.283
device 284 osd.284
device 285 osd.285
device 286 osd.286
device 287 osd.287
device 288 osd.288
device 289 osd.289
device 290 osd.290
device 291 osd.291
device 292 osd.292
device 293 osd.293
device 294 osd.294
device 295 osd.295
device 296 osd.296
device 297 osd.297
device 298 osd.298
device 299 osd.299
device 300 osd.300
device 301 osd.301
device 302 osd.302
device 303 osd.303
device 304 osd.304
device 305 osd.305
device 306 osd.306
device 307 osd.307
device 308 osd.308
device 309 osd.309
device 310 osd.310
device 311 osd.311
device 312 osd.312
device 313 osd.313
device 314 osd.314
device 315 osd.315
device 316 osd.316
device 317 osd.317
device 318 osd.318
device 319 osd.319
device 320 osd.320
device 321 osd.321
device 322 osd.322
device 323 osd.323
device 324 osd.324
device 325 osd.325
device 326 osd.326
device 327 osd.327
device 328 osd.328
device 329 osd.329
device 330 osd.330
device 331 osd.331
device 332 osd.332
device 333 osd.333
device 334 osd.334
device 335 osd.335
device 336 osd.336
device 337 osd.337
device 338 osd.338
device 339 osd.339
device 340 osd.340
device 341 osd.341
device 342 osd.342
device 343 osd.343
device 344 osd.344
device 345 osd.345
device 346 osd.346
device 347 osd.347
device 348 osd.348
device 349 osd.349
device 350 osd.350
device 351 osd.351
device 352 osd.352
device 353 osd.353
device 354 osd.354
device 355 osd.355
device 356 osd.356
device 357 osd.357
device 358 osd.358
device 359 osd.359
device 360 osd.360
device 361 osd.361
device 362 osd.362
device 363 osd.363
device 364 osd.364
device 365 osd.365
device 366 osd.366
device 367 osd.367
device 368 osd.368
device 369 osd.369
device 370 osd.370
device 371 osd.371
device 372 osd.372
device 373 osd.373
device 374 osd.374
device 375 osd.375
device 376 osd.376
device 377 osd.377
device 378 osd.378
device 379 osd.379
device 380 osd.380
device 381 osd.381
device 382 osd.382
device 383 osd.383
device 384 osd.384
device 385 osd.385
device 386 osd.386
device 387 osd.387
device 388 osd.388
device 389 osd.389
device 390 osd.390
device 391 osd.391
device 392 osd.392
device 393 osd.393
device 394 osd.394
device 395 osd.395
device 396 osd.396
device 397 osd.397
device 398 osd.398
device 399 osd.399
device 400 osd.400
device 401 osd.401
device 402 osd.402
device 403 osd.403
device 404 osd.404
device 405 osd.405
device 406 osd.406
device 407 osd.407
device 408 osd.408
device 409 osd.409
device 410 osd.410
device 411 osd.411
device 412 osd.412
device 413 osd.413
device 414 osd.414
device 415 osd.415
device 416 osd.416
device 417 osd.417
device 418 osd.418
device 419 osd.419
device 420 osd.420
device 421 osd.421
device 422 osd.422
device 423 osd.423
device 424 osd.424
device 425 osd.425
device 426 osd.426
device 427 osd.427
device 428 osd.428
device 429 osd.429
device 430 osd.430
device 431 osd.431
device 432 osd.432
device 433 osd.433
device 434 osd.434
device 435 osd.435
device 436 osd.436
device 437 osd.437
device 438 osd.438
device 439 osd.439
device 440 osd.440
device 441 osd.441
device 442 osd.442
device 443 osd.443
device 444 osd.444
device 445 osd.445
device 446 osd.446
device 447 osd.447
device 448 osd.448
device 449 osd.449
device 450 osd.450
device 451 osd.451
device 452 osd.452
device 453 osd.453
device 454 osd.454
device 455 osd.455
device 456 osd.456
device 457 osd.457
device 458 osd.458
device 459 osd.459
device 460 osd.460
device 461 osd.461
device 462 osd.462
device 463 osd.463
device 464 osd.464
device 465 osd.465
device 466 osd.466
device 467 osd.467
device 468 osd.468
device 469 osd.469
device 470 osd.470
device 471 osd.471
device 472 osd.472
device 473 osd.473
device 474 osd.474
device 475 osd.475
device 476 osd.476
device 477 osd.477
device 478 osd.478
device 479 osd.479
device 480 osd.480
device 481 osd.481
device 482 osd.482
device 483 osd.483
device 484 osd.484
device 485 osd.485
device 486 osd.486
device 487 osd.487
device 488 osd.488
device 489 osd.489
device 490 osd.490
device 491 osd.491
device 492 osd.492
device 493 osd.493
device 494 osd.494
device 495 osd.495
device 496 osd.496
device 497 osd.497
device 498 osd.498
device 499 osd.499
device 500 osd.500
device 501 osd.501
device 502 osd.502
device 503 osd.503
# types
type 0 osd # osd
type 1 ctnr # sata/ssd group by node, -101~1xx/-201~2xx
type 2 media # sata/ssd group by rack, -11~1x/-21~2x
type 3 mediagroup # sata/ssd group by site, -5/-6
type 4 unit # site, -2
type 5 root # root, -1
# buckets
ctnr cld-osd1-56-sata {
id -101 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.0 weight 1.000
item osd.1 weight 1.000
item osd.2 weight 1.000
item osd.3 weight 1.000
item osd.4 weight 1.000
item osd.5 weight 1.000
item osd.6 weight 1.000
item osd.7 weight 1.000
item osd.8 weight 1.000
item osd.9 weight 1.000
}
ctnr cld-osd1-56-ssd {
id -201 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.10 weight 1.000
item osd.11 weight 1.000
}
ctnr cld-osd2-56-sata {
id -102 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.12 weight 1.000
item osd.13 weight 1.000
item osd.14 weight 1.000
item osd.15 weight 1.000
item osd.16 weight 1.000
item osd.17 weight 1.000
item osd.18 weight 1.000
item osd.19 weight 1.000
item osd.20 weight 1.000
item osd.21 weight 1.000
}
ctnr cld-osd2-56-ssd {
id -202 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.22 weight 1.000
item osd.23 weight 1.000
}
ctnr cld-osd3-56-sata {
id -103 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.24 weight 1.000
item osd.25 weight 1.000
item osd.26 weight 1.000
item osd.27 weight 1.000
item osd.28 weight 1.000
item osd.29 weight 1.000
item osd.30 weight 1.000
item osd.31 weight 1.000
item osd.32 weight 1.000
item osd.33 weight 1.000
}
ctnr cld-osd3-56-ssd {
id -203 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.34 weight 1.000
item osd.35 weight 1.000
}
ctnr cld-osd4-56-sata {
id -104 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.36 weight 1.000
item osd.37 weight 1.000
item osd.38 weight 1.000
item osd.39 weight 1.000
item osd.40 weight 1.000
item osd.41 weight 1.000
item osd.42 weight 1.000
item osd.43 weight 1.000
item osd.44 weight 1.000
item osd.45 weight 1.000
}
ctnr cld-osd4-56-ssd {
id -204 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.46 weight 1.000
item osd.47 weight 1.000
}
ctnr cld-osd5-56-sata {
id -105 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.48 weight 1.000
item osd.49 weight 1.000
item osd.50 weight 1.000
item osd.51 weight 1.000
item osd.52 weight 1.000
item osd.53 weight 1.000
item osd.54 weight 1.000
item osd.55 weight 1.000
item osd.56 weight 1.000
item osd.57 weight 1.000
}
ctnr cld-osd5-56-ssd {
id -205 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.58 weight 1.000
item osd.59 weight 1.000
}
ctnr cld-osd6-56-sata {
id -106 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.60 weight 1.000
item osd.61 weight 1.000
item osd.62 weight 1.000
item osd.63 weight 1.000
item osd.64 weight 1.000
item osd.65 weight 1.000
item osd.66 weight 1.000
item osd.67 weight 1.000
item osd.68 weight 1.000
item osd.69 weight 1.000
}
ctnr cld-osd6-56-ssd {
id -206 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.70 weight 1.000
item osd.71 weight 1.000
}
ctnr cld-osd7-56-sata {
id -107 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.72 weight 1.000
item osd.73 weight 1.000
item osd.74 weight 1.000
item osd.75 weight 1.000
item osd.76 weight 1.000
item osd.77 weight 1.000
item osd.78 weight 1.000
item osd.79 weight 1.000
item osd.80 weight 1.000
item osd.81 weight 1.000
}
ctnr cld-osd7-56-ssd {
id -207 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.82 weight 1.000
item osd.83 weight 1.000
}
ctnr cld-osd8-56-sata {
id -108 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.84 weight 1.000
item osd.85 weight 1.000
item osd.86 weight 1.000
item osd.87 weight 1.000
item osd.88 weight 1.000
item osd.89 weight 1.000
item osd.90 weight 1.000
item osd.91 weight 1.000
item osd.92 weight 1.000
item osd.93 weight 1.000
}
ctnr cld-osd8-56-ssd {
id -208 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.94 weight 1.000
item osd.95 weight 1.000
}
ctnr cld-osd9-56-sata {
id -109 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.96 weight 1.000
item osd.97 weight 1.000
item osd.98 weight 1.000
item osd.99 weight 1.000
item osd.100 weight 1.000
item osd.101 weight 1.000
item osd.102 weight 1.000
item osd.103 weight 1.000
item osd.104 weight 1.000
item osd.105 weight 1.000
}
ctnr cld-osd9-56-ssd {
id -209 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.106 weight 1.000
item osd.107 weight 1.000
}
ctnr cld-osd10-56-sata {
id -110 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.108 weight 1.000
item osd.109 weight 1.000
item osd.110 weight 1.000
item osd.111 weight 1.000
item osd.112 weight 1.000
item osd.113 weight 1.000
item osd.114 weight 1.000
item osd.115 weight 1.000
item osd.116 weight 1.000
item osd.117 weight 1.000
}
ctnr cld-osd10-56-ssd {
id -210 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.118 weight 1.000
item osd.119 weight 1.000
}
ctnr cld-osd11-56-sata {
id -111 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.120 weight 1.000
item osd.121 weight 1.000
item osd.122 weight 1.000
item osd.123 weight 1.000
item osd.124 weight 1.000
item osd.125 weight 1.000
item osd.126 weight 1.000
item osd.127 weight 1.000
item osd.128 weight 1.000
item osd.129 weight 1.000
}
ctnr cld-osd11-56-ssd {
id -211 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.130 weight 1.000
item osd.131 weight 1.000
}
ctnr cld-osd12-56-sata {
id -112 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.132 weight 1.000
item osd.133 weight 1.000
item osd.134 weight 1.000
item osd.135 weight 1.000
item osd.136 weight 1.000
item osd.137 weight 1.000
item osd.138 weight 1.000
item osd.139 weight 1.000
item osd.140 weight 1.000
item osd.141 weight 1.000
}
ctnr cld-osd12-56-ssd {
id -212 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.142 weight 1.000
item osd.143 weight 1.000
}
ctnr cld-osd13-56-sata {
id -113 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.144 weight 1.000
item osd.145 weight 1.000
item osd.146 weight 1.000
item osd.147 weight 1.000
item osd.148 weight 1.000
item osd.149 weight 1.000
item osd.150 weight 1.000
item osd.151 weight 1.000
item osd.152 weight 1.000
item osd.153 weight 1.000
}
ctnr cld-osd13-56-ssd {
id -213 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.154 weight 1.000
item osd.155 weight 1.000
}
ctnr cld-osd14-56-sata {
id -114 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.156 weight 1.000
item osd.157 weight 1.000
item osd.158 weight 1.000
item osd.159 weight 1.000
item osd.160 weight 1.000
item osd.161 weight 1.000
item osd.162 weight 1.000
item osd.163 weight 1.000
item osd.164 weight 1.000
item osd.165 weight 1.000
}
ctnr cld-osd14-56-ssd {
id -214 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.166 weight 1.000
item osd.167 weight 1.000
}
ctnr cld-osd15-56-sata {
id -115 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.168 weight 1.000
item osd.169 weight 1.000
item osd.170 weight 1.000
item osd.171 weight 1.000
item osd.172 weight 1.000
item osd.173 weight 1.000
item osd.174 weight 1.000
item osd.175 weight 1.000
item osd.176 weight 1.000
item osd.177 weight 1.000
}
ctnr cld-osd15-56-ssd {
id -215 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.178 weight 1.000
item osd.179 weight 1.000
}
ctnr cld-osd16-56-sata {
id -116 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.180 weight 1.000
item osd.181 weight 1.000
item osd.182 weight 1.000
item osd.183 weight 1.000
item osd.184 weight 1.000
item osd.185 weight 1.000
item osd.186 weight 1.000
item osd.187 weight 1.000
item osd.188 weight 1.000
item osd.189 weight 1.000
}
ctnr cld-osd16-56-ssd {
id -216 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.190 weight 1.000
item osd.191 weight 1.000
}
ctnr cld-osd17-56-sata {
id -117 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.192 weight 1.000
item osd.193 weight 1.000
item osd.194 weight 1.000
item osd.195 weight 1.000
item osd.196 weight 1.000
item osd.197 weight 1.000
item osd.198 weight 1.000
item osd.199 weight 1.000
item osd.200 weight 1.000
item osd.201 weight 1.000
}
ctnr cld-osd17-56-ssd {
id -217 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.202 weight 1.000
item osd.203 weight 1.000
}
ctnr cld-osd18-56-sata {
id -118 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.204 weight 1.000
item osd.205 weight 1.000
item osd.206 weight 1.000
item osd.207 weight 1.000
item osd.208 weight 1.000
item osd.209 weight 1.000
item osd.210 weight 1.000
item osd.211 weight 1.000
item osd.212 weight 1.000
item osd.213 weight 1.000
}
ctnr cld-osd18-56-ssd {
id -218 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.214 weight 1.000
item osd.215 weight 1.000
}
ctnr cld-osd19-56-sata {
id -119 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.216 weight 1.000
item osd.217 weight 1.000
item osd.218 weight 1.000
item osd.219 weight 1.000
item osd.220 weight 1.000
item osd.221 weight 1.000
item osd.222 weight 1.000
item osd.223 weight 1.000
item osd.224 weight 1.000
item osd.225 weight 1.000
}
ctnr cld-osd19-56-ssd {
id -219 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.226 weight 1.000
item osd.227 weight 1.000
}
ctnr cld-osd20-56-sata {
id -120 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.228 weight 1.000
item osd.229 weight 1.000
item osd.230 weight 1.000
item osd.231 weight 1.000
item osd.232 weight 1.000
item osd.233 weight 1.000
item osd.234 weight 1.000
item osd.235 weight 1.000
item osd.236 weight 1.000
item osd.237 weight 1.000
}
ctnr cld-osd20-56-ssd {
id -220 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.238 weight 1.000
item osd.239 weight 1.000
}
ctnr cld-osd21-56-sata {
id -121 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.240 weight 1.000
item osd.241 weight 1.000
item osd.242 weight 1.000
item osd.243 weight 1.000
item osd.244 weight 1.000
item osd.245 weight 1.000
item osd.246 weight 1.000
item osd.247 weight 1.000
item osd.248 weight 1.000
item osd.249 weight 1.000
}
ctnr cld-osd21-56-ssd {
id -221 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.250 weight 1.000
item osd.251 weight 1.000
}
ctnr cld-osd22-56-sata {
id -122 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.252 weight 1.000
item osd.253 weight 1.000
item osd.254 weight 1.000
item osd.255 weight 1.000
item osd.256 weight 1.000
item osd.257 weight 1.000
item osd.258 weight 1.000
item osd.259 weight 1.000
item osd.260 weight 1.000
item osd.261 weight 1.000
}
ctnr cld-osd22-56-ssd {
id -222 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.262 weight 1.000
item osd.263 weight 1.000
}
ctnr cld-osd23-56-sata {
id -123 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.264 weight 1.000
item osd.265 weight 1.000
item osd.266 weight 1.000
item osd.267 weight 1.000
item osd.268 weight 1.000
item osd.269 weight 1.000
item osd.270 weight 1.000
item osd.271 weight 1.000
item osd.272 weight 1.000
item osd.273 weight 1.000
}
ctnr cld-osd23-56-ssd {
id -223 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.274 weight 1.000
item osd.275 weight 1.000
}
ctnr cld-osd24-56-sata {
id -124 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.276 weight 1.000
item osd.277 weight 1.000
item osd.278 weight 1.000
item osd.279 weight 1.000
item osd.280 weight 1.000
item osd.281 weight 1.000
item osd.282 weight 1.000
item osd.283 weight 1.000
item osd.284 weight 1.000
item osd.285 weight 1.000
}
ctnr cld-osd24-56-ssd {
id -224 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.286 weight 1.000
item osd.287 weight 1.000
}
ctnr cld-osd25-56-sata {
id -125 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.288 weight 1.000
item osd.289 weight 1.000
item osd.290 weight 1.000
item osd.291 weight 1.000
item osd.292 weight 1.000
item osd.293 weight 1.000
item osd.294 weight 1.000
item osd.295 weight 1.000
item osd.296 weight 1.000
item osd.297 weight 1.000
}
ctnr cld-osd25-56-ssd {
id -225 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.298 weight 1.000
item osd.299 weight 1.000
}
ctnr cld-osd26-56-sata {
id -126 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.300 weight 1.000
item osd.301 weight 1.000
item osd.302 weight 1.000
item osd.303 weight 1.000
item osd.304 weight 1.000
item osd.305 weight 1.000
item osd.306 weight 1.000
item osd.307 weight 1.000
item osd.308 weight 1.000
item osd.309 weight 1.000
}
ctnr cld-osd26-56-ssd {
id -226 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.310 weight 1.000
item osd.311 weight 1.000
}
ctnr cld-osd27-56-sata {
id -127 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.312 weight 1.000
item osd.313 weight 1.000
item osd.314 weight 1.000
item osd.315 weight 1.000
item osd.316 weight 1.000
item osd.317 weight 1.000
item osd.318 weight 1.000
item osd.319 weight 1.000
item osd.320 weight 1.000
item osd.321 weight 1.000
}
ctnr cld-osd27-56-ssd {
id -227 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.322 weight 1.000
item osd.323 weight 1.000
}
ctnr cld-osd28-56-sata {
id -128 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.324 weight 1.000
item osd.325 weight 1.000
item osd.326 weight 1.000
item osd.327 weight 1.000
item osd.328 weight 1.000
item osd.329 weight 1.000
item osd.330 weight 1.000
item osd.331 weight 1.000
item osd.332 weight 1.000
item osd.333 weight 1.000
}
ctnr cld-osd28-56-ssd {
id -228 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.334 weight 1.000
item osd.335 weight 1.000
}
ctnr cld-osd29-56-sata {
id -129 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.336 weight 1.000
item osd.337 weight 1.000
item osd.338 weight 1.000
item osd.339 weight 1.000
item osd.340 weight 1.000
item osd.341 weight 1.000
item osd.342 weight 1.000
item osd.343 weight 1.000
item osd.344 weight 1.000
item osd.345 weight 1.000
}
ctnr cld-osd29-56-ssd {
id -229 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.346 weight 1.000
item osd.347 weight 1.000
}
ctnr cld-osd30-56-sata {
id -130 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.348 weight 1.000
item osd.349 weight 1.000
item osd.350 weight 1.000
item osd.351 weight 1.000
item osd.352 weight 1.000
item osd.353 weight 1.000
item osd.354 weight 1.000
item osd.355 weight 1.000
item osd.356 weight 1.000
item osd.357 weight 1.000
}
ctnr cld-osd30-56-ssd {
id -230 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.358 weight 1.000
item osd.359 weight 1.000
}
ctnr cld-osd31-56-sata {
id -131 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.360 weight 1.000
item osd.361 weight 1.000
item osd.362 weight 1.000
item osd.363 weight 1.000
item osd.364 weight 1.000
item osd.365 weight 1.000
item osd.366 weight 1.000
item osd.367 weight 1.000
item osd.368 weight 1.000
item osd.369 weight 1.000
}
ctnr cld-osd31-56-ssd {
id -231 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.370 weight 1.000
item osd.371 weight 1.000
}
ctnr cld-osd32-56-sata {
id -132 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.372 weight 1.000
item osd.373 weight 1.000
item osd.374 weight 1.000
item osd.375 weight 1.000
item osd.376 weight 1.000
item osd.377 weight 1.000
item osd.378 weight 1.000
item osd.379 weight 1.000
item osd.380 weight 1.000
item osd.381 weight 1.000
}
ctnr cld-osd32-56-ssd {
id -232 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.382 weight 1.000
item osd.383 weight 1.000
}
ctnr cld-osd33-56-sata {
id -133 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.384 weight 1.000
item osd.385 weight 1.000
item osd.386 weight 1.000
item osd.387 weight 1.000
item osd.388 weight 1.000
item osd.389 weight 1.000
item osd.390 weight 1.000
item osd.391 weight 1.000
item osd.392 weight 1.000
item osd.393 weight 1.000
}
ctnr cld-osd33-56-ssd {
id -233 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.394 weight 1.000
item osd.395 weight 1.000
}
ctnr cld-osd34-56-sata {
id -134 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.396 weight 1.000
item osd.397 weight 1.000
item osd.398 weight 1.000
item osd.399 weight 1.000
item osd.400 weight 1.000
item osd.401 weight 1.000
item osd.402 weight 1.000
item osd.403 weight 1.000
item osd.404 weight 1.000
item osd.405 weight 1.000
}
ctnr cld-osd34-56-ssd {
id -234 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.406 weight 1.000
item osd.407 weight 1.000
}
ctnr cld-osd35-56-sata {
id -135 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.408 weight 1.000
item osd.409 weight 1.000
item osd.410 weight 1.000
item osd.411 weight 1.000
item osd.412 weight 1.000
item osd.413 weight 1.000
item osd.414 weight 1.000
item osd.415 weight 1.000
item osd.416 weight 1.000
item osd.417 weight 1.000
}
ctnr cld-osd35-56-ssd {
id -235 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.418 weight 1.000
item osd.419 weight 1.000
}
ctnr cld-osd36-56-sata {
id -136 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.420 weight 1.000
item osd.421 weight 1.000
item osd.422 weight 1.000
item osd.423 weight 1.000
item osd.424 weight 1.000
item osd.425 weight 1.000
item osd.426 weight 1.000
item osd.427 weight 1.000
item osd.428 weight 1.000
item osd.429 weight 1.000
}
ctnr cld-osd36-56-ssd {
id -236 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.430 weight 1.000
item osd.431 weight 1.000
}
ctnr cld-osd37-56-sata {
id -137 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.432 weight 1.000
item osd.433 weight 1.000
item osd.434 weight 1.000
item osd.435 weight 1.000
item osd.436 weight 1.000
item osd.437 weight 1.000
item osd.438 weight 1.000
item osd.439 weight 1.000
item osd.440 weight 1.000
item osd.441 weight 1.000
}
ctnr cld-osd37-56-ssd {
id -237 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.442 weight 1.000
item osd.443 weight 1.000
}
ctnr cld-osd38-56-sata {
id -138 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.444 weight 1.000
item osd.445 weight 1.000
item osd.446 weight 1.000
item osd.447 weight 1.000
item osd.448 weight 1.000
item osd.449 weight 1.000
item osd.450 weight 1.000
item osd.451 weight 1.000
item osd.452 weight 1.000
item osd.453 weight 1.000
}
ctnr cld-osd38-56-ssd {
id -238 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.454 weight 1.000
item osd.455 weight 1.000
}
ctnr cld-osd39-56-sata {
id -139 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.456 weight 1.000
item osd.457 weight 1.000
item osd.458 weight 1.000
item osd.459 weight 1.000
item osd.460 weight 1.000
item osd.461 weight 1.000
item osd.462 weight 1.000
item osd.463 weight 1.000
item osd.464 weight 1.000
item osd.465 weight 1.000
}
ctnr cld-osd39-56-ssd {
id -239 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.466 weight 1.000
item osd.467 weight 1.000
}
ctnr cld-osd40-56-sata {
id -140 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.468 weight 1.000
item osd.469 weight 1.000
item osd.470 weight 1.000
item osd.471 weight 1.000
item osd.472 weight 1.000
item osd.473 weight 1.000
item osd.474 weight 1.000
item osd.475 weight 1.000
item osd.476 weight 1.000
item osd.477 weight 1.000
}
ctnr cld-osd40-56-ssd {
id -240 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.478 weight 1.000
item osd.479 weight 1.000
}
ctnr cld-osd41-56-sata {
id -141 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.480 weight 1.000
item osd.481 weight 1.000
item osd.482 weight 1.000
item osd.483 weight 1.000
item osd.484 weight 1.000
item osd.485 weight 1.000
item osd.486 weight 1.000
item osd.487 weight 1.000
item osd.488 weight 1.000
item osd.489 weight 1.000
}
ctnr cld-osd41-56-ssd {
id -241 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.490 weight 1.000
item osd.491 weight 1.000
}
ctnr cld-osd42-56-sata {
id -142 # do not change unnecessarily
# weight 10.000
alg straw2
hash 0 # rjenkins1
item osd.492 weight 1.000
item osd.493 weight 1.000
item osd.494 weight 1.000
item osd.495 weight 1.000
item osd.496 weight 1.000
item osd.497 weight 1.000
item osd.498 weight 1.000
item osd.499 weight 1.000
item osd.500 weight 1.000
item osd.501 weight 1.000
}
ctnr cld-osd42-56-ssd {
id -242 # do not change unnecessarily
# weight 2.000
alg straw2
hash 0 # rjenkins1
item osd.502 weight 1.000
item osd.503 weight 1.000
}
media site1-rack1-sata {
id -11 # do not change unnecessarily
# weight 70.000
alg straw2
hash 0 # rjenkins1
item cld-osd1-56-sata weight 10.000
item cld-osd2-56-sata weight 10.000
item cld-osd3-56-sata weight 10.000
item cld-osd4-56-sata weight 10.000
item cld-osd5-56-sata weight 10.000
item cld-osd6-56-sata weight 10.000
item cld-osd7-56-sata weight 10.000
}
media site1-rack2-sata {
id -12 # do not change unnecessarily
# weight 70.000
alg straw2
hash 0 # rjenkins1
item cld-osd8-56-sata weight 10.000
item cld-osd9-56-sata weight 10.000
item cld-osd10-56-sata weight 10.000
item cld-osd11-56-sata weight 10.000
item cld-osd12-56-sata weight 10.000
item cld-osd13-56-sata weight 10.000
item cld-osd14-56-sata weight 10.000
}
media site1-rack3-sata {
id -13 # do not change unnecessarily
# weight 70.000
alg straw2
hash 0 # rjenkins1
item cld-osd15-56-sata weight 10.000
item cld-osd16-56-sata weight 10.000
item cld-osd17-56-sata weight 10.000
item cld-osd18-56-sata weight 10.000
item cld-osd19-56-sata weight 10.000
item cld-osd20-56-sata weight 10.000
item cld-osd21-56-sata weight 10.000
}
media site1-rack4-sata {
id -14 # do not change unnecessarily
# weight 70.000
alg straw2
hash 0 # rjenkins1
item cld-osd22-56-sata weight 10.000
item cld-osd23-56-sata weight 10.000
item cld-osd24-56-sata weight 10.000
item cld-osd25-56-sata weight 10.000
item cld-osd26-56-sata weight 10.000
item cld-osd27-56-sata weight 10.000
item cld-osd28-56-sata weight 10.000
}
media site1-rack5-sata {
id -15 # do not change unnecessarily
# weight 70.000
alg straw2
hash 0 # rjenkins1
item cld-osd29-56-sata weight 10.000
item cld-osd30-56-sata weight 10.000
item cld-osd31-56-sata weight 10.000
item cld-osd32-56-sata weight 10.000
item cld-osd33-56-sata weight 10.000
item cld-osd34-56-sata weight 10.000
item cld-osd35-56-sata weight 10.000
}
media site1-rack6-sata {
id -16 # do not change unnecessarily
# weight 70.000
alg straw2
hash 0 # rjenkins1
item cld-osd36-56-sata weight 10.000
item cld-osd37-56-sata weight 10.000
item cld-osd38-56-sata weight 10.000
item cld-osd39-56-sata weight 10.000
item cld-osd40-56-sata weight 10.000
item cld-osd41-56-sata weight 10.000
item cld-osd42-56-sata weight 10.000
}
media site1-rack1-ssd {
id -21 # do not change unnecessarily
# weight 14.000
alg straw2
hash 0 # rjenkins1
item cld-osd1-56-ssd weight 2.000
item cld-osd2-56-ssd weight 2.000
item cld-osd3-56-ssd weight 2.000
item cld-osd4-56-ssd weight 2.000
item cld-osd5-56-ssd weight 2.000
item cld-osd6-56-ssd weight 2.000
item cld-osd7-56-ssd weight 2.000
item cld-osd8-56-ssd weight 2.000
item cld-osd9-56-ssd weight 2.000
item cld-osd10-56-ssd weight 2.000
item cld-osd11-56-ssd weight 2.000
item cld-osd12-56-ssd weight 2.000
item cld-osd13-56-ssd weight 2.000
item cld-osd14-56-ssd weight 2.000
}
media site1-rack2-ssd {
id -22 # do not change unnecessarily
# weight 14.000
alg straw2
hash 0 # rjenkins1
item cld-osd15-56-ssd weight 2.000
item cld-osd16-56-ssd weight 2.000
item cld-osd17-56-ssd weight 2.000
item cld-osd18-56-ssd weight 2.000
item cld-osd19-56-ssd weight 2.000
item cld-osd20-56-ssd weight 2.000
item cld-osd21-56-ssd weight 2.000
item cld-osd22-56-ssd weight 2.000
item cld-osd23-56-ssd weight 2.000
item cld-osd24-56-ssd weight 2.000
item cld-osd25-56-ssd weight 2.000
item cld-osd26-56-ssd weight 2.000
item cld-osd27-56-ssd weight 2.000
item cld-osd28-56-ssd weight 2.000
}
media site1-rack3-ssd {
id -23 # do not change unnecessarily
# weight 14.000
alg straw2
hash 0 # rjenkins1
item cld-osd29-56-ssd weight 2.000
item cld-osd30-56-ssd weight 2.000
item cld-osd31-56-ssd weight 2.000
item cld-osd32-56-ssd weight 2.000
item cld-osd33-56-ssd weight 2.000
item cld-osd34-56-ssd weight 2.000
item cld-osd35-56-ssd weight 2.000
item cld-osd36-56-ssd weight 2.000
item cld-osd37-56-ssd weight 2.000
item cld-osd38-56-ssd weight 2.000
item cld-osd39-56-ssd weight 2.000
item cld-osd40-56-ssd weight 2.000
item cld-osd41-56-ssd weight 2.000
item cld-osd42-56-ssd weight 2.000
}
mediagroup site1-sata {
id -5 # do not change unnecessarily
# weight 420.000
alg straw2
hash 0 # rjenkins1
item site1-rack1-sata weight 70.000
item site1-rack2-sata weight 70.000
item site1-rack3-sata weight 70.000
item site1-rack4-sata weight 70.000
item site1-rack5-sata weight 70.000
item site1-rack6-sata weight 70.000
}
mediagroup site1-ssd {
id -6 # do not change unnecessarily
# weight 84.000
alg straw2
hash 0 # rjenkins1
item site1-rack1-ssd weight 28.000
item site1-rack2-ssd weight 28.000
item site1-rack3-ssd weight 28.000
}
unit site1 {
id -2 # do not change unnecessarily
# weight 504.000
alg straw2
hash 0 # rjenkins1
item site1-sata weight 420.000
item site1-ssd weight 84.000
}
root default {
id -1 # do not change unnecessarily
# weight 504.000
alg straw2
hash 0 # rjenkins1
item site1 weight 504.000
}
# rules
rule site1_sata_erasure_ruleset {
ruleset 0
type erasure
min_size 3
max_size 6
step set_chooseleaf_tries 5
step set_choose_tries 100
step take site1-sata
step choose indep 0 type media
step chooseleaf indep 1 type ctnr
step emit
}
rule site1_ssd_replicated_ruleset {
ruleset 1
type replicated
min_size 1
max_size 10
step take site1-ssd
step choose firstn 0 type media
step chooseleaf firstn 1 type ctnr
step emit
}
# end crush map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment