I built a new crush map using crushtool with the following settings:

crushtool --outfn testcrush --build --num-osds 10 host straw 2 rack straw 2 
default straw 0


This results in the following crushmap, to which I added a custom replication 
rule "myrtle".


When I run crushtool to test my new crush map and rule I anticipate output 
similar to this:


crushtool -i crushmap --test --show-statistics --rule 1 --min-x 1 --max-x 2 
--num-rep 2
rule 1 (myrule), x = 1..2, numrep = 2..2
CRUSH rule 1 x 1 [0,2]
CRUSH rule 1 x 2 [7,4]
rule 1 (myrule) num_rep 2 result size == 2:     2/2

However the output I am getting is the following:


rule 1 (myrule), x = 1..2, numrep = 2..2

rule 1 (myrule) num_rep 2 result size == 2: 2/2


I was expecting to see the placement groups for my test rule however I see only 
the summary in my output. Am I missing crushtool parameters or environment 
configuration settings?


Any guidance would be greatly appreciated.


Thanks,

Fred Merlo


# begin crush map

tunable choose_local_tries 0

tunable choose_local_fallback_tries 0

tunable choose_total_tries 50

tunable chooseleaf_descend_once 1

tunable straw_calc_version 1


# devices

device 0 device0

device 1 device1

device 2 device2

device 3 device3

device 4 device4

device 5 device5

device 6 device6

device 7 device7

device 8 device8

device 9 device9


# types

type 0 device

type 1 host

type 2 rack

type 3 default


# buckets

host host0 {

id -1 # do not change unnecessarily

# weight 2.000

alg straw

hash 0 # rjenkins1

item device0 weight 1.000

item device1 weight 1.000

}

host host1 {

id -2 # do not change unnecessarily

# weight 2.000

alg straw

hash 0 # rjenkins1

item device2 weight 1.000

item device3 weight 1.000

}

host host2 {

id -3 # do not change unnecessarily

# weight 2.000

alg straw

hash 0 # rjenkins1

item device4 weight 1.000

item device5 weight 1.000

}

host host3 {

id -4 # do not change unnecessarily

# weight 2.000

alg straw

hash 0 # rjenkins1

item device6 weight 1.000

item device7 weight 1.000

}

host host4 {

id -5 # do not change unnecessarily

# weight 2.000

alg straw

hash 0 # rjenkins1

item device8 weight 1.000

item device9 weight 1.000

}

rack rack0 {

id -6 # do not change unnecessarily

# weight 4.000

alg straw

hash 0 # rjenkins1

item host0 weight 2.000

item host1 weight 2.000

}

rack rack1 {

id -7 # do not change unnecessarily

# weight 4.000

alg straw

hash 0 # rjenkins1

item host2 weight 2.000

item host3 weight 2.000

}

rack rack2 {

id -8 # do not change unnecessarily

# weight 2.000

alg straw

hash 0 # rjenkins1

item host4 weight 2.000

}

default default {

id -9 # do not change unnecessarily

# weight 10.000

alg straw

hash 0 # rjenkins1

item rack0 weight 4.000

item rack1 weight 4.000

item rack2 weight 2.000

}


# rules

rule replicated_ruleset {

ruleset 0

type replicated

min_size 1

max_size 10

step take default

step chooseleaf firstn 0 type host

step emit

}


rule myrule {

        ruleset 1

        type replicated

        min_size 1

        max_size 10

        step take default

        step choose firstn 2 type rack

        step chooseleaf firstn 2 type host

        step emit

}

# end crush map

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to