1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
| $ rbd ls vm-101-disk-1
$ rbd status vm-101-disk-1 Watchers: watcher=10.102.70.124:0/3361738208 client.143192 cookie=140498849842176
$ rbd info vm-101-disk-1 rbd image 'vm-101-disk-1': size 32768 MB in 8192 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.22f52238e1f29 format: 2 features: layering, exclusive-lock, object-map, fast-diff, deep-flatten flags:
$ rbd rm vm-101-disk-1
$ rbd create --pool rbd --image Jenkins_Data --size 40960
$ rbd --image Jenkins_Data info rbd image 'Jenkins_Data': size 40960 MB in 10240 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.a71d6238e1f29 format: 2 features: layering, exclusive-lock, object-map, fast-diff, deep-flatten flags:
$ rbd --image Jenkins_Data resize --size 10240 --allow-shrink Resizing image: 100% complete...done.
$ rbd --image Jenkins_Data info rbd image 'Jenkins_Data': size 10240 MB in 2560 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.a71d6238e1f29 format: 2 features: layering, exclusive-lock, object-map, fast-diff, deep-flatten flags:
$ rbd --image Jenkins_Data resize --size 20480 Resizing image: 100% complete...done.
$ rbd --image Jenkins_Data info rbd image 'Jenkins_Data': size 20480 MB in 5120 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.a71d6238e1f29 format: 2 features: layering, exclusive-lock, object-map, fast-diff, deep-flatten flags:
|