1 Plain create with various options specified via usual cli arguments
2 ===================================================================
4 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
6 "block_name_prefix": "rb.0.*", (glob)
9 "object_size": 4194304,
14 $ rbd rm test --no-progress
15 $ rbd create -s 1 --object-size 1M test
16 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
18 "block_name_prefix": "rb.0.*", (glob)
21 "object_size": 1048576,
26 $ rbd rm test --no-progress
27 $ rbd create -s 1G --object-size 4K test
28 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
30 "block_name_prefix": "rb.0.*", (glob)
38 $ rbd rm test --no-progress
39 $ rbd create -s 1 test --image-format 2
40 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
42 "block_name_prefix": "rbd_data.*", (glob)
50 "object_size": 4194304,
55 $ rbd rm test --no-progress
56 $ rbd create -s 1G test --image-format 2
57 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
59 "block_name_prefix": "rbd_data.*", (glob)
67 "object_size": 4194304,
72 $ rbd rm test --no-progress
73 $ rbd create -s 1 test --image-format 2 --object-size 1M
74 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
76 "block_name_prefix": "rbd_data.*", (glob)
84 "object_size": 1048576,
89 $ rbd rm test --no-progress
90 $ rbd create -s 1 test --image-format 2 --stripe-unit 1048576 --stripe-count 8
91 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
93 "block_name_prefix": "rbd_data.*", (glob)
101 "object_size": 4194304,
106 "stripe_unit": 1048576
108 $ rbd rm test --no-progress
109 $ rbd create -s 1 test --image-format 2 --stripe-unit 1048576B --stripe-count 8
110 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
112 "block_name_prefix": "rbd_data.*", (glob)
120 "object_size": 4194304,
125 "stripe_unit": 1048576
127 $ rbd rm test --no-progress
128 $ rbd create -s 1G test --image-format 2 --stripe-unit 4K --stripe-count 8
129 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
131 "block_name_prefix": "rbd_data.*", (glob)
139 "object_size": 4194304,
146 $ rbd rm test --no-progress
147 $ rbd create -s 1G test --image-format 2 --stripe-unit 1M --stripe-count 8
148 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
150 "block_name_prefix": "rbd_data.*", (glob)
158 "object_size": 4194304,
163 "stripe_unit": 1048576
165 $ rbd rm test --no-progress
167 Format 2 Usual arguments with custom rbd_default_* params
168 =========================================================
169 $ rbd create -s 1 test --image-format 2 --stripe-unit 1048576 --stripe-count 8 --rbd-default-order 21
170 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
172 "block_name_prefix": "rbd_data.*", (glob)
180 "object_size": 2097152,
185 "stripe_unit": 1048576
187 $ rbd rm test --no-progress
188 $ rbd create -s 1 test --image-format 2 --stripe-unit 1048576 --stripe-count 8 --object-size 8M --rbd-default-order 20
189 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
191 "block_name_prefix": "rbd_data.*", (glob)
199 "object_size": 8388608,
204 "stripe_unit": 1048576
206 $ rbd rm test --no-progress
207 $ rbd create -s 1 test --image-format 2 --rbd-default-stripe-unit 1048576 --rbd-default-stripe-count 8
208 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
210 "block_name_prefix": "rbd_data.*", (glob)
218 "object_size": 4194304,
223 "stripe_unit": 1048576
225 $ rbd rm test --no-progress
227 Format 1 Usual arguments with custom rbd_default_* params
228 =========================================================
229 $ rbd create -s 1 test --rbd-default-order 20
230 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
232 "block_name_prefix": "rb.0.*", (glob)
235 "object_size": 1048576,
240 $ rbd rm test --no-progress
241 $ rbd create -s 1 test --rbd-default-format 2
242 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
244 "block_name_prefix": "rbd_data.*", (glob)
252 "object_size": 4194304,
257 $ rbd rm test --no-progress
258 $ rbd create -s 1 test --rbd-default-format 2 --rbd-default-order 20
259 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
261 "block_name_prefix": "rbd_data.*", (glob)
269 "object_size": 1048576,
274 $ rbd rm test --no-progress
275 $ rbd create -s 1 test --rbd-default-format 2 --rbd-default-order 20 --rbd-default-features 1
276 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
278 "block_name_prefix": "rbd_data.*", (glob)
286 "object_size": 1048576,
291 $ rbd rm test --no-progress
292 $ rbd create -s 1 test --rbd-default-format 2 --stripe-unit 1048576 --stripe-count 8
293 $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
295 "block_name_prefix": "rbd_data.*", (glob)
303 "object_size": 4194304,
308 "stripe_unit": 1048576
310 $ rbd rm test --no-progress