Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- My replication level is 3. I have 3 enclosures of servers. I am trying to make it so that I have one replication per enclosure.
- # begin OLD crush map
- # devices
- device 0 osd.0
- device 1 osd.1
- device 2 osd.2
- device 3 osd.3
- device 4 osd.4
- device 5 osd.5
- device 6 osd.6
- device 7 osd.7
- device 8 osd.8
- device 9 osd.9
- device 10 osd.10
- device 11 osd.11
- device 12 osd.12
- device 13 osd.13
- device 14 osd.14
- device 15 osd.15
- device 16 osd.16
- device 17 osd.17
- device 18 osd.18
- device 19 osd.19
- # types
- type 0 osd
- type 1 host
- type 2 rack
- type 3 row
- type 4 room
- type 5 datacenter
- type 6 root
- # buckets
- host ss140 {
- id -2 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.0 weight 3.000
- item osd.1 weight 3.000
- }
- host ss145 {
- id -4 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.10 weight 3.000
- item osd.11 weight 3.000
- }
- host ss146 {
- id -5 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.12 weight 3.000
- item osd.13 weight 3.000
- }
- host ss147 {
- id -6 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.14 weight 3.000
- item osd.15 weight 3.000
- }
- host ss153 {
- id -7 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.16 weight 3.000
- item osd.17 weight 3.000
- }
- host ss154 {
- id -8 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.18 weight 3.000
- item osd.19 weight 3.000
- }
- host ss141 {
- id -9 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.2 weight 3.000
- item osd.3 weight 3.000
- }
- host ss142 {
- id -10 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.4 weight 3.000
- item osd.5 weight 3.000
- }
- host ss143 {
- id -11 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.6 weight 3.000
- item osd.7 weight 3.000
- }
- host ss144 {
- id -12 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.8 weight 3.000
- item osd.9 weight 3.000
- }
- rack unknownrack {
- id -3 # do not change unnecessarily
- # weight 60.000
- alg straw
- hash 0 # rjenkins1
- item ss140 weight 6.000
- item ss145 weight 6.000
- item ss146 weight 6.000
- item ss147 weight 6.000
- item ss153 weight 6.000
- item ss154 weight 6.000
- item ss141 weight 6.000
- item ss142 weight 6.000
- item ss143 weight 6.000
- item ss144 weight 6.000
- }
- root default {
- id -1 # do not change unnecessarily
- # weight 60.000
- alg straw
- hash 0 # rjenkins1
- item unknownrack weight 60.000
- }
- # rules
- rule data {
- ruleset 0
- type replicated
- min_size 1
- max_size 10
- step take default
- step chooseleaf firstn 0 type host
- step emit
- }
- rule metadata {
- ruleset 1
- type replicated
- min_size 1
- max_size 10
- step take default
- step chooseleaf firstn 0 type host
- step emit
- }
- rule rbd {
- ruleset 2
- type replicated
- min_size 1
- max_size 10
- step take default
- step chooseleaf firstn 0 type host
- step emit
- }
- # end crush map
- # begin NEW crush map
- # devices
- device 0 osd.0
- device 1 osd.1
- device 2 osd.2
- device 3 osd.3
- device 4 osd.4
- device 5 osd.5
- device 6 osd.6
- device 7 osd.7
- device 8 osd.8
- device 9 osd.9
- device 10 osd.10
- device 11 osd.11
- device 12 osd.12
- device 13 osd.13
- device 14 osd.14
- device 15 osd.15
- device 16 osd.16
- device 17 osd.17
- device 18 osd.18
- device 19 osd.19
- # types
- type 0 osd
- type 1 host
- type 2 enclosure
- type 3 rack
- type 4 room
- type 5 datacenter
- type 6 root
- # buckets
- host ss140 {
- id -2 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.0 weight 3.000
- item osd.1 weight 3.000
- }
- host ss145 {
- id -4 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.10 weight 3.000
- item osd.11 weight 3.000
- }
- host ss146 {
- id -5 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.12 weight 3.000
- item osd.13 weight 3.000
- }
- host ss147 {
- id -6 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.14 weight 3.000
- item osd.15 weight 3.000
- }
- host ss153 {
- id -7 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.16 weight 3.000
- item osd.17 weight 3.000
- }
- host ss154 {
- id -8 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.18 weight 3.000
- item osd.19 weight 3.000
- }
- host ss141 {
- id -9 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.2 weight 3.000
- item osd.3 weight 3.000
- }
- host ss142 {
- id -10 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.4 weight 3.000
- item osd.5 weight 3.000
- }
- host ss143 {
- id -11 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.6 weight 3.000
- item osd.7 weight 3.000
- }
- host ss144 {
- id -12 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item osd.8 weight 3.000
- item osd.9 weight 3.000
- }
- enclosure case1 {
- id -13 # do not change unnecessarily
- # weight 24.000
- alg straw
- hash 0 # rjenkins1
- item ss140 weight 6.000
- item ss141 weight 6.000
- item ss142 weight 6.000
- item ss143 weight 6.000
- }
- enclosure case2 {
- id -14 # do not change unnecessarily
- # weight 24.000
- alg straw
- hash 0 # rjenkins1
- item ss144 weight 6.000
- item ss145 weight 6.000
- item ss146 weight 6.000
- item ss147 weight 6.000
- }
- enclosure case3 {
- id -15 # do not change unnecessarily
- # weight 6.000
- alg straw
- hash 0 # rjenkins1
- item ss153 weight 6.000
- item ss154 weight 6.000
- }
- rack cab102 {
- id -3 # do not change unnecessarily
- # weight 48.000
- alg straw
- hash 0 # rjenkins1
- item case1 weight 24.00
- item case2 weight 24.00
- }
- rack cab206 {
- id -16 # do not change unnecessarily
- # weight 12.000
- alg straw
- hash 0 # rjenkins1
- item case3 weight 12.00
- }
- room cage8110 {
- id -17 # do not change unnecessarily
- # weight 60.000
- alg straw
- hash 0 # rjenkins1
- item cab102 weight 48.000
- item cab206 weight 12.000
- }
- root ny4 {
- id -18 # do not change unnecessarily
- # weight 60.000
- alg straw
- item cage8110 weight 60.000
- }
- # rules
- rule data {
- ruleset 0
- type replicated
- min_size 1
- max_size 10
- step take ny4
- step chooseleaf firstn 0 type enclosure
- step emit
- }
- rule metadata {
- ruleset 1
- type replicated
- min_size 1
- max_size 10
- step take ny4
- step chooseleaf firstn 0 type enclosure
- step emit
- }
- rule rbd {
- ruleset 2
- type replicated
- min_size 1
- max_size 10
- step take ny4
- step chooseleaf firstn 0 type enclosure
- step emit
- }
- # end crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement