1 $ osdmaptool --createsimple 3 myosdmap --with-default-pool
2 osdmaptool: osdmap file 'myosdmap'
3 osdmaptool: writing epoch 1 to myosdmap
5 $ osdmaptool --export-crush oc myosdmap
6 osdmaptool: osdmap file 'myosdmap'
7 osdmaptool: exported crush map to oc
8 $ crushtool --decompile oc
10 tunable choose_local_tries 0
11 tunable choose_local_fallback_tries 0
12 tunable choose_total_tries 50
13 tunable chooseleaf_descend_once 1
14 tunable chooseleaf_vary_r 1
15 tunable chooseleaf_stable 1
16 tunable straw_calc_version 1
17 tunable allowed_bucket_algs 54
39 \tid -2\t\t# do not change unnecessarily (esc)
40 \t# weight 3.000 (esc)
42 \thash 0\t# rjenkins1 (esc)
43 \titem osd.0 weight 1.000 (esc)
44 \titem osd.1 weight 1.000 (esc)
45 \titem osd.2 weight 1.000 (esc)
48 \tid -3\t\t# do not change unnecessarily (esc)
49 \t# weight 3.000 (esc)
51 \thash 0\t# rjenkins1 (esc)
52 \titem localhost weight 3.000 (esc)
55 \tid -1\t\t# do not change unnecessarily (esc)
56 \t# weight 3.000 (esc)
58 \thash 0\t# rjenkins1 (esc)
59 \titem localrack weight 3.000 (esc)
63 rule replicated_rule {
65 \ttype replicated (esc)
68 \tstep take default (esc)
69 \tstep chooseleaf firstn 0 type host (esc)
74 $ osdmaptool --print myosdmap
75 osdmaptool: osdmap file 'myosdmap'
77 fsid [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} (re)
78 created \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ (re)
79 modified \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ (re)
85 min_compat_client jewel
87 pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 last_change 0 flags hashpspool stripe_width 0 application rbd
91 $ osdmaptool --clobber --createsimple 3 --with-default-pool myosdmap
92 osdmaptool: osdmap file 'myosdmap'
93 osdmaptool: writing epoch 1 to myosdmap
94 $ osdmaptool --print myosdmap | grep 'pool 1'
95 osdmaptool: osdmap file 'myosdmap'
96 pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 last_change 0 flags hashpspool stripe_width 0 application rbd