Advertisement
Guest User

Untitled

a guest
Sep 11th, 2012
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 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 root
  14.  
  15. # buckets
  16. host nfs01 {
  17. id -2 # do not change unnecessarily
  18. # weight 1.000
  19. alg straw
  20. hash 0 # rjenkins1
  21. item osd.0 weight 1.000
  22. }
  23. host ceph02 {
  24. id -4 # do not change unnecessarily
  25. # weight 1.000
  26. alg straw
  27. hash 0 # rjenkins1
  28. item osd.1 weight 1.000
  29. }
  30. host ceph03 {
  31. id -5 # do not change unnecessarily
  32. # weight 1.000
  33. alg straw
  34. hash 0 # rjenkins1
  35. item osd.2 weight 1.000
  36. }
  37. host mgmt01 {
  38. id -6 # do not change unnecessarily
  39. # weight 1.000
  40. alg straw
  41. hash 0 # rjenkins1
  42. item osd.3 weight 1.000
  43. }
  44. host ceph01 {
  45. id -7 # do not change unnecessarily
  46. # weight 0.000
  47. alg straw
  48. hash 0 # rjenkins1
  49. }
  50. host control01 {
  51. id -8 # do not change unnecessarily
  52. # weight 0.000
  53. alg straw
  54. hash 0 # rjenkins1
  55. }
  56. host compute01 {
  57. id -9 # do not change unnecessarily
  58. # weight 0.000
  59. alg straw
  60. hash 0 # rjenkins1
  61. }
  62. rack racksecondfloor {
  63. id -3 # do not change unnecessarily
  64. # weight 4.000
  65. alg straw
  66. hash 0 # rjenkins1
  67. item nfs01 weight 1.000
  68. item ceph02 weight 1.000
  69. item ceph03 weight 1.000
  70. item mgmt01 weight 1.000
  71. item ceph01 weight 0.000
  72. item control01 weight 0.000
  73. item compute01 weight 0.000
  74. }
  75. root root {
  76. id -12 # do not change unnecessarily
  77. # weight 4.000
  78. alg straw
  79. hash 0 # rjenkins1
  80. item racksecondfloor weight 4.000
  81. }
  82. # rules
  83.  
  84. rule myrule {
  85. ruleset 2
  86. type replicated
  87. min_size 2
  88. max_size 2
  89. step take root
  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