Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / crush / sample.txt
1
2 # devices
3 device 1 osd001
4 device 2 osd002
5 device 3 osd003 down   # same as offload 1.0
6 device 4 osd004 offload 0       # 0.0 -> normal, 1.0 -> failed
7 device 5 osd005 offload 0.1
8 device 6 osd006 offload 0.1
9
10 # hierarchy
11 type 0 osd   # 'device' is actually the default for 0
12 type 2 cab
13 type 3 row
14 type 10 pool
15
16 cab root {
17        id -1         # optional
18        alg tree     # required
19        item osd001
20        item osd002 weight 600 pos 1
21        item osd003 weight 600 pos 0
22        item osd004 weight 600 pos 3
23        item osd005 weight 600 pos 4
24 }
25
26 # rules
27 rule normal {
28      # these are required.
29      pool 0
30      type replicated 
31      min_size 1
32      max_size 4
33      # need 1 or more of these.
34      step take root
35      step choose firstn 0 type osd
36      step emit
37 }
38
39 rule {
40      pool 1
41      type erasure
42      min_size 3
43      max_size 6
44      step take root
45      step choose indep 0 type osd
46      step emit
47 }