Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / cli / crushtool / rules.txt
1 # begin crush map
2
3 # devices
4 device 0 osd.0 class ssd
5 device 1 osd.1 class ssd
6 device 2 osd.2 class ssd
7 device 3 osd.3 class hdd
8 device 4 osd.4 class hdd
9 device 5 osd.5 class hdd
10
11 # types
12 type 0 osd
13 type 1 host
14 type 2 root
15
16 # buckets
17 host foo {
18      id -3
19      alg straw2
20      hash 0
21      item osd.0 weight 1.0
22      item osd.1 weight 1.0
23      item osd.2 weight 1.0
24 }
25
26 host bar {
27      id -2
28      alg straw2
29      hash 0
30      item osd.3 weight 1.0
31      item osd.4 weight 1.0
32      item osd.5 weight 1.0
33 }
34
35 root default {
36      id -1
37      alg straw2
38      hash 0
39      item foo weight 3.0
40      item bar weight 3.0
41 }
42
43 # rules
44 rule data {
45         ruleset 0
46         type replicated
47         min_size 1
48         max_size 10
49         step take default
50         step chooseleaf firstn 0 type host
51         step emit
52 }
53
54 # end crush map