Signed-off-by: Sage Weil <sage@redhat.com>
$ crushtool -c $TESTDIR/rules.txt --create-replicated-rule foo default host -o one > /dev/null
$ crushtool -d one
# begin crush map
-
+
# devices
device 0 osd.0 class ssd
device 1 osd.1 class ssd
device 3 osd.3 class hdd
device 4 osd.4 class hdd
device 5 osd.5 class hdd
-
+
# types
type 0 osd
type 1 host
type 2 root
-
+
# buckets
host foo {
\tid -3\t\t# do not change unnecessarily (esc)
\titem foo weight 3.000 (esc)
\titem bar weight 3.000 (esc)
}
-
+
# rules
rule data {
\truleset 0 (esc)
\tstep chooseleaf firstn 0 type host (esc)
\tstep emit (esc)
}
-
+
# end crush map
+
+
+
+
+
$ crushtool -c $TESTDIR/rules.txt --create-replicated-rule foo-ssd default host -o two --device-class ssd > /dev/null
$ crushtool -d two
# begin crush map
-
+
# devices
device 0 osd.0 class ssd
device 1 osd.1 class ssd
device 3 osd.3 class hdd
device 4 osd.4 class hdd
device 5 osd.5 class hdd
-
+
# types
type 0 osd
type 1 host
type 2 root
-
+
# buckets
host foo {
\tid -3\t\t# do not change unnecessarily (esc)
\titem foo weight 3.000 (esc)
\titem bar weight 3.000 (esc)
}
-
+
# rules
rule data {
\truleset 0 (esc)
\tstep chooseleaf firstn 0 type host (esc)
\tstep emit (esc)
}
-
+
# end crush map
+
+
+
+
+