ceph command

ceph osd pool ls

# ceph osd pool ls
images
metrics
backups
vms
volumes
manila_data
manila_metadata

ceph osd  lspools

[root@overcloud-controller-0 (overcloudrc) nova]# ceph osd  lspools
1 images,2 metrics,3 backups,4 vms,5 volumes,6 manila_data,7 manila_metadata,


info

[root@overcloud-controller-0 (overcloudrc) nova]# rbd -p images ls
3cdf01ae-eb38-4cc1-9d3c-51d8e3a161db
bdaee657-f7a2-4fc5-9e9b-f6a4c69e4b7d
f7dcdca4-fa2e-4d05-a886-a59d46217f8e

[root@overcloud-controller-0 (overcloudrc) nova]# rbd info images/3cdf01ae-eb38-4cc1-9d3c-51d8e3a161db
rbd image '3cdf01ae-eb38-4cc1-9d3c-51d8e3a161db':
        size 2173 MB in 272 objects
        order 23 (8192 kB objects)
        block_name_prefix: rbd_data.3b87d73a07505
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
        flags:
        create_timestamp: Sat Oct 12 16:15:42 2019

rbd --pool volumes ls

rbd --pool vms ls

rbd -p images ls

rbd -p images info f7dcdca4-fa2e-4d05-a886-a59d46217f8e

get

[root@overcloud-controller-0 (overcloudrc) nova]# openstack server list
+--------------------------------------+----------------+--------+-----------------------------------------------------------------------------------------+------------------+----------+
| ID                                   | Name           | Status | Networks                                                                                | Image            | Flavor   |
+--------------------------------------+----------------+--------+-----------------------------------------------------------------------------------------+------------------+----------+
| eac7525e-ec91-4bd4-89e7-11e8f0cfbe62 | alu-vm5        | ACTIVE | vlan3088=192.168.88.59, 2408:2109:1013::108                                             | cirros           | m1.small |

vms eac7525e-ec91-4bd4-89e7-11e8f0cfbe62_disk

[root@overcloud-controller-0 (overcloudrc) nova]# rbd -p vms ls
01718229-ce1a-4452-84c7-e8beee744ea3_disk.config
191836bc-e1cb-4661-94f1-04b723b50e15_disk.config
2109d409-cede-4eff-ab39-7ffd506fac34_disk.config
2584b759-7791-42b7-90fc-daa75f347269_disk
3892a3dd-1dc2-4e2c-b547-f9b6639c54f1_disk.config
48a571f5-dc28-4310-a8c7-7db861450054_disk.config
85799dc7-bc0e-4028-a370-6e28e2897da4_disk.config
eac7525e-ec91-4bd4-89e7-11e8f0cfbe62_disk
ff1d495e-145a-4a81-b8ed-598bf43a306b_disk
ff1d495e-145a-4a81-b8ed-598bf43a306b_disk.config

 

你可能感兴趣的:(ceph command)