Now that we have a running Ceph cluster, we will perform some hands-on practice to gain experience with Ceph using some basic commands.
Using the Ceph cluster with a hands-on approach
How to do it...
Below are some of the common commands used by Ceph admins:
- Check the status of your Ceph installation:
# ceph -s or # ceph status
- Check Ceph's health detail:
# ceph health detail
- Watch the cluster health:
# ceph -w
- Check Ceph's monitor quorum status:
# ceph quorum_status --format json-pretty
- Dump Ceph's monitor information:
# ceph mon dump
- Check the cluster usage status:
# ceph df
- Check the Ceph monitor, OSD, pool, and placement group stats:
# ceph mon stat
# ceph osd stat
# ceph osd pool stats
# ceph pg stat
- List the placement group:
# ceph pg dump
- List the Ceph pools in detail:
# ceph osd pool ls detail
- Check the CRUSH map view of OSDs:
# ceph osd tree
- Check Ceph's OSD usage:
# ceph osd df
- List the cluster authentication keys:
# ceph auth list
These were some basic commands that you learned in this section. In the upcoming chapters, you will learn advanced commands for Ceph cluster management.