Monitoring Ceph clusters

In this recipe, we will learn commands that are used to monitor the overall Ceph cluster.

How to do it…

Here is how we go about monitoring the Ceph cluster. The steps are explained topic-wise as follows.

Checking the cluster's health

To check the health of your cluster, use the ceph command followed by health as the command option:

# ceph health

The output of this command would be divided into several sections separated by a semicolon:

Checking the cluster's health

The first section of the output shows that your cluster is in the warning state, HEALTH_WARN, as 64 placement groups (PGs) are degraded. The second section represents that 1408 PGs are not clean, ...

Get Ceph Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.