Common Ceph Operations Commands

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.