Advertisement
Guest User

Untitled

a guest
Jan 24th, 2011
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. [root@test11 ~]# cat /etc/ceph/crushmap.txt
  2. # begin crush map
  3.  
  4. # devices
  5. device 0 device0
  6. device 1 device1
  7. device 2 device2
  8. device 3 device3
  9. device 4 device4
  10. device 5 device5
  11. device 6 device6
  12. device 7 device7
  13. device 8 device8
  14. device 9 device9
  15. device 10 device10
  16. device 11 device11
  17.  
  18. # types
  19. type 0 device
  20. type 1 host
  21. type 2 rack
  22.  
  23. # buckets
  24. host host0 {
  25. id -1 # do not change unnecessarily
  26. alg straw
  27. hash 0 # rjenkins1
  28. item device0 weight 1.000
  29. item device1 weight 1.000
  30. item device2 weight 1.000
  31. item device3 weight 1.000
  32. }
  33. host host1 {
  34. id -2 # do not change unnecessarily
  35. alg straw
  36. hash 0 # rjenkins1
  37. item device4 weight 1.000
  38. item device5 weight 1.000
  39. item device6 weight 1.000
  40. item device7 weight 1.000
  41. }
  42. host host2 {
  43. id -3 # do not change unnecessarily
  44. alg straw
  45. hash 0 # rjenkins1
  46. item device8 weight 1.000
  47. item device9 weight 1.000
  48. item device10 weight 1.000
  49. item device11 weight 1.000
  50. }
  51. rack rack {
  52. id -4 # do not change unnecessarily
  53. alg straw
  54. hash 0 # rjenkins1
  55. item host0 weight 4.000
  56. item host1 weight 4.000
  57. item host2 weight 4.000
  58. }
  59.  
  60. # rules
  61. rule data {
  62. ruleset 0
  63. type replicated
  64. min_size 1
  65. max_size 12
  66. step take rack
  67. step choose firstn 0 type device
  68. step emit
  69. }
  70. rule metadata {
  71. ruleset 1
  72. type replicated
  73. min_size 1
  74. max_size 12
  75. step take rack
  76. step choose firstn 0 type device
  77. step emit
  78. }
  79. rule casdata {
  80. ruleset 2
  81. type replicated
  82. min_size 1
  83. max_size 12
  84. step take rack
  85. step choose firstn 0 type device
  86. step emit
  87. }
  88. rule rbd {
  89. ruleset 3
  90. type replicated
  91. min_size 1
  92. max_size 12
  93. step take rack
  94. step choose firstn 0 type device
  95. step emit
  96. }
  97. [root@test11 ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement