Advertisement
Guest User

Untitled

a guest
Jan 28th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. root@sto0:~# cat decompiled.cm
  2. # begin crush map
  3.  
  4. # devices
  5. device 0 osd.0
  6. device 1 osd.1
  7. device 2 osd.2
  8. device 3 osd.3
  9. device 4 osd.4
  10. device 5 osd.5
  11. device 6 osd.6
  12.  
  13. # types
  14. type 0 osd
  15. type 1 host
  16. type 2 rack
  17. type 3 row
  18. type 4 room
  19. type 5 datacenter
  20. type 6 root
  21.  
  22. # buckets
  23. host sto0 {
  24. id -2 # do not change unnecessarily
  25. # weight 4.000
  26. alg straw
  27. hash 0 # rjenkins1
  28. item osd.0 weight 1.000
  29. item osd.1 weight 1.000
  30. item osd.2 weight 1.000
  31. item osd.3 weight 1.000
  32. }
  33. host sto1 {
  34. id -4 # do not change unnecessarily
  35. # weight 2.000
  36. alg straw
  37. hash 0 # rjenkins1
  38. item osd.4 weight 1.000
  39. item osd.5 weight 1.000
  40. }
  41. host os0 {
  42. id -5 # do not change unnecessarily
  43. # weight 2.000
  44. alg straw
  45. hash 0 # rjenkins1
  46. item osd.6 weight 2.000
  47. }
  48. rack unknownrack {
  49. id -3 # do not change unnecessarily
  50. # weight 8.000
  51. alg straw
  52. hash 0 # rjenkins1
  53. item sto0 weight 4.000
  54. item sto1 weight 2.000
  55. item os0 weight 2.000
  56. }
  57. root default {
  58. id -1 # do not change unnecessarily
  59. # weight 8.000
  60. alg straw
  61. hash 0 # rjenkins1
  62. item unknownrack weight 8.000
  63. }
  64.  
  65. # rules
  66. rule data {
  67. ruleset 0
  68. type replicated
  69. min_size 1
  70. max_size 10
  71. step take default
  72. step chooseleaf firstn 0 type host
  73. step emit
  74. }
  75. rule metadata {
  76. ruleset 1
  77. type replicated
  78. min_size 1
  79. max_size 10
  80. step take default
  81. step chooseleaf firstn 0 type host
  82. step emit
  83. }
  84. rule rbd {
  85. ruleset 2
  86. type replicated
  87. min_size 1
  88. max_size 10
  89. step take default
  90. step chooseleaf firstn 0 type host
  91. step emit
  92. }
  93.  
  94. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement