1 $ crushtool -i "$TESTDIR/simple.template" --add-bucket host0 host --loc cluster cluster0 -o map0 > /dev/null
2 $ crushtool -i map0 --add-bucket host1 host -o map1 > /dev/null
3 $ crushtool -i map1 --move host1 --loc cluster cluster0 -o map2 > /dev/null
4 $ crushtool -i map2 --add-item 1 1.0 device1 --loc cluster cluster0 -o map3 > /dev/null
5 $ crushtool -i map3 --move device1 --loc host host0 -o map4 > /dev/null
19 \tid -2\t\t# do not change unnecessarily (esc)
20 \t# weight 1.00000 (esc)
22 \thash 0\t# rjenkins1 (esc)
23 \titem device1 weight 1.00000 (esc)
26 \tid -3\t\t# do not change unnecessarily (esc)
27 \t# weight 0.00000 (esc)
29 \thash 0\t# rjenkins1 (esc)
32 \tid -1\t\t# do not change unnecessarily (esc)
33 \t# weight 1.00000 (esc)
35 \thash 0\t# rjenkins1 (esc)
36 \titem host0 weight 1.00000 (esc)
37 \titem host1 weight 0.00000 (esc)
43 \ttype replicated (esc)
44 \tstep take cluster0 (esc)
45 \tstep chooseleaf firstn 0 type host (esc)
50 \ttype replicated (esc)
51 \tstep take cluster0 (esc)
52 \tstep chooseleaf firstn 0 type host (esc)
57 \ttype replicated (esc)
58 \tstep take cluster0 (esc)
59 \tstep chooseleaf firstn 0 type host (esc)