Advertisement
Guest User

Untitled

a guest
Jan 28th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. # begin crush map
  2.  
  3. # devices
  4. device 0 osd.0
  5. device 1 osd.1
  6. device 2 osd.2
  7. device 3 osd.3
  8. device 4 osd.4
  9. device 5 osd.5
  10. device 6 device6
  11. device 7 device7
  12. device 8 device8
  13. device 9 device9
  14. device 10 device10
  15. device 11 device11
  16. device 12 device12
  17. device 13 device13
  18. device 14 device14
  19. device 15 device15
  20. device 16 device16
  21. device 17 device17
  22. device 18 device18
  23. device 19 device19
  24. device 20 osd.20
  25. device 21 osd.21
  26. device 22 osd.22
  27. device 23 osd.23
  28. device 24 osd.24
  29. device 25 osd.25
  30. # types
  31. type 0 osd
  32. type 1 host
  33. type 2 rack
  34. type 3 row
  35. type 4 room
  36. type 5 datacenter
  37. type 6 root
  38.  
  39. # buckets
  40. host host01 {
  41. id -2 # do not change unnecessarily
  42. # weight 6.000
  43. alg straw
  44. hash 0 # rjenkins1
  45. item osd.0 weight 1.000
  46. item osd.1 weight 1.000
  47. item osd.2 weight 1.000
  48. item osd.3 weight 1.000
  49. item osd.4 weight 1.000
  50. item osd.5 weight 1.000
  51. }
  52. host host02 {
  53. id -4 # do not change unnecessarily
  54. # weight 6.000
  55. alg straw
  56. hash 0 # rjenkins1
  57. item osd.20 weight 1.000
  58. item osd.21 weight 1.000
  59. item osd.22 weight 1.000
  60. item osd.23 weight 1.000
  61. item osd.24 weight 1.000
  62. item osd.25 weight 1.000
  63. }
  64. rack unknownrack {
  65. id -3 # do not change unnecessarily
  66. # weight 12.000
  67. alg straw
  68. hash 0 # rjenkins1
  69. item host01 weight 6.000
  70. item host02 weight 6.000
  71. }
  72. root default {
  73. id -1 # do not change unnecessarily
  74. # weight 12.000
  75. alg straw
  76. hash 0 # rjenkins1
  77. item unknownrack weight 12.000
  78. }
  79.  
  80. # rules
  81. rule data {
  82. ruleset 0
  83. type replicated
  84. min_size 1
  85. max_size 10
  86. step take default
  87. step chooseleaf firstn 0 type host
  88. step emit
  89. }
  90. rule metadata {
  91. ruleset 1
  92. type replicated
  93. min_size 1
  94. max_size 10
  95. step take default
  96. step chooseleaf firstn 0 type host
  97. step emit
  98. }
  99. rule rbd {
  100. ruleset 2
  101. type replicated
  102. min_size 1
  103. max_size 10
  104. step take default
  105. step chooseleaf firstn 0 type host
  106. step emit
  107. }
  108.  
  109. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement