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
40 \tid -2\t\t# do not change unnecessarily (esc)
41 \t# weight 3.000 (esc)
43 \thash 0\t# rjenkins1 (esc)
44 \titem osd.0 weight 1.000 (esc)
45 \titem osd.1 weight 1.000 (esc)
46 \titem osd.2 weight 1.000 (esc)
49 \tid -3\t\t# do not change unnecessarily (esc)
50 \t# weight 3.000 (esc)
52 \thash 0\t# rjenkins1 (esc)
53 \titem localhost weight 3.000 (esc)
56 \tid -1\t\t# do not change unnecessarily (esc)
57 \t# weight 3.000 (esc)
59 \thash 0\t# rjenkins1 (esc)
60 \titem localrack weight 3.000 (esc)
64 rule replicated_rule {
66 \ttype replicated (esc)
69 \tstep take default (esc)
70 \tstep chooseleaf firstn 0 type host (esc)
75 $ osdmaptool --print myosdmap
76 osdmaptool: osdmap file 'myosdmap'
78 fsid [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} (re)
79 created \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ (re)
80 modified \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+ (re)
86 min_compat_client jewel
88 pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 autoscale_mode warn last_change 0 flags hashpspool stripe_width 0 application rbd
92 $ osdmaptool --clobber --createsimple 3 --with-default-pool myosdmap
93 osdmaptool: osdmap file 'myosdmap'
94 osdmaptool: writing epoch 1 to myosdmap
95 $ osdmaptool --print myosdmap | grep 'pool 1'
96 osdmaptool: osdmap file 'myosdmap'
97 pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 autoscale_mode warn last_change 0 flags hashpspool stripe_width 0 application rbd