Advertisement
Guest User

Untitled

a guest
May 18th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 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 osd.6
  11. device 7 osd.7
  12. device 8 osd.8
  13. device 9 osd.9
  14.  
  15. # types
  16. type 0 osd
  17. type 1 host
  18. type 2 rack
  19. type 3 row
  20. type 4 room
  21. type 5 datacenter
  22. type 6 pool
  23.  
  24. # buckets
  25. host localhost {
  26. id -2 # do not change unnecessarily
  27. # weight 10.000
  28. alg straw
  29. hash 0 # rjenkins1
  30. item osd.0 weight 1.000
  31. item osd.1 weight 1.000
  32. item osd.2 weight 1.000
  33. item osd.3 weight 1.000
  34. item osd.4 weight 1.000
  35. item osd.5 weight 1.000
  36. item osd.6 weight 1.000
  37. item osd.7 weight 1.000
  38. item osd.8 weight 1.000
  39. item osd.9 weight 1.000
  40. }
  41. rack localrack {
  42. id -3 # do not change unnecessarily
  43. # weight 10.000
  44. alg straw
  45. hash 0 # rjenkins1
  46. item localhost weight 10.000
  47. }
  48. pool default {
  49. id -1 # do not change unnecessarily
  50. # weight 10.000
  51. alg straw
  52. hash 0 # rjenkins1
  53. item localrack weight 10.000
  54. }
  55.  
  56. # rules
  57. rule data {
  58. ruleset 0
  59. type replicated
  60. min_size 1
  61. max_size 10
  62. step take default
  63. step choose firstn 0 type osd
  64. step emit
  65. }
  66. rule metadata {
  67. ruleset 1
  68. type replicated
  69. min_size 1
  70. max_size 10
  71. step take default
  72. step choose firstn 0 type osd
  73. step emit
  74. }
  75. rule rbd {
  76. ruleset 2
  77. type replicated
  78. min_size 1
  79. max_size 10
  80. step take default
  81. step choose firstn 0 type osd
  82. step emit
  83. }
  84.  
  85. # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement