]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/osdmaptool/create-print.t
bump version to 18.2.2-pve1
[ceph.git] / ceph / src / test / cli / osdmaptool / create-print.t
CommitLineData
224ce89b 1 $ osdmaptool --createsimple 3 myosdmap --with-default-pool
7c673cae
FG
2 osdmaptool: osdmap file 'myosdmap'
3 osdmaptool: writing epoch 1 to myosdmap
4
5 $ osdmaptool --export-crush oc myosdmap
6 osdmaptool: osdmap file 'myosdmap'
7 osdmaptool: exported crush map to oc
8 $ crushtool --decompile oc
9 # begin crush map
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
31f18b77 15 tunable chooseleaf_stable 1
7c673cae
FG
16 tunable straw_calc_version 1
17 tunable allowed_bucket_algs 54
18
19 # devices
20 device 0 osd.0
21 device 1 osd.1
22 device 2 osd.2
23
24 # types
25 type 0 osd
26 type 1 host
27 type 2 chassis
28 type 3 rack
29 type 4 row
30 type 5 pdu
31 type 6 pod
32 type 7 room
33 type 8 datacenter
11fdf7f2
TL
34 type 9 zone
35 type 10 region
36 type 11 root
7c673cae
FG
37
38 # buckets
39 host localhost {
40 \tid -2\t\t# do not change unnecessarily (esc)
20effc67 41 \t# weight 3.00000 (esc)
7c673cae
FG
42 \talg straw2 (esc)
43 \thash 0\t# rjenkins1 (esc)
20effc67
TL
44 \titem osd.0 weight 1.00000 (esc)
45 \titem osd.1 weight 1.00000 (esc)
46 \titem osd.2 weight 1.00000 (esc)
7c673cae
FG
47 }
48 rack localrack {
49 \tid -3\t\t# do not change unnecessarily (esc)
20effc67 50 \t# weight 3.00000 (esc)
7c673cae
FG
51 \talg straw2 (esc)
52 \thash 0\t# rjenkins1 (esc)
20effc67 53 \titem localhost weight 3.00000 (esc)
7c673cae
FG
54 }
55 root default {
56 \tid -1\t\t# do not change unnecessarily (esc)
20effc67 57 \t# weight 3.00000 (esc)
7c673cae
FG
58 \talg straw2 (esc)
59 \thash 0\t# rjenkins1 (esc)
20effc67 60 \titem localrack weight 3.00000 (esc)
7c673cae
FG
61 }
62
63 # rules
31f18b77 64 rule replicated_rule {
c07f9fc5 65 \tid 0 (esc)
7c673cae 66 \ttype replicated (esc)
7c673cae
FG
67 \tstep take default (esc)
68 \tstep chooseleaf firstn 0 type host (esc)
69 \tstep emit (esc)
70 }
71
72 # end crush map
73 $ osdmaptool --print myosdmap
74 osdmaptool: osdmap file 'myosdmap'
75 epoch 1
76 fsid [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} (re)
9f95a23c
TL
77 created \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+.\d\d\d\d (re)
78 modified \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+.\d\d\d\d (re)
7c673cae 79 flags
31f18b77 80 crush_version 1
7c673cae
FG
81 full_ratio 0
82 backfillfull_ratio 0
83 nearfull_ratio 0
31f18b77 84 min_compat_client jewel
f67539c2 85 stretch_mode_enabled false
7c673cae 86
9f95a23c 87 pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 autoscale_mode on last_change 0 flags hashpspool stripe_width 0 application rbd
7c673cae
FG
88
89 max_osd 3
90
224ce89b 91 $ osdmaptool --clobber --createsimple 3 --with-default-pool myosdmap
7c673cae
FG
92 osdmaptool: osdmap file 'myosdmap'
93 osdmaptool: writing epoch 1 to myosdmap
224ce89b 94 $ osdmaptool --print myosdmap | grep 'pool 1'
7c673cae 95 osdmaptool: osdmap file 'myosdmap'
9f95a23c 96 pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 autoscale_mode on last_change 0 flags hashpspool stripe_width 0 application rbd
7c673cae 97 $ rm -f myosdmap