1 $ crushtool -c $TESTDIR/rules.txt --create-replicated-rule foo default host -o one > /dev/null
2 WARNING: min_size is no longer supported, ignoring
3 WARNING: max_size is no longer supported, ignoring
8 device 0 osd.0 class ssd
9 device 1 osd.1 class ssd
10 device 2 osd.2 class ssd
11 device 3 osd.3 class hdd
12 device 4 osd.4 class hdd
13 device 5 osd.5 class hdd
22 \tid -3\t\t# do not change unnecessarily (esc)
23 \tid -4 class ssd\t\t# do not change unnecessarily (esc)
24 \tid -7 class hdd\t\t# do not change unnecessarily (esc)
25 \t# weight 3.00000 (esc)
27 \thash 0\t# rjenkins1 (esc)
28 \titem osd.0 weight 1.00000 (esc)
29 \titem osd.1 weight 1.00000 (esc)
30 \titem osd.2 weight 1.00000 (esc)
33 \tid -2\t\t# do not change unnecessarily (esc)
34 \tid -5 class ssd\t\t# do not change unnecessarily (esc)
35 \tid -8 class hdd\t\t# do not change unnecessarily (esc)
36 \t# weight 3.00000 (esc)
38 \thash 0\t# rjenkins1 (esc)
39 \titem osd.3 weight 1.00000 (esc)
40 \titem osd.4 weight 1.00000 (esc)
41 \titem osd.5 weight 1.00000 (esc)
44 \tid -1\t\t# do not change unnecessarily (esc)
45 \tid -6 class ssd\t\t# do not change unnecessarily (esc)
46 \tid -9 class hdd\t\t# do not change unnecessarily (esc)
47 \t# weight 6.00000 (esc)
49 \thash 0\t# rjenkins1 (esc)
50 \titem foo weight 3.00000 (esc)
51 \titem bar weight 3.00000 (esc)
57 \ttype replicated (esc)
58 \tstep take default (esc)
59 \tstep chooseleaf firstn 0 type host (esc)
64 \ttype replicated (esc)
65 \tstep take default (esc)
66 \tstep chooseleaf firstn 0 type host (esc)
81 $ crushtool -c $TESTDIR/rules.txt --create-replicated-rule foo-ssd default host -o two --device-class ssd > /dev/null
82 WARNING: min_size is no longer supported, ignoring
83 WARNING: max_size is no longer supported, ignoring
88 device 0 osd.0 class ssd
89 device 1 osd.1 class ssd
90 device 2 osd.2 class ssd
91 device 3 osd.3 class hdd
92 device 4 osd.4 class hdd
93 device 5 osd.5 class hdd
102 \tid -3\t\t# do not change unnecessarily (esc)
103 \tid -4 class ssd\t\t# do not change unnecessarily (esc)
104 \tid -7 class hdd\t\t# do not change unnecessarily (esc)
105 \t# weight 3.00000 (esc)
107 \thash 0\t# rjenkins1 (esc)
108 \titem osd.0 weight 1.00000 (esc)
109 \titem osd.1 weight 1.00000 (esc)
110 \titem osd.2 weight 1.00000 (esc)
113 \tid -2\t\t# do not change unnecessarily (esc)
114 \tid -5 class ssd\t\t# do not change unnecessarily (esc)
115 \tid -8 class hdd\t\t# do not change unnecessarily (esc)
116 \t# weight 3.00000 (esc)
118 \thash 0\t# rjenkins1 (esc)
119 \titem osd.3 weight 1.00000 (esc)
120 \titem osd.4 weight 1.00000 (esc)
121 \titem osd.5 weight 1.00000 (esc)
124 \tid -1\t\t# do not change unnecessarily (esc)
125 \tid -6 class ssd\t\t# do not change unnecessarily (esc)
126 \tid -9 class hdd\t\t# do not change unnecessarily (esc)
127 \t# weight 6.00000 (esc)
129 \thash 0\t# rjenkins1 (esc)
130 \titem foo weight 3.00000 (esc)
131 \titem bar weight 3.00000 (esc)
137 \ttype replicated (esc)
138 \tstep take default (esc)
139 \tstep chooseleaf firstn 0 type host (esc)
144 \ttype replicated (esc)
145 \tstep take default class ssd (esc)
146 \tstep chooseleaf firstn 0 type host (esc)