# display the crush tree by default
#
$ crushtool --outfn "$map" --build --num_osds 5 node straw 2 rack straw 1 root straw 0
- .* (re)
- ID\tWEIGHT\tTYPE NAME (esc)
- -7\t5.00000\troot root (esc)
- -4\t2.00000\t\track rack0 (esc)
- -1\t2.00000\t\t\tnode node0 (esc)
- 0\t1.00000\t\t\t\tosd.0 (esc)
- 1\t1.00000\t\t\t\tosd.1 (esc)
- -5\t2.00000\t\track rack1 (esc)
- -2\t2.00000\t\t\tnode node1 (esc)
- 2\t1.00000\t\t\t\tosd.2 (esc)
- 3\t1.00000\t\t\t\tosd.3 (esc)
- -6\t1.00000\t\track rack2 (esc)
- -3\t1.00000\t\t\tnode node2 (esc)
- 4\t1.00000\t\t\t\tosd.4 (esc)
-
#
# silence all messages with --debug-crush 0
# display a warning if there is more than one root
#
$ crushtool --outfn "$map" --build --num_osds 5 node straw 2 rack straw 1
- .* (re)
- ID\tWEIGHT\tTYPE NAME (esc)
- -6\t1.00000\track rack2 (esc)
- -3\t1.00000\t\tnode node2 (esc)
- 4\t1.00000\t\t\tosd.4 (esc)
- -5\t2.00000\track rack1 (esc)
- -2\t2.00000\t\tnode node1 (esc)
- 2\t1.00000\t\t\tosd.2 (esc)
- 3\t1.00000\t\t\tosd.3 (esc)
- -4\t2.00000\track rack0 (esc)
- -1\t2.00000\t\tnode node0 (esc)
- 0\t1.00000\t\t\tosd.0 (esc)
- 1\t1.00000\t\t\tosd.1 (esc)
-
.* The crush rulesets will use the root rack0 (re)
and ignore the others.
There are 3 roots, they can be