Advertisement
Guest User

Untitled

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