Using Ceph cluster with a hands-on approach

Now that we have a running Ceph cluster, we will perform some hands-on practice to gain experience with Ceph, using some basic commands.

How to do it…

  1. Check the status of your Ceph installation:
    # ceph -s or # ceph status
    
  2. Watch the cluster health:
    # ceph -w
    
  3. Check the Ceph monitor quorum status:
    # ceph quorum_status --format json-pretty
    
  4. Dump the Ceph monitor information:
    # ceph mon dump
    
  5. Check the cluster usage status:
    # ceph df
    
  6. Check the Ceph monitor, OSD, and placement group stats:
    # ceph mon stat
    # ceph osd stat
    # ceph pg stat
    
  7. List the placement group:
    # ceph pg dump
    
  8. List the Ceph pools:
    # ceph osd lspools
    
  9. Check the CRUSH map view of OSDs:
    # ceph osd tree
    
  10. List the cluster authentication keys:
    # ceph auth list
    

These were some basic commands that we learned in this section. In the upcoming chapters, we will learn advanced commands for Ceph cluster management.