惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
博客园 - 叶小钗
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
Last Week in AI
Last Week in AI
罗磊的独立博客
量子位
Jina AI
Jina AI
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
美团技术团队
雷峰网
雷峰网
爱范儿
爱范儿
S
SegmentFault 最新的问题
小众软件
小众软件
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

OneUptime Blog

How to Monitor Azure App Services (PaaS) with OpenTelemetry Grafana Stack vs OneUptime: DIY Observability or Unified Platform? Your AI Workloads Are About to Blow Up Your Observability Bill The Great Observability Consolidation Is Here How to Write Custom Object Classes for Ceph How to Write Custom Ceph Manager Modules How to Write a ceph.conf Configuration File How to Use Rook-Ceph with OpenShift How to Use Rook-Ceph with Longhorn for Comparison How to Configure Volume Snapshot Class for RBD in Rook How to Configure VolumeReplicationClass Scheduling Intervals in Rook How to Set Up Volume Replication with Rook-Ceph How to Create Volume Group Snapshots with Rook CSI How to Visualize Ceph Network Performance in Grafana How to Enable Virtual Host-Style Bucket Access in Rook How to View Runtime Configuration via Admin Socket How to View Quota Settings and Update Stats in Ceph RGW How to View PG Scaling Recommendations with autoscale-status How to View PG Distribution via Admin Socket How to View Performance Metrics in the Ceph Dashboard How to View OSD Performance Counters in Ceph How to View Connection Status via Admin Socket How to View Ceph Cluster Summary Dashboard via CLI How to Version Control Rook-Ceph Configuration How to Version Control Ceph Infrastructure with Terraform How to Verify Kubernetes Node Requirements for Rook-Ceph Deployment How to Verify Health Before and After Rook Upgrades How to Verify Data Integrity with Deep Scrubbing How to Verify Complete Rook-Ceph Cleanup How to Verify Backup Integrity from Ceph Snapshots
How to Understand the degraded PG State in Ceph
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

The degraded PG state means one or more object replicas are missing. The PG is still serving I/O (when combined with active) but has reduced redundancy. Understanding this state is critical for assessing data durability during and after OSD failures.

What degraded Means

A PG is degraded when its current replica count is below the pool's size setting. For a size 3 pool, degraded means the PG has 2 or fewer copies.

Degraded does NOT mean data loss - it means you have less protection than configured. If another OSD fails while a PG is degraded, you could lose data if the remaining replicas go down.

Checking Degraded PGs

ceph status
# HEALTH_WARN: X/Y objects degraded

ceph pg stat
# active+degraded count

# List which PGs are degraded
ceph pg dump | grep degraded

Get the number of degraded objects:

ceph status --format json | jq '.pgmap.degraded_objects'

What Causes Degradation

  1. An OSD goes down or out
  2. A node is rebooted during maintenance
  3. An OSD is being replaced
  4. Network partition preventing replica communication

Check which OSDs are affected:

ceph osd tree | grep -E "down|out"
ceph health detail | grep "pg"

Degradation Levels

Replicas PresentPool SizeStatus
33active+clean
23active+degraded
13active+degraded (high risk)
03inactive (unavailable)

Risk Assessment

With one replica missing (2/3), the cluster can tolerate zero additional OSD failures for affected PGs. With two replicas missing (1/3), any single additional OSD failure could make those PGs inactive.

# See degraded ratio
ceph status | grep "degraded"
# degraded (33.333%): 1024/3072 objects

# Calculate affected PGs
ceph pg dump | awk '{if ($16 ~ /degraded/) print $1}' | wc -l

Speeding Up Recovery

If degradation is due to a recoverable OSD coming back:

# Check if OSD is recovering
ceph osd stat

# Increase recovery speed
ceph config set osd osd_recovery_max_active_hdd 10
ceph config set osd osd_recovery_op_priority 10

If the OSD is permanently lost, mark it out to trigger remapping:

ceph osd out osd.3

Monitoring Recovery Progress

watch ceph status
# Look for transition from:
# active+degraded -> active+recovering+degraded -> active+clean

Summary

The degraded PG state indicates reduced data redundancy due to missing replicas. Degraded PGs continue serving I/O but with lower fault tolerance. When you see active+degraded, act promptly by identifying the failed OSD, determining if it is recoverable or must be replaced, and ensuring the remaining replicas do not fail during recovery.