Advertisement
Guest User

Untitled

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