CephClusterGuide
Flat isometric illustration of a white faceted gem glowing on a dark diamond platform, pink lines fanning out to five small pink cubes on pale discs.
operations

How to Diagnose and Clear Ceph HEALTH_WARN Alerts

Use ceph health detail to find the warning code, prioritize the fix, and verify that it cleared. See when to mute a check and how to unmute it.

By CephClusterGuide Editorial · ·Updated · 5 min read

To clear a Ceph HEALTH_WARN alert, run ceph status for the cluster summary and ceph health detail for the check code and affected resource. Fix the cause, then rerun both commands. Confirm that the original code is gone from the details and that it has no mute marker.

Triage order

ceph status
ceph health detail

Read the health line and the OSD and placement group (PG) counts in ceph status. In ceph health detail, read the code on the warning line and the resource IDs in the lines below it. Monitoring a Cluster

In this excerpt from Ceph’s missed-scrub example, [WRN] is the severity, PG_NOT_DEEP_SCRUBBED is the check code, and 86.fff is one affected PG. Health Checks

[WRN] PG_NOT_DEEP_SCRUBBED: 1161 pgs not deep-scrubbed in time
pg 86.fff …
PriorityChecks to look forFirst decision
I/O blocked or quorum at riskPG_AVAILABILITY, OSD_FULL, MON_DOWNRestore the affected daemons or free space if fullness is blocking writes.
Redundancy reduced or recovery blockedPG_DEGRADED, OSD_DOWN, PG_BACKFILL_FULL, PG_RECOVERY_FULLCheck for down OSDs, recovery flags and fullness. Treat capacity as part of recovery if it is blocking data movement.
Capacity warningOSD_NEARFULL, OSD_BACKFILLFULLFind the fullest OSDs and check whether the affected pool has room to rebalance.
Scheduled maintenance and tuningPG_NOT_DEEP_SCRUBBED, POOL_TOO_MANY_PGSRestore PG health before addressing missed scrubs. Review the autoscaler recommendation for the affected pool.

Availability: PG_AVAILABILITY

PG_AVAILABILITY means some PGs cannot serve I/O. Look in ceph health detail for the affected PG IDs and states such as peering, stale or incomplete. To inspect one PG, substitute its ID below. Health Checks

ceph tell <pgid> query

If you also see OSD_DOWN, check whether the OSD host is reachable, the daemon is running and peers can reach it over the network. Check the daemon log if it crashed. For OSD_HOST_DOWN or another OSD_<crush type>_DOWN check, start with the shared failure domain. Health Checks · Troubleshooting OSDs

HEALTH_WARN Degraded data redundancy

The message Degraded data redundancy corresponds to PG_DEGRADED. Affected PGs may be short of replicas or erasure-coded fragments, or may have gone a long time without reaching clean. Get the affected PG IDs from ceph health detail and check for a down OSD. Health Checks

After restoring the OSD, follow recovery in the cluster log.

ceph -w

In Ceph’s OSD return example, the log first records OSD_DOWN and PG_DEGRADED failures. The warning starts with 16 degraded PGs. As the OSD returns and recovery progresses, a log update shows two PGs still degraded and undersized. The log then records clearance. Monitoring a Cluster

Health check cleared: PG_DEGRADED …
Cluster is now healthy
ceph status
ceph health detail

Check the OSD count and look for PGs returning to active+clean in ceph status. In ceph health detail, confirm that OSD_DOWN and PG_DEGRADED are absent from both the active checks and any mute listing. Other checks can still keep the overall status at HEALTH_WARN. Monitoring a Cluster

If PGs stay undersized with the OSDs up, check whether the pool’s CRUSH rule has enough eligible OSDs and failure domains to meet its replica or fragment count. Troubleshooting PGs · How Ceph places data across CRUSH, pools, and placement groups

OSD_NEARFULL: the three fullness thresholds

Check the live full ratio from the OSD map, the utilization of each OSD and the available space in each pool. Health Checks · Troubleshooting OSDs

ceph osd dump | grep full_ratio
ceph osd df
ceph df

The table lists Ceph’s documented defaults for the monitor configuration options. A single full OSD can block writes to a pool even while the cluster has free space. Troubleshooting OSDs

Monitor configuration optionDefaultWhat the check tells you
mon_osd_nearfull_ratio0.85OSD_NEARFULL signals that an OSD is approaching full.
mon_osd_backfillfull_ratio0.90OSD_BACKFILLFULL flags an OSD that cannot take its assigned backfill. Look for PG_BACKFILL_FULL on affected PGs.
mon_osd_full_ratio0.95OSD_FULL blocks client writes. Look for PG_RECOVERY_FULL if lack of space blocks recovery.

If utilization is uneven and the cluster is healthy, check whether the balancer is enabled with ceph balancer status. The balancer pauses PG adjustments while the cluster is degraded. Balancer Module

If the pool lacks usable space, add an OSD to Ceph in a CRUSH failure domain the pool can use. If OSD_FULL is already blocking writes, raising the full ratio slightly is a temporary way to restore writes while you add capacity or reclaim space. Preserve the order nearfull < backfillfull < full < failsafe_full. Health Checks

ceph osd set-full-ratio <ratio>

PG_NOT_DEEP_SCRUBBED: scrubs that fell behind

PG_NOT_DEEP_SCRUBBED and PG_NOT_SCRUBBED flag missed deep and regular scrubs, respectively. Deep scrubs require PGs to be clean. Address degradation first and check whether scrubbing is disabled by an OSD map flag. To request a deep scrub for an affected PG that is already clean, use its ID. Health Checks

ceph pg deep-scrub <pgid>

If large PGs repeatedly miss their deep-scrub schedule, review osd_deep_scrub_interval. The warning grace period is a fraction of that interval, controlled by mon_warn_pg_not_deep_scrubbed_ratio. Health Checks

POOL_TOO_MANY_PGS: placement group count alerts

POOL_TOO_MANY_PGS recommends fewer PGs for a pool and POOL_TOO_FEW_PGS recommends more. Both apply when the pool’s autoscaler mode is warn. Match the pool in the details to its row in autoscale-status. Compare PG_NUM with NEW PG_NUM when a recommendation appears. Health Checks · Placement Groups

ceph osd pool autoscale-status

If you want Ceph to adjust that pool’s PG count automatically, use the pool name in this command. Placement Groups

ceph osd pool set <pool-name> pg_autoscale_mode on

TOO_MANY_PGS is cluster-wide. Above mon_max_pg_per_osd, Ceph blocks new pools and increases to pool PG counts or replication. Adding OSDs can relieve this limit. Health Checks

MON_CLOCK_SKEW: monitor time synchronization

MON_CLOCK_SKEW means the clocks on monitor hosts differ by more than mon_clock_drift_allowed. Synchronize the monitor hosts with chrony or ntpd. Keep the allowed drift well below mon_lease. If you also see MON_DOWN, restore the down monitor promptly to protect quorum. Health Checks

For OSDMAP_FLAGS, identify which flags were set for maintenance. For example, noout prevents down OSDs from automatically being marked out, and norecover pauses recovery. Once maintenance is complete, use the following command to clear a flag you no longer need. The full flag is an exception to this command. Health Checks

ceph osd unset <flag>

Muting, done responsibly

Use a temporary mute for a known, expected condition, such as DAEMON_OLD_VERSION during a paused upgrade. Set a duration such as 4h so the mute expires. A mute changes the reported health while the underlying condition can remain active. Health Checks · Monitoring a Cluster

ceph health mute <code> <duration>

Run ceph health detail to check for a mute. In Ceph’s example, the summary shows HEALTH_OK because OSD_DOWN was the only check and it was muted. The (MUTED) line identifies the check, and the line below it shows that osd.1 is still down. Monitoring a Cluster

HEALTH_OK (muted: OSD_DOWN)
(MUTED) OSD_DOWN 1 osds down
    osd.1 is down

Ceph normally removes a mute when the condition clears. A mute set with --sticky can survive clearance. When maintenance ends, remove any remaining mute and check the details again for the original code and mute marker. Monitoring a Cluster

ceph health unmute <code>
ceph health detail

Evidence and limits. The commands and examples are drawn from the Ceph Tentacle documentation. The steps were not run on a cluster for this guide.

Sources

  1. Ceph Documentation: Health Checks
  2. Ceph Documentation: Monitoring a Cluster
  3. Ceph Documentation: Troubleshooting OSDs
  4. Ceph Documentation: Troubleshooting PGs
  5. Ceph Documentation: Placement Groups
  6. Ceph Documentation: Balancer Module

Related