1. RBD LS View the image of the Ceph default resource pool RBD
2.RBD Info xxx.img View xxx.img specific information
3.RBD RM xxx.img Delete xxx.img
4.RBD cp aaa.img bbb.img copy image aaa.img to Bbb.img
5.RBD rename aaa.img bbb.img rename aaa.img to Bbb.img
6.RBD Import aaa.img The local aaa.img into the Ceph cluster
7.RBD Export aaa.img aaa.img the Ceph cluster to a local
8. Import the original VM image, format 2,–order 25 to indicate object size is 32M
RBD Import–image-format 2 win2008_32.img rbd/win2008_test.img–order 25
(Import the win2008_32.img into the RBD resource pool and name win2008_test.img because the format must be 2,import default format when snapshot protection is 1)
9. Create a mirrored snapshot
RBD Snap Create–snap Win2008snap rbd/win2008_test.img
(Create a snapshot named Win2008snap for win2008_test.img)
10. Protect Snapshots
RBD snap protect Rbd/[email protected]
(Protect win2008_test snapshot files)
11. Clone a Snapshot
RBD clone Rbd/[email protected] Rbd/newtest.img
(Clone the snapshot of the win2008_test in the RBD resource pool to rbd/newstest.img)
12. Snapshot to protect RBD snap unprotect Rbd/[email protected]
13. Delete Snapshot RBD snap rm rbd/[email protected]
14. Restore the snapshot cloned image RBD fatten rbd/test.img
15. View sub-image RBD children rbd/test.img
16. Map a block device to a local RBD map disk01–pool rbd–id admin
17. View all the mappings RBD showmapped
18. Unmap RBD UNMAP/DEV/RBD1
19. View the OSD's directory tree: Ceph OSD Tree
20. View the real-time operation status of the machine: ceph–w
21. View Ceph's storage space: Ceph DF
22. View the status information for Mon: ceph Mon stat
23. Check the OSD operating status: Ceph OSD Stat
Common Ceph Operations Commands