Project

General

Profile

Bug #2210 » crush.txt

soft crack, 03/25/2012 08:39 PM

 
# begin crush map

# devices
device 0 osd.0
device 1 osd.1

# types
type 0 osd
type 1 host
type 2 rack
type 3 pool

# buckets
host balance01 {
id -2 # do not change unnecessarily
# weight 1.000
alg straw
hash 0 # rjenkins1
item osd.0 weight 1.000
}
host server03 {
id -4 # do not change unnecessarily
# weight 1.000
alg straw
hash 0 # rjenkins1
item osd.1 weight 1.000
}
rack unknownrack {
id -3 # do not change unnecessarily
# weight 1.000
alg straw
hash 0 # rjenkins1
item balance01 weight 1.000
item server03 weight 1.000
}
pool default {
id -1 # do not change unnecessarily
# weight 1.000
alg straw
hash 0 # rjenkins1
item unknownrack weight 1.000
}

# rules
rule data {
ruleset 0
type replicated
min_size 1
max_size 10
step take default
step choose firstn 0 type osd
step emit
}
rule metadata {
ruleset 1
type replicated
min_size 1
max_size 10
step take default
step choose firstn 0 type osd
step emit
}
rule rbd {
ruleset 2
type replicated
min_size 1
max_size 10
step take default
step choose firstn 0 type osd
step emit
}

# end crush map
(2-2/2)