Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / cli / crushtool / need_tree_order.crush
1 # begin crush map
2
3 # devices
4 device 0 device0
5 device 1 device1
6 device 2 device2
7
8 # types
9 type 0 device
10 type 1 host
11 type 2 rack
12 type 3 root
13
14 # buckets
15 host host0 {
16         id -1           # do not change unnecessarily
17         # weight 1.000
18         alg straw
19         hash 0  # rjenkins1
20         item device0 weight 1.000
21 }
22 host host1 {
23         id -2           # do not change unnecessarily
24         # weight 1.000
25         alg straw
26         hash 0  # rjenkins1
27         item device1 weight 1.000
28 }
29 host host2 {
30         id -5           # do not change unnecessarily
31         # weight 1.000
32         alg straw
33         hash 0  # rjenkins1
34         item device2 weight 1.000
35 }
36 rack rack0 {
37         id -3           # do not change unnecessarily
38         # weight 3.000
39         alg straw
40         hash 0  # rjenkins1
41         item host0 weight 1.000
42         item host1 weight 1.000
43         item host2 weight 1.000
44 }
45 root root {
46         id -4           # do not change unnecessarily
47         # weight 4.000
48         alg straw
49         hash 0  # rjenkins1
50         item rack0 weight 4.000
51 }
52
53 # rules
54 rule data {
55         id 1
56         type replicated
57         min_size 2
58         max_size 2
59         step take root
60         step chooseleaf firstn 0 type rack
61         step emit
62 }
63
64 # end crush map